VirtueMart Forum

VirtueMart 2 + 3 + 4 => Virtuemart Development and bug reports => Topic started by: Dionysos on October 19, 2016, 05:36:09 AM

Title: Problem with vmrouterhelper after upgrading to Joomla 3.6.3
Post by: Dionysos 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
Title: Re: Problem with vmrouterhelper after upgrading to Joomla 3.6.3
Post by: jenkinhill on October 19, 2016, 11:07:14 AM
And your VirtueMart version is ??
Title: Re: Problem with vmrouterhelper after upgrading to Joomla 3.6.3
Post by: bestcons 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
Title: Re: Problem with vmrouterhelper after upgrading to Joomla 3.6.3
Post by: Dionysos on October 19, 2016, 14:40:19 PM
3.0.18 for me as well
Title: Re: Problem with vmrouterhelper after upgrading to Joomla 3.6.3
Post by: Danielai 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.
Title: Re: Problem with vmrouterhelper after upgrading to Joomla 3.6.3
Post by: 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
Title: Re: Problem with vmrouterhelper after upgrading to Joomla 3.6.3
Post by: Dionysos on October 20, 2016, 08:35:31 AM
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.
Title: Re: Problem with vmrouterhelper after upgrading to Joomla 3.6.3
Post by: RichIT on October 20, 2016, 09:18:20 AM
All I can suggest is to set and review your PHP error logs.
Title: Re: Problem with vmrouterhelper after upgrading to Joomla 3.6.3
Post by: GJC Web Design on October 20, 2016, 11:41:01 AM
http://dev.virtuemart.net/attachments/download/1003/com_tcpdf_1.0.2.zip - with installer
Title: Re: Problem with vmrouterhelper after upgrading to Joomla 3.6.3
Post by: Milbo 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?
Title: Re: Problem with vmrouterhelper after upgrading to Joomla 3.6.3
Post by: bestcons 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.
Title: Re: Problem with vmrouterhelper after upgrading to Joomla 3.6.3
Post by: tabbu 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?
Title: Re: Problem with vmrouterhelper after upgrading to Joomla 3.6.3
Post by: tabbu on October 21, 2016, 17:58:48 PM
My problem was solved as suggested by RichIT, thanks very much for your post.
Title: Re: Problem with vmrouterhelper after upgrading to Joomla 3.6.3
Post by: bestcons on October 21, 2016, 19:34:53 PM
I switched off tcpdf 1.0.2 but the problem persists.
Title: Re: Problem with vmrouterhelper after upgrading to Joomla 3.6.3
Post by: GJC Web Design 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
Title: Re: Problem with vmrouterhelper after upgrading to Joomla 3.6.3
Post by: bestcons on October 22, 2016, 12:00:41 PM
As suggested, I renamed the file, which indeed was the solution to my problem. So I have deleted com_tcpdf. Thanks.
Title: Re: Problem with vmrouterhelper after upgrading to Joomla 3.6.3
Post by: bestcons on October 22, 2016, 16:59:36 PM
Still left with a question. I deleted com_tcpdf via Ftp. I still see the VM component in the Joomla Extension Manager Control Panel. Can/should I also de-install it here?
Title: Re: Problem with vmrouterhelper after upgrading to Joomla 3.6.3
Post by: GJC Web Design on October 22, 2016, 20:54:38 PM
what "VM component" -- u want to delete your shop???
Title: Re: Problem with vmrouterhelper after upgrading to Joomla 3.6.3
Post by: bestcons on October 22, 2016, 22:54:16 PM
The component tcpdf 1.0.2 from Nicola Asuni, The VirtueMart Development Team dated February 2015.
Title: Re: Problem with vmrouterhelper after upgrading to Joomla 3.6.3
Post by: GJC Web Design on October 22, 2016, 22:58:25 PM
it is necessary for your invoices etc .. the FE folder and files must be left overs from an old install

1.0.2 doesn't have any
Title: Re: Problem with vmrouterhelper after upgrading to Joomla 3.6.3
Post by: Studio 42 on October 22, 2016, 23:02:24 PM
Remove all com_tcpdf folder, is not a solution.
You had to uninstall com_tcpdf with Joomla manager >uninstall.
It's why you see the Link to it in the Joomla extension menu.
tcpdf  1.02 for Virtuemart is a library and can be download in Virtuemart dowloads http://dev.virtuemart.net/attachments/download/1022/com_virtuemart.3.0.18_extract_first.zip and extract the zips and install com_tcpdf_1.0.2.zip with Joomla
Title: Re: Problem with vmrouterhelper after upgrading to Joomla 3.6.3
Post by: bestcons on October 23, 2016, 11:55:24 AM
Did not realize that tcpdf 1.0.2 is required. This file, controlled from the Control Panel, is located in: /libraries/
The com_tcpdf folder I removed via Ftp, as this caused the problem, was in components/ and very likely a remains from an earlier installation beyond the reach of the Control Panel.
Currently there is still a com_tcpdf file in administrator/components/ How about that?
Title: Re: Problem with vmrouterhelper after upgrading to Joomla 3.6.3
Post by: jenkinhill on October 23, 2016, 15:27:47 PM
Quote from: bestcons on October 23, 2016, 11:55:24 AM
Currently there is still a com_tcpdf file in administrator/components/ How about that?

That's correct - AFAIK it is needed as it is present in a native installation of  VirtueMart3.0.18_Joomla_3.6.2-Stable-Full_Package.zip
Title: Re: Problem with vmrouterhelper after upgrading to Joomla 3.6.3
Post by: GJC Web Design on October 23, 2016, 15:38:01 PM
To be clear

TCPDF is required for VM .. it is a com in the admin

The problem is with OLD installs that have some left over FRONT END com tcpdf files that up till now have done no harm but with the J3.6.3 are somehow being called and causing the fatal

the fix is simply delete the FE com_tcpdf folder.. thats it!!!!!! It shouldn't be there on current intalls

If you further want to tidy your install uninstall tcpdf and re-install http://dev.virtuemart.net/attachments/download/1003/com_tcpdf_1.0.2.zip