Author Topic: Problem with vmrouterhelper after upgrading to Joomla 3.6.3  (Read 12112 times)

Dionysos

  • Beginner
  • *
  • Posts: 3
Problem with vmrouterhelper after upgrading to Joomla 3.6.3
« on: October 19, 2016, 05:36:09 am »

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

  • UK Web Developer & Consultant
  • Global Moderator
  • Super Hero
  • *
  • Posts: 28525
  • Always on vacation
    • Jenkin Hill Internet
Re: Problem with vmrouterhelper after upgrading to Joomla 3.6.3
« Reply #1 on: October 19, 2016, 11:07:14 am »
And your VirtueMart version is ??
Kelvyn

Jenkin Hill Internet,
Lowestoft, Suffolk, UK

Unsolicited PMs/emails will be ignored.

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

Currently using VirtueMart 4.0.12 10777  J 3.10.11 PHP 8.0.27

bestcons

  • Jr. Member
  • **
  • Posts: 123
Re: Problem with vmrouterhelper after upgrading to Joomla 3.6.3
« Reply #2 on: October 19, 2016, 12:17:26 pm »
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

Dionysos

  • Beginner
  • *
  • Posts: 3
Re: Problem with vmrouterhelper after upgrading to Joomla 3.6.3
« Reply #3 on: October 19, 2016, 14:40:19 pm »
3.0.18 for me as well

Danielai

  • Beginner
  • *
  • Posts: 1
  • A beginner
Re: Problem with vmrouterhelper after upgrading to Joomla 3.6.3
« Reply #4 on: October 20, 2016, 03:07:02 am »
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

  • Beginner
  • *
  • Posts: 2
  • A beginner
    • Rich IT Solutions
Re: Problem with vmrouterhelper after upgrading to Joomla 3.6.3
« Reply #5 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

Dionysos

  • Beginner
  • *
  • Posts: 3
Re: Problem with vmrouterhelper after upgrading to Joomla 3.6.3
« Reply #6 on: October 20, 2016, 08:35:31 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

  • Beginner
  • *
  • Posts: 2
  • A beginner
    • Rich IT Solutions
Re: Problem with vmrouterhelper after upgrading to Joomla 3.6.3
« Reply #7 on: October 20, 2016, 09:18:20 am »
All I can suggest is to set and review your PHP error logs.

GJC Web Design

  • 3rd party VirtueMart Developer
  • Super Hero
  • *
  • Posts: 10740
  • Virtuemart, Joomla & php developer
    • GJC Web Design
  • VirtueMart Version: 3.8.8
GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM3 AusPost Shipping Plugin - e-go Shipping Plugin - VM3 Postcode Shipping Plugin - Radius Shipping Plugin - VM3 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

  • Virtuemart Projectleader
  • Administrator
  • Super Hero
  • *
  • Posts: 10544
  • VM4.0.7 Eagle Owl
    • VM3 Extensions
  • VirtueMart Version: VirtueMart 3 on joomla 3
Re: Problem with vmrouterhelper after upgrading to Joomla 3.6.3
« Reply #9 on: October 20, 2016, 13:38:47 pm »
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

  • Jr. Member
  • **
  • Posts: 123
Re: Problem with vmrouterhelper after upgrading to Joomla 3.6.3
« Reply #10 on: October 21, 2016, 08:16:56 am »
I checked my tcpdf version. It is already on 1.0.2. so this does not seem to be the root cause.

tabbu

  • Beginner
  • *
  • Posts: 17
Re: Problem with vmrouterhelper after upgrading to Joomla 3.6.3
« Reply #11 on: October 21, 2016, 17:49:21 pm »
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

  • Beginner
  • *
  • Posts: 17
Re: Problem with vmrouterhelper after upgrading to Joomla 3.6.3
« Reply #12 on: October 21, 2016, 17:58:48 pm »
My problem was solved as suggested by RichIT, thanks very much for your post.

bestcons

  • Jr. Member
  • **
  • Posts: 123
Re: Problem with vmrouterhelper after upgrading to Joomla 3.6.3
« Reply #13 on: October 21, 2016, 19:34:53 pm »
I switched off tcpdf 1.0.2 but the problem persists.

GJC Web Design

  • 3rd party VirtueMart Developer
  • Super Hero
  • *
  • Posts: 10740
  • Virtuemart, Joomla & php developer
    • GJC Web Design
  • VirtueMart Version: 3.8.8
Re: Problem with vmrouterhelper after upgrading to Joomla 3.6.3
« Reply #14 on: October 22, 2016, 11:23:50 am »
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
VM3 AusPost Shipping Plugin - e-go Shipping Plugin - VM3 Postcode Shipping Plugin - Radius Shipping Plugin - VM3 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