Post by tomd » Wed Nov 12, 2014 7:25 pm

Hi All...

I just installed OC 2.0. I have a theme installed on it. When trying to activate the Bestseller and Latest modules from the admin, I get the following error in the admin interface:
Notice: Undefined variable: registry in /home/valappil/public_html/duprime.com/admin/index.php on line 91
Fatal error: Call to a member function set() on a non-object in /home/valappil/public_html/duprime.com/admin/index.php on line 91


The lines 89-91 in index.php are as follows:

Code: Select all

require_once(DIR_SYSTEM . 'library/themeoptions.php');
$theme_options = new ThemeOptions($config->get('config_template'), $store, $theme);
$registry->set('theme_options', $theme_options);
Appreciate your help!

Thanks,
Tom

New member

Posts

Joined
Tue Mar 05, 2013 5:17 am

Post by fido-x » Thu Nov 13, 2014 10:45 am

You've made some modifications to your index.php file.

There is no "library/themeoptions.php" in OpenCart. That file would be related to the theme you're using (which is probably from an older version of OpenCart).

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
Who is online

Users browsing this forum: No registered users and 7 guests