Hey ThemeBurn Support
Hoping you can solve this as the error is the only text displaying on the front end.
So I have upgraded the following to the latest versions:
- OpenCart (1.5.6)
- Shoppica 2 (2.2.4)
- VQmod (2.4.1)
I now receive the following error only when Shoppica 2 is enabled.
Fatal error: Cannot redeclare class ControllerCommonSeoUrl in …/vqmod/vqcache/vq2-catalog_controller_common_seo_url.php on line 196
I believe this is being caused by the fact that I have a VQmod (opencart Blog Manager) that is modifying catalog/controller/common/seo_url.php. Maybe Shoppica is also requesting this class somewhere?
Any suggestions/fixes ?
Many Thanks,
Ross
|
|
Hey
So after looking into this myself I believe I have discovered the cause.
The VQMod check within tb_themes/shoppica2/library/Utils.php fails, as it no longer correctly identifies the latest version of VQMod as being installed (I guess because of some core changes to VQMod 1.4, as this error is not present with versions below this).
To fix this I have modified the function from
public static function vqmodCheck($filename)
{
if (!array_key_exists('vqmod', $GLOBALS)) {
return $filename;
}
global $vqmod;
return $vqmod->modCheck($filename);
}
to the following (only checked with latest VQMod)
public static function vqmodCheck($filename)
{
if(!class_exists('VQMod')) {
return $filename;
}
return VQMod::modCheck($filename);
}
This is now working, as when my installed VQMod (Blog Manager in this case) modifies the seo_url.php file, it no longer causes the Fatal error (originally trigged by the doRouting function within CatalogDispatcher.php also requesting seo_url.php).
However as I have modified a core file, I’ll lose it if there are any further updates, so if this is stable and the best way of going about this please release it as a patch, as I have seen others with this problem around the web with no solution until now.
Also could you please let me know if this is stable as I am planning to use this fix on my live site!
Many Thanks,
Ross
-
This reply was modified 3870 days ago by Rossh.
|
|
Solved this issue for me as well, this is a very good fix!
|
|
Hi,
Thanks for posting the patch here
We will add it in the next theme update.
Best regards,
Svetoslav
ThemeBurn team
|
|
Here’s more backward compatible replacement:
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;
}
Regards,
ThemeBurn team
|
|
Hej ThemeBurn team,
I’ve used the replacement you posted above after having the same problem with the Blog Manager. However, I get this error message now:
Fatal error: Class ‘Controllercommonseourl’ not found in /mnt/webh/e1/74/52607874/htdocs/oc/tb_themes/shoppica2/library/CatalogDispatcher.php on line 83
Before using your fix I deleted the “vq2-catalog_controller_common_seo_url.php” file in the vqcache to “solve” the problem. Can it have something to do with that file missing?
Thanks & best,
Torge
|
|
@Torge
Have you tried to clear your entire vQmod cache folder and _ROOT/system/cache/ folder? Also, emptying the vqcache folder is never dangerous. You can safely delete all the files there as they are recreated automatically.
Best,
ThemeBurn team
|
|
I just purchased the AC CMS extension (like blog manager)
Not gone live yet, just messing around in our test shop.
I get this error on top of every page:
Notice: Undefined variable: override in /public_html/vqmod/vqcache/vq2-catalog_controller_common_seo_url.php on line 73
If I turn off SEO_URLS it disappears. I have also manually deleted the VQMOD Cache without any changes.
Any idease?
|
|
@Bilkamera – which version of vqmod are you using ?
|
|
Why havent this change been added to the latest version?
|
|
9 days and no answer yet?
|
|
You will need to register in order to post topics and read replies in the ThemeBurn.com support forums!
|
|
Hi, I made the changes shown in this thread, but I am still getting this error: Fatal error: Cannot redeclare class ControllerCommonSeoUrl in …/vqmod/vqcache/vq2-catalog_controller_common_seo_url.php on line 204
The addition I recently made was installing the All in one seo module by NerdHerd. I have Opencart 1.5.6.4.
My friend has an older version of Opencart (1.5.5.1) with Shoppica2 and the same module installed and he isn’t having this issue. Any ideas???
|
|
Hi @braevan,
we will need the website url, admin and ftp access, so we can check.
You can use hidepost to share private information with the support staff.
Regards,
ThemeBurn team
|
|
HI,
I have the same problem.
I’m using:
Opencart: 1.5.6.4
VQMOD: 2.5
Shoppica: 2.2.4
SEO Mega KIT PLUSSEO Mega KIT PLUS 1.3.9.9.1
Error:
PHP Fatal error: Cannot redeclare class ControllerCommonMaintenance in /home/xxxxxx/public_html/shop/vqmod/vqcache/vq2-catalog_controller_common_maintenance.php on line 63
|
|