
hello, we had tags on our products and everything works nikel .... and for a few days now the tags that have a space no longer work ... I can't find anything and I don't know what to do except to take all the products.... but it's a crazy job... do you have an idea? or a solution? a problem updating my server? I am PHP 7.4.33 (cli) (built: Apr 9 2023 16:54:16) ( NTS ) it may be that but how to find 

PHP under 8.2 is no longer supported by the PHP foundation. Better consider the possibility to upgrade your PHP version to a higher version rather than staying behind. Same goes with OC 4 once it will be ready.
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
I upgraded to 8.2.5 but still have the same issues.
I found an error in the logs I try to look in this direction.
the error is: "rewrite:error" -> AH10411: Rewritten query string contains control characters or spaces in the apache logs which could be solved with a rewrite of the .htacces but for the moment I'm blocked
if you have a little time... I'm a taker
I found an error in the logs I try to look in this direction.
the error is: "rewrite:error" -> AH10411: Rewritten query string contains control characters or spaces in the apache logs which could be solved with a rewrite of the .htacces but for the moment I'm blocked

Easiest way is to simply log the query which is being executed to see if there is anything wrong with it when selecting a tag.
in catalog/model/catalog/product.php, function getProducts(....) you add:
before:
Then you can check the where clause and even copy and paste that query to a query tool to see why it doesn't do what you expect.
in catalog/model/catalog/product.php, function getProducts(....) you add:
Code: Select all
if (!empty($data['filter_tag'])) $this->log->write('Products Query for tag:['.$data['filter_tag'].']:'.$sql);
Code: Select all
$query = $this->db->query($sql);
DISCLAIMER:
You should not modify core files .. if you would like to donate a cup of coffee I will write it in a modification for you.
https://www.youtube.com/watch?v=zXIxDoCRc84
Who is online
Users browsing this forum: No registered users and 11 guests