Shoppica and vQmod > 2.3.2

ThemeBurn SupportForumsOpenCart ThemesShoppica 2 OpenCart ThemeShoppica and vQmod > 2.3.2

This topic has been marked as not resolved.

If you are using the latest version of vQmod (2.4.x or higher), you may have some issues with Shoppica (2.2.4 or lower), which typically cause the following error to appear:

Fatal error: Call to a member function modCheck() on a non-object in....

In order to fix them, you need to replace the tb_themes/shoppica2/library/Utils.php with the attached one.

The other way to fix them is to replace the problematic code piece manually. Just open tb_themes/shoppica2/library/Utils.php and replace

public static function vqmodCheck($filename)
    {
        if (!array_key_exists('vqmod', $GLOBALS)) {
            return $filename;
        }

        global $vqmod;

        return $vqmod->modCheck($filename);
    }

with

    public static function vqmodCheck($filename)
    {
        if (array_key_exists('vqmod', $GLOBALS)) {
            global $vqmod;

            if (is_callable(array($vqmod, 'modCheck'))) {
                return $vqmod->modCheck($filename);
            }
        }

        if(class_exists('VQMod')) {
            return VQMod::modCheck($filename);
        }

        return $filename;
    }

This issue has been fixed with the latest Shoppica update – 2.2.5.
vQmod version 2.3.2 or lower is not affected.

Regards,
ThemeBurn team

October 25, 2013 at 10:58 am #28376
Viewing 1 post
  • You must be logged in to reply to this topic.