News:

You may pay someone to create your store, or you visit our seminar and become a professional yourself with the silver certification

Main Menu

edit_shipment return 404 with url sef active

Started by ermes, January 18, 2021, 16:04:13 PM

Previous topic - Next topic

ermes

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!

ermes

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] =>
)


GJC Web Design

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?
GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 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

ermes

#3
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

ermes

"Custom Filters » Pagina dei Risultati" is a view of Custom Filter Pro (breakdesigns), that it's the only external component.

GJC Web Design

yes.. I also have a cart menu...  so I have no explanation sorry
GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 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

ermes

#6
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.