Post by fido-x » Sun Oct 19, 2008 9:48 am

I don't know whether you've addressed this or not (I haven't checked the SVN). Ampersands are still causing a problem with the extensions menu.

Suggestion is to change the following (lines 96-99) in "admin/extension/module/menu.php"

Code: Select all

$view->set('module', $url->ssl('extension', false, array('type' => 'module')));
$view->set('shipping', $url->ssl('extension', false, array('type' => 'shipping')));
$view->set('payment', $url->ssl('extension', false, array('type' => 'payment')));
$view->set('calculate', $url->ssl('extension', false, array('type' => 'calculate')));
to

Code: Select all

$view->set('module', $url->rawssl('extension', false, array('type' => 'module')));
$view->set('shipping', $url->rawssl('extension', false, array('type' => 'shipping')));
$view->set('payment', $url->rawssl('extension', false, array('type' => 'payment')));
$view->set('calculate', $url->rawssl('extension', false, array('type' => 'calculate')));
Regards, Fido-X.

Image
Modules for OpenCart 2.3.0.2
Homepage Module [Free - since OpenCart 0.7.7]
Multistore Extensions
Store Manager Multi-Vendor/Multi-Store management tool

If you're not living on the edge ... you're taking up too much space!


User avatar
Expert Member

Posts

Joined
Sat Jun 28, 2008 1:09 am
Location - Tasmania, Australia

Post by Qphoria » Sun Oct 19, 2008 10:40 am

The existing admin menu strikes again!
The code you are seeing is from a contrib that you installed on top of RC2. This is not the code from the RC2 zip file. You likely installed some old contrib like import/export or another contrib that adds a menu to the admin menu, which means that it overwrites the previous one. This file-based menu system combined with the use of contribs is the worst design in the history of web development.

We've been having discussions of ridding ourselves of this bane once and for all, and this is one of the many problems that would go away.

The RC2 menu.php file does have the correct code of rawssl, so this is not a bug with RC2, just with the original design of the admin menu

You can read more about the plans to change the admin menu officially here:

- http://forum.opencart.com/index.php/topic,2069.0.html
- http://forum.opencart.com/index.php/top ... ml#msg9843
- http://code.google.com/p/open-cart/issues/detail?id=70

You can also see the demo (user/pass already filled in)
Completely database-driven. Add new menus with sql insert. Remove them with sql delete. No more overwriting the previous contrib. No more silly ssl errors. And its completely CSS and html based, so it can be styled in any manner desired.
Last edited by Qphoria on Sun Oct 19, 2008 10:43 am, edited 1 time in total.

Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am
Who is online

Users browsing this forum: No registered users and 28 guests