Upgrade Service | OC 2.3.0.2 PHP 8 | My Custom OC 3.0.3.8 | Buy me a beer
Reversed. Filters are a dynamic list where users do not have the obligations to fill them. Once all the filters being removed, users still have the right to remove all the filters from their stores.straightlight wrote: ↑Sun May 31, 2020 11:17 pmNot a major but would indeed be more informative to the users ...xxvirusxx wrote: ↑Sun May 31, 2020 11:14 pmFilter value issue
https://github.com/opencart/opencart/pull/7832![]()
Ok, fixed.
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
Denied. It stays to an hour interval as per the master branch.xxvirusxx wrote: ↑Sun May 31, 2020 11:24 pmhttps://github.com/opencart/opencart/issues/7094
viewtopic.php?t=205907
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
They were already added to the master branch and are not going to affect compatibility. Please take security seriously, just because some on the payment files are not longer there, should not be a reason for not patching core files. Let me know the branch on GitHub you are commiting all these changes to and I will do a simpler pull request minus the files that have been removed.straightlight wrote: ↑Sun May 31, 2020 10:35 pmFirst commit: Denied. No major incidents reported about those claims. Besides, too many extensions and could also affect local APIs being used. There are frequent posts regarding use of APIs and must not report additional issues. In addition, most of these instructions from Add Creative on this commit shows files that are no longer included in the master branch and even, nowadays, excluded from the pre-release. Security concerns have then been addressed accordingly by removing the extra files.ADD Creative wrote: ↑Sun May 31, 2020 10:28 pmSecurity related fixes.
https://github.com/opencart/opencart/pull/6877
https://github.com/opencart/opencart/pull/7973
DIR_UPLOAD hasn't been replaced with html_entity_decode in the master branch. It's replace by DIR_STORAGE . 'backup/'. https://github.com/opencart/opencart/bl ... p.php#L225straightlight wrote: ↑Sun May 31, 2020 10:35 pmSecond commit: The master branch already contains a removal line of DIR_UPLOAD being replaced with html_entity_decode instead. Hard to know which one is right at this time. Will have to put that one on hold.
It's the adding of basename that's important.
That was to ignore saving filter without filter valuesstraightlight wrote: ↑Sun May 31, 2020 11:21 pmReversed. Filters are a dynamic list where users do not have the obligations to fill them. Once all the filters being removed, users still have the right to remove all the filters from their stores.
Why to save a filter without value?
Attachments
Screenshot_2020-05-31_18-32-16.png (35.36 KiB) Viewed 24253 times
Upgrade Service | OC 2.3.0.2 PHP 8 | My Custom OC 3.0.3.8 | Buy me a beer
Because of the admin/model/catalog/filter.php file where it edits the filter:xxvirusxx wrote: ↑Sun May 31, 2020 11:35 pmThat was to ignore saving filter without filter valuesstraightlight wrote: ↑Sun May 31, 2020 11:21 pmReversed. Filters are a dynamic list where users do not have the obligations to fill them. Once all the filters being removed, users still have the right to remove all the filters from their stores.
Why to save a filter without value?
Code: Select all
if (isset($data['filter'])) {
foreach ($data['filter'] as $filter) {
if ($filter['filter_id']) {
$this->db->query("INSERT INTO " . DB_PREFIX . "filter SET filter_id = '" . (int)$filter['filter_id'] . "', filter_group_id = '" . (int)$filter_group_id . "', sort_order = '" . (int)$filter['sort_order'] . "'");
} else {
$this->db->query("INSERT INTO " . DB_PREFIX . "filter SET filter_group_id = '" . (int)$filter_group_id . "', sort_order = '" . (int)$filter['sort_order'] . "'");
}
$filter_id = $this->db->getLastId();
foreach ($filter['filter_description'] as $language_id => $filter_description) {
$this->db->query("INSERT INTO " . DB_PREFIX . "filter_description SET filter_id = '" . (int)$filter_id . "', language_id = '" . (int)$language_id . "', filter_group_id = '" . (int)$filter_group_id . "', `name` = '" . $this->db->escape($filter_description['name']) . "'");
}
}
}
As you can see in this portion of the admin/view/template/catalog/filter_form.twig file:
Code: Select all
<td class="text-left" style="width: 70%;"><input type="hidden" name="filter[{{ filter_row }}][filter_id]"
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
Like Options

Attachments
Screenshot_2020-05-31_18-41-15.png (30.56 KiB) Viewed 24239 times
Upgrade Service | OC 2.3.0.2 PHP 8 | My Custom OC 3.0.3.8 | Buy me a beer
So you mean that even when the list is empty, you'd still see this error message? If the case, I don't see the error sentence in the language definition.
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
Upgrade Service | OC 2.3.0.2 PHP 8 | My Custom OC 3.0.3.8 | Buy me a beer
This is what has been explained on the above, the filter_group_id is being used instead from the models, that's why.
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
Fixed. However, added to different location in the same model. Also changed conventional name so not to conflict with the catalog/model/account/recurring.php's conventional name.xxvirusxx wrote: ↑Mon Jun 01, 2020 12:01 am- getOrderRecurrings method
https://github.com/opencart/opencart/issues/6567
The method name will be: getOrderRecurring until the release gets reviewed for the new conventional names as renamed from the master branch recently.
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
The problem with session table bloating is not to do with the interval, but the fact that the garbage collection function gc() in never called. This means the session table just gets bigger and bigger with more entries. This causes two problems.straightlight wrote: ↑Sun May 31, 2020 11:26 pmDenied. It stays to an hour interval as per the master branch.xxvirusxx wrote: ↑Sun May 31, 2020 11:24 pmhttps://github.com/opencart/opencart/issues/7094
viewtopic.php?t=205907
First is the the session table will eventually use up all the database storage and the site will start failing.
Second is that partly due to a bug in the session read query. There is a increased chance on very busy sites that the randomly generated session ID will be repeated and a customer will find themselves logged in as someone else.
Session read query bug is here.
https://github.com/opencart/opencart/pull/6613
Sorry, didn't see your post. Ok, it's been added.ADD Creative wrote: ↑Mon Jun 01, 2020 3:44 amThe problem with session table bloating is not to do with the interval, but the fact that the garbage collection function gc() in never called. This means the session table just gets bigger and bigger with more entries. This causes two problems.straightlight wrote: ↑Sun May 31, 2020 11:26 pmDenied. It stays to an hour interval as per the master branch.xxvirusxx wrote: ↑Sun May 31, 2020 11:24 pmhttps://github.com/opencart/opencart/issues/7094
viewtopic.php?t=205907
First is the the session table will eventually use up all the database storage and the site will start failing.
Second is that partly due to a bug in the session read query. There is a increased chance on very busy sites that the randomly generated session ID will be repeated and a customer will find themselves logged in as someone else.
Session read query bug is here.
https://github.com/opencart/opencart/pull/6613
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
The new login mechanism is the issue and needs to be rectified on Github as it seem to affect the admin dashboard and other admin pages.
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
Users browsing this forum: No registered users and 3 guests