Post by straightlight » Wed Sep 30, 2015 8:08 am

Sometime ago, users posted an odd behavior regarding the page results with ended slash versus normal route from URL. For instance, when using the product/manufacturer on the catalog with: product/manufacturer/ .

The ended slash seem to be leaded to a bug due to an un-encountered activity that needs to be patched through the Action Engine in system/engine/action.php file.

To fix this, on that specific file, find:

Code: Select all

$path = '';
add below:

Code: Select all

if (!empty($route) && $route{strlen(trim($route)) - 1} == '/') {
			$route = str_replace($route{strlen(trim($route)) - 1}, '', $route);
		}
This should correct the problem.

The most generated errors being found on Opencart forum originates from contributed programming. The increased post counters are caused by redundancies of the same solutions that were already provided prior.


Regards,
Straightlight
Opencart.com Administrator / Quality Assurance Analyst / Programmer


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by straightlight » Thu Oct 08, 2015 5:06 am

This fix is still applicable over OC v2.1.0.1 release.

The most generated errors being found on Opencart forum originates from contributed programming. The increased post counters are caused by redundancies of the same solutions that were already provided prior.


Regards,
Straightlight
Opencart.com Administrator / Quality Assurance Analyst / Programmer


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by straightlight » Wed Oct 14, 2015 1:15 am

The same line must also be tracked from system/engine/loader.php file.

The most generated errors being found on Opencart forum originates from contributed programming. The increased post counters are caused by redundancies of the same solutions that were already provided prior.


Regards,
Straightlight
Opencart.com Administrator / Quality Assurance Analyst / Programmer


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON
Who is online

Users browsing this forum: No registered users and 14 guests