Problem with vmrouterhelper after upgrading to Joomla 3.6.3

Started by Dionysos, October 19, 2016, 05:36:09 AM

Previous topic - Next topic

Dionysos


The error received is:
.... PHP Fatal error: Cannot redeclare class vmrouterhelper in /xxx/xxx/public_html/components/com_virtuemart/router.php on line 713

The site returns HTTP ERROR 500

jenkinhill

Kelvyn
Lowestoft, Suffolk, UK

Retired from forum life November 2023

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum

bestcons

Here exactly the same problem after receiving first a http 500 error in the front end. Back end OK. The VM version is 3.0.18


Danielai

Same problem here after upgrade from J! 3.6.2 to 3.6.3
"Fatal error: Cannot redeclare class vmrouterHelper in /xxxx/xxxx/public_html/components/com_virtuemart/router.php on line 713"

VirtueMart 3.0.14

Ive triyed upgrade VM too, and still get the same problem.

RichIT

Same Issue here after upgrade from J! 3.6.2 to 3.6.3
"PHP message: PHP Fatal error:  Cannot redeclare class vmrouterHelper in /components/com_virtuemart/router.php on line 646" while reading response header from upstream
VM Version 3.0.18

Digging a bit deeper....

Fatal error: Cannot redeclare virtuemartBuildRoute() (previously declared in /components/com_tcpdf/router.php:23) in /components/com_virtuemart/router.php on line 293

I had tcpdf 1.0.0 installed, I got a notice that tcpdf 1.0.2 was available however this was not updating via Normal Joomla Update. I removed the tcpdf package, and all was well with my site....

Now just need to get tcpdf 1.0.2 installed....

Hope that helps someone

Dionysos

Quote from: RichIT on October 20, 2016, 08:04:23 AM
Same Issue here after upgrade from J! 3.6.2 to 3.6.3
"PHP message: PHP Fatal error:  Cannot redeclare class vmrouterHelper in /components/com_virtuemart/router.php on line 646" while reading response header from upstream
VM Version 3.0.18

Digging a bit deeper....

Fatal error: Cannot redeclare virtuemartBuildRoute() (previously declared in /components/com_tcpdf/router.php:23) in /components/com_virtuemart/router.php on line 293

I had tcpdf 1.0.0 installed, I got a notice that tcpdf 1.0.2 was available however this was not updating via Normal Joomla Update. I removed the tcpdf package, and all was well with my site....

Now just need to get tcpdf 1.0.2 installed....

Hope that helps someone

This didn't work on my original issue.

RichIT

All I can suggest is to set and review your PHP error logs.

GJC Web Design

GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

Milbo

com_tcpdf has no folder in the frontend and there is also no router.php in it. Did you start with a backup/qhickstarter package of a template? I wonder how comes the router file of virtuemart to a com_tcpdf folder and why it is loaded?
Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

bestcons

I checked my tcpdf version. It is already on 1.0.2. so this does not seem to be the root cause.

tabbu

I'm getting the same issues, but my tcpdf displays an error of "component not found", but the folder is there with all the files.
Any suggestions?

tabbu

My problem was solved as suggested by RichIT, thanks very much for your post.

bestcons


GJC Web Design

As Max says there is no tcpdf in the FE on current installs

at a guess this is left over so just rename the folder  /components/com_tcpdf/   to   /components/com_tcpdf___/

if that fixes it delete the folder
GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation