Error - Please select right shipping method

Phoca Cart - complex e-commerce extension
hpal
Phoca Member
Phoca Member
Posts: 22
Joined: 29 Apr 2024, 16:58

Error - Please select right shipping method

Post 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
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48799
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Error - Please select right shipping method

Post 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
If you find Phoca extensions useful, please support the project
hpal
Phoca Member
Phoca Member
Posts: 22
Joined: 29 Apr 2024, 16:58

Re: Error - Please select right shipping method

Post 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?
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48799
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Error - Please select right shipping method

Post 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
If you find Phoca extensions useful, please support the project
hpal
Phoca Member
Phoca Member
Posts: 22
Joined: 29 Apr 2024, 16:58

Re: Error - Please select right shipping method

Post 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
hpal
Phoca Member
Phoca Member
Posts: 22
Joined: 29 Apr 2024, 16:58

Re: Error - Please select right shipping method

Post 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
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48799
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Error - Please select right shipping method

Post 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
If you find Phoca extensions useful, please support the project
christine
Phoca Hero
Phoca Hero
Posts: 2898
Joined: 28 Nov 2010, 17:20

Re: Error - Please select right shipping method

Post 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
hpal
Phoca Member
Phoca Member
Posts: 22
Joined: 29 Apr 2024, 16:58

Re: Error - Please select right shipping method

Post 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
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48799
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Error - Please select right shipping method

Post by Jan »

Hi, try to update to this version, it should be OK there:
https://github.com/PhocaCz/PhocaCart/re ... .3Beta.zip

Jan
If you find Phoca extensions useful, please support the project
Post Reply