Author Topic: Fatal error: Cannot redeclare virtuemartBuildRoute() (previously declared in ...  (Read 3846 times)

hoknight

  • Jr. Member
  • **
  • Posts: 54
Hi,

Front-end Error message:
Fatal error: Cannot redeclare virtuemartBuildRoute() (previously declared in /home/.../domains/.../public_html/prototype/components/com_virtuemart/router.php:23) in /home/.../domains/.../public_html/prototype/components/com_tcpdf/router.php on line 293

Any one can help how to fix this issues?

Virtuemark 3.0.9.10
Joomla 3.4.4

Thanks.

jenkinhill

  • UK Web Developer & Consultant
  • Global Moderator
  • Super Hero
  • *
  • Posts: 27767
  • Always on vacation
    • Jenkin Hill Internet
Are you using the current version of com_tcpdf?   http://dev.virtuemart.net/attachments/download/896/com_tcpdf_1.0.0.zip

I assume that you are actually using VM3.0.10 ?
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 VM 3.8.4.10335 on Joomla 3.9.19 PHP 7.3.18

hoknight

  • Jr. Member
  • **
  • Posts: 54
I have tried to uninstall Virtuemark and reinstall VM3.0.10 .However, I can't open the Virtuemark again.
Error message are the same in front-end.

Milbo

  • Virtuemart Projectleader
  • Administrator
  • Super Hero
  • *
  • Posts: 10070
  • VM3.2 Cached and Optimized
    • VM3 Extensions
  • VirtueMart Version: VirtueMart 3 on joomla 3
Never reinstall (uninstall and install), use always the normal update method, that means, just install it again.
I should fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

hoknight

  • Jr. Member
  • **
  • Posts: 54
So,What should I do right now?

please advise.


jenkinhill

  • UK Web Developer & Consultant
  • Global Moderator
  • Super Hero
  • *
  • Posts: 27767
  • Always on vacation
    • Jenkin Hill Internet
option=com_tcpdf and option=com_virtuemart_allinone should return a 404 as they are "empty" components.

If you have used the correct com_tcpdf component then the directory components/com_tcpdf/ should be empty - it should not contain router.php so if that file is present then I suggest you rename it, eg to router.xxx
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 VM 3.8.4.10335 on Joomla 3.9.19 PHP 7.3.18

Milbo

  • Virtuemart Projectleader
  • Administrator
  • Super Hero
  • *
  • Posts: 10070
  • VM3.2 Cached and Optimized
    • VM3 Extensions
  • VirtueMart Version: VirtueMart 3 on joomla 3
option=com_tcpdf and option=com_virtuemart_allinone should return a 404 as they are "empty" components.

Correct for the tcpdf, but wrong for the allinone. The allinone shows all vm related extensions.
I should fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

hoknight

  • Jr. Member
  • **
  • Posts: 54
VirtueMart working fine again after renamed the router.php file.

Thanks.

jenkinhill

  • UK Web Developer & Consultant
  • Global Moderator
  • Super Hero
  • *
  • Posts: 27767
  • Always on vacation
    • Jenkin Hill Internet
wrong for the allinone. The allinone shows all vm related extensions.

On a fresh VM3.0.10 install on J3.4.4 administrator/index.php?option=com_virtuemart_allinone returns a 404. But yes, it does contain some content.
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 VM 3.8.4.10335 on Joomla 3.9.19 PHP 7.3.18

Milbo

  • Virtuemart Projectleader
  • Administrator
  • Super Hero
  • *
  • Posts: 10070
  • VM3.2 Cached and Optimized
    • VM3 Extensions
  • VirtueMart Version: VirtueMart 3 on joomla 3
Jenkin this is an error, I was never able to reproduce.
I should fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/