VirtueMart Forum

VirtueMart 2 + 3 + 4 => Virtuemart Development and bug reports => Topic started by: hazael on September 30, 2022, 22:56:41 PM

Title: Call to undefined method [J4.2.3][VM4.0.7]
Post by: hazael on September 30, 2022, 22:56:41 PM
After the last update [4.0.7.10714], I saved something in the VM configuration (can't remember what). Now the product category list does not work for me (frontpage).   :(

QuoteCall to undefined method Joomla\CMS\Router\SiteRouter::setMode()
JROOT/components/com_virtuemart/virtuemart.php:72

When I removed the error code snippet the problem disappeared. I have restored the removed code and the error does not appear. I wonder what could have caused it?
Title: Re: Call to undefined method [J4.2.3][VM4.0.7]
Post by: dannette on December 07, 2022, 23:34:20 PM
Please tell me what you mean when you said you removed the error code snippet. I am having this issue now with that same error and don't really know what to look at.
0 Call to undefined method Joomla\CMS\Router\SiteRouter::setMode()
Call stack
# Function Location
1 () JROOT/components/com_virtuemart/virtuemart.php:67
2 require_once() JROOT/libraries/src/Dispatcher/LegacyComponentDispatcher.php:71
3 Joomla\CMS\Dispatcher\LegacyComponentDispatcher::Joomla\CMS\Dispatcher\{closure}() JROOT/libraries/src/Dispatcher/LegacyComponentDispatcher.php:73
4 Joomla\CMS\Dispatcher\LegacyComponentDispatcher->dispatch() JROOT/libraries/src/Component/ComponentHelper.php:355
5 Joomla\CMS\Component\ComponentHelper::renderComponent() JROOT/libraries/src/Application/SiteApplication.php:200
6 Joomla\CMS\Application\SiteApplication->dispatch() JROOT/libraries/src/Application/SiteApplication.php:241
7 Joomla\CMS\Application\SiteApplication->doExecute() JROOT/libraries/src/Application/CMSApplication.php:294
8 Joomla\CMS\Application\CMSApplication->execute() JROOT/includes/app.php:61
9 require_once() JROOT/index.php:32
Title: Re: Call to undefined method [J4.2.3][VM4.0.7]
Post by: Milbo on December 08, 2022, 23:10:37 PM
Please just update to com_virtuemart.4.0.10.10767.zip https://dev.virtuemart.net/projects/virtuemart/files