Error 404: when clicking on "add to cart" button

  • Posts: 76113
  • Thank you received: 11910
  • MODERATOR
11 years 5 months ago #10589

Hi Matt,

Your problem seems to be related to a SEF issue. How did you set it up ? Do you use some kind of extension for it ?

Please Log in or Create an account to join the conversation.

  • Posts: 31
  • Thank you received: 0
11 years 5 months ago #10594

Hm, you mean SEO configuration (see attached screenshot)?

Well, the point is that I didn't change anything in these settings the last days. Thus it worked well with these settings until I did some changes (which of course - shame on me - I can't retrace anymore) apparently in the shop content module (?) or somewhere else.

Could be that it has something to do with the "Associated products listing for categories listing menus" (see attached file)?

M.


[P.S.: If you are interested resp. if this problem is of interest for Hikashop development, feel free to check by yourself. I can provide you with a login via PM.]


www.buch-comptoir.de

shop.buch-comptoir.de

[Weltweiter Versand seltener Bücher]
Attachments:

Please Log in or Create an account to join the conversation.

  • Posts: 31
  • Thank you received: 0
11 years 5 months ago #10595

Addendum: It works again, if I turn off the option "search engine friendly URLs" - strange.


www.buch-comptoir.de

shop.buch-comptoir.de

[Weltweiter Versand seltener Bücher]
Last edit: 11 years 5 months ago by mt_robson. Reason: mistype

Please Log in or Create an account to join the conversation.

  • Posts: 76113
  • Thank you received: 11910
  • MODERATOR
11 years 5 months ago #10614

So it's really related to SEF. Maybe you could try to enable mod_rewrite ?
There is a new little doc which explains how to set it up there: docs.joomla.org/SEF_URLs_in_Joomla!_1.5

Please Log in or Create an account to join the conversation.

  • Posts: 31
  • Thank you received: 0
11 years 5 months ago #10665

Ok thx, I will give it a try although I don't see too much of a relation to SEF as it worked well with the old settings for quite some time.

Regards, M. B)


www.buch-comptoir.de

shop.buch-comptoir.de

[Weltweiter Versand seltener Bücher]

Please Log in or Create an account to join the conversation.

  • Posts: 290
  • Thank you received: 4
  • Hikashop Business
11 years 3 months ago #14976

I have had this problem on/off on one dev system, but worked fine on live.
Just had this problem occur on another dev system which has been Ok until now.
So decided time for a bit of debug tracing was needed - this is what I found....

$_SERVER /* string */ = /XXXXXXXX/XXXX/XXXX_joomla/index.php/shop/checkout/notice/tmpl-component
$_SERVER /* string */ = /shop/checkout/notice/tmpl-component

$_REQUEST /* string */ = 335
$_REQUEST /* string */ = com_hikashop
$_REQUEST /* string */ = notice
$_REQUEST /* string */ = component

In router.php parse()
=====================
$this->_mode /* string */ = 1 (=== JROUTER_MODE_SEF)
$uri->_path /* string */ = shop/checkout/notice/tmpl-component

In router.php _parseSefRoute()
==============================
$route /* string */ = shop/checkout/notice/tmpl-component

Hikashop parse route call
=========================
hikashopParseRoute(array('notice', 'component'))

hikashop.php line 37
====================
File does not exist: HIKASHOP_CONTROLLER.'notice.php'


Turns out the problem is due to a Checkout menu item underneath a shop menu item as show in the attached screenshot. Disabling the checkout menu item solves the porblem.

Changing the alias for the C heckout[/i] menu item to checkoutmain solved the problem.
See attached screenshot.

Attachments:

Please Log in or Create an account to join the conversation.

  • Posts: 76113
  • Thank you received: 11910
  • MODERATOR
11 years 3 months ago #14983

Ah yes, the problem is a SEF alias conflict because joomla translates the notice popup to the same URL as this menu so what it unSEF it for processing, it tries to use the menu itemid which in turns removes the "checkout" parameter at the beginning of the URL. That, in turns makes the hikashop system believe that the controller is the next parameter "notice" instead of using it as the task of the checkout controller. So, finally, when it tries to load the controller, it doesn't find it since it's not the good one.
That's a tricky one !
Thanks for posting the solution.

Please Log in or Create an account to join the conversation.

Time to create page: 0.085 seconds
Powered by Kunena Forum