Page 1 of 2

Error - Please select right shipping method

Posted: 02 Jun 2025, 22:18
by hpal
Hello.
I have just finished the configuration of the eshop. I have set a shipping method with shipping rules for country, region and zip codes. This is the only active shipping method. That is because we will ship only to a specific are in the country. I have also installed and configured the Stripe Checkout for phoca by Norrnext.
The thing is that when I select "confirm order" I get the message "Please select right shipping method". Furthermore, when I try to navigate to home page I get "Class "Phoca\PhocaCart\I18n\I18nHelper" not found" and ".../administrator/components/com_phocacart/libraries/phocacart/shipping/shipping.php (605)"

The strange thing is that I have a similar installation that works fine and that the problematic installation used to work fine till I deleted a few other shipping methods that I no longer needed.

Any help would be highly appreciated.

Thank you
Harry

Re: Error - Please select right shipping method

Posted: 03 Jun 2025, 13:52
by Jan
Hi, can you paste a full error message including trace (just enable debug mode to see it). Which version of Phoca Cart do you use, are you sure, you run latest version.

Jan

Re: Error - Please select right shipping method

Posted: 03 Jun 2025, 18:20
by hpal
Hi. I use phocacart 5.1.0 with joomla 5.3.1. I also created a new installation but the problem persists.
Regarding the error, I have enabled debugging mode but I don't see anything more. Where should I look for it?

Re: Error - Please select right shipping method

Posted: 03 Jun 2025, 18:58
by Jan
When you enable debug mode, then this "Class "Phoca\PhocaCart\I18n\I18nHelper" not found" and ".../administrator/components/com_phocacart/libraries/phocacart/shipping/shipping.php (605)" error message should be extended. Do you use standard template which renders debug error message?

On line 605 there is: $columns = I18nHelper::sqlCoalesce(['title', 'description'], 's'); and it calls this method: use Phoca\PhocaCart\I18n\I18nHelper;

Is this file presented on your server: administrator/components/com_phocacart/libraries/src/I18n/I18nHelper.php

Re: Error - Please select right shipping method

Posted: 03 Jun 2025, 22:16
by hpal
Though I switched to Cassiopeia template, no extended error message was displayed - the same error remained.
I also verified that there is a file named "I18nHelper.php" in the path you mentioned.

Harry

Re: Error - Please select right shipping method

Posted: 03 Jun 2025, 22:38
by hpal
Hi again. I just found the source of the problem. I had activated the shipping rule for ZIP codes. As soon as I deactivated it, the problem was resolved.
Any idea on how to be able to use the zip rule for the shipping?
Thank you,

Harry

Re: Error - Please select right shipping method

Posted: 06 Jun 2025, 12:42
by Jan
Hi, testing now, when enabling ZIP rule, everything is OK. When you switch to Cassiopeia, you need to enabled debug mode in Joomla configuration, then you get the trace.

Jan

Re: Error - Please select right shipping method

Posted: 06 Jun 2025, 17:27
by christine
Hi,

in addition:

Code: Select all

public $error_reporting = 'maximum';
public $debug = true;
Sometimes it can be useful that you temporarily rename the error.php file in the template folder, if it exists, to e.g. errorxxxxxx.php. This will ensure that Joomla's error page is used.

Kind regards
Christine

Re: Error - Please select right shipping method

Posted: 09 Jun 2025, 11:12
by hpal
Hi. Thanks for the instructions.
Today I got another error, having disabled already the zip rule. Here is the error:
https://imgur.com/a/SttB45D
Any ideas? Perhaps uninstall and reinstall phocacart?

Kind regards,

Harry

Re: Error - Please select right shipping method

Posted: 10 Jun 2025, 00:06
by Jan
Hi, try to update to this version, it should be OK there:
https://github.com/PhocaCz/PhocaCart/re ... .3Beta.zip

Jan