Hi forum, I have a little problem with a new installation of joomla (3.9.24)+ virtuemart (3.8.6 10373). I have this config:
- SEF URL active
- Link menù to cart (alias "carrello")
- OPC disabled
- Show cart step enabled
So, when I go to cart (https://www.mysite.ext/carrello) works fine. I accept TOS and continue (ok). I add my personal data and continue as a guest or user (ok). Now I should select the shipping method from the page https://www.mysite.ext/carrello/edit_shipment but it redirect me to 404 (the same is if you try to connect at edit_payment page). It's a bad url config or a bug? Can anyone try and let me know?
Thank you!
This can be useful. If i intercept the error (print_r($this->error) in error.php) i can view this:
RuntimeException Object
(
[message:protected] => VirtueMart category not found.
[string:Exception:private] =>
[code:protected] => 404
[file:protected] => /var/www/wse/shop/components/com_virtuemart/views/category/view.html.php
[line:protected] => 749
[trace:Exception:private] => Array
(
[0] => Array
(
[file] => /var/www/wse/shop/components/com_virtuemart/views/category/view.html.php
[line] => 200
[function] => handle404
[class] => VirtuemartViewCategory
[type] => ->
[args] => Array
(
)
)
[1] => Array
(
[file] => /var/www/wse/shop/components/com_virtuemart/controllers/category.php
[line] => 54
[function] => display
[class] => VirtuemartViewCategory
[type] => ->
[args] => Array
(
)
)
[2] => Array
(
[file] => /var/www/wse/shop/libraries/src/MVC/Controller/BaseController.php
[line] => 710
[function] => display
[class] => VirtueMartControllerCategory
[type] => ->
[args] => Array
(
)
)
[3] => Array
(
[file] => /var/www/wse/shop/components/com_virtuemart/virtuemart.php
[line] => 120
[function] => execute
[class] => Joomla\CMS\MVC\Controller\BaseController
[type] => ->
[args] => Array
(
[0] =>
)
)
[4] => Array
(
[file] => /var/www/wse/shop/libraries/src/Component/ComponentHelper.php
[line] => 402
[args] => Array
(
[0] => /var/www/wse/shop/components/com_virtuemart/virtuemart.php
)
[function] => require_once
)
[5] => Array
(
[file] => /var/www/wse/shop/libraries/src/Component/ComponentHelper.php
[line] => 377
[function] => executeComponent
[class] => Joomla\CMS\Component\ComponentHelper
[type] => ::
[args] => Array
(
[0] => /var/www/wse/shop/components/com_virtuemart/virtuemart.php
)
)
[6] => Array
(
[file] => /var/www/wse/shop/libraries/src/Application/SiteApplication.php
[line] => 194
[function] => renderComponent
[class] => Joomla\CMS\Component\ComponentHelper
[type] => ::
[args] => Array
(
[0] => com_virtuemart
)
)
[7] => Array
(
[file] => /var/www/wse/shop/libraries/src/Application/SiteApplication.php
[line] => 233
[function] => dispatch
[class] => Joomla\CMS\Application\SiteApplication
[type] => ->
[args] => Array
(
)
)
[8] => Array
(
[file] => /var/www/wse/shop/libraries/src/Application/CMSApplication.php
[line] => 196
[function] => doExecute
[class] => Joomla\CMS\Application\SiteApplication
[type] => ->
[args] => Array
(
)
)
[9] => Array
(
[file] => /var/www/wse/shop/index.php
[line] => 49
[function] => execute
[class] => Joomla\CMS\Application\CMSApplication
[type] => ->
[args] => Array
(
)
)
)
[previous:Exception:private] =>
)
makes no sense to me .. why is the edit ship going to the category controller where it is handled as a potential category but of course not found?
I tried the same setup as you -- the SEF url is /cart/edit_shipment and works
try the non SEF -- index.php?option=com_virtuemart&view=cart&task=edit_shipment&Itemid=101 .. does that work?
btw .. the Itemid will be the root menu to VM .. not the cart menu .. I assume u have a root menu to VM? hidden or otherwise?
Without sef active it works fine. Yes home page point to virtuemart root category. Have you create the menu item "cart"?
Maybe useful if i show all my menu items. Follow a screen
"Custom Filters » Pagina dei Risultati" is a view of Custom Filter Pro (breakdesigns), that it's the only external component.
yes.. I also have a cart menu... so I have no explanation sorry
Do you have tested it on a multilanguage store? Because I have another analogue issue: I have a menu item that point at VirtueMart » Account Maintenance with alias "dati-utente". So when i go to cart and click on button to add/edit user data (https://www.myshop.ext/dati-utente/editaddresscartBT) it retdirect me to 404 page with same error that i posted before. Please tell me that you have an idea!
Tnx in advance!
[EDIT]
If i remove the menu item VirtueMart » Account Maintenance it works fine.