PluginUs.Net - Business Tools for WooCommerce and WordPress

[realize your idea - make your dreams come true]

Support Forum

You need to log-in to create request (topic) to the support

PHP fatal error after update to 1.4.1.1

The support doesn work on Saturdays and Sundays, so some Friday requests can be answered on Monday. If you have problems with registration ask help on contact us page please
If you not got email within 24~36 business hours, firstly check your spam box, and if no any email from the support there - back to the forum and read answer here. DO NOT ANSWER ON EMAILS [noreply@pluginus.net] FROM THE FORUM!! Emails are just for your info, all answers should be published only here.
The support doesn work on Saturdays and Sundays, so some Friday requests can be answered on Monday.

After updating the plugin to the latest version (1.4.1.1) I'm getting the following error:

PHP Fatal error:  Uncaught Error: Class 'Automattic\\WooCommerce\\Utilities\\OrderUtil' not found in /var/www/edizionisns.catbird.it/html/wp-content/plugins/woocommerce-currency-switcher/classes/woocs_hpos.php

I checked the PHP/WP/WC versions and they meet the requirements stated by the plugin:

WP 5.9.7 > 4.9.0

PHP 7.4.3 > 7.2

WC 6.2.2 > 3.6.0

 

Hello

What version of woocommerce are you using ?

As written above I am using WC 6.2.2

Hello

Try  in file - wp-content\plugins\woocommerce-currency-switcher\index.php - delete  this  code - https://c2n.me/4jq8xSq.png

and do a test

I tried to comment line 83 in wp-content/plugins/woocommerce-currency-switcher/index.php and the result is that the plugin cannot be activated due to the following fatal error:

Fatal error: Uncaught Error: Class 'WoocsHpos' not found in /var/www/edizionisns.catbird.it/html/wp-content/plugins/woocommerce-currency-switcher/classes/woocs.php:64 Stack trace: #0 /var/www/edizionisns.catbird.it/html/wp-content/plugins/woocommerce-currency-switcher/index.php(168): WOOCS->__construct() #1 /var/www/edizionisns.catbird.it/html/wp-content/plugins/woocommerce-currency-switcher/index.php(189): WOOCS_STARTER->get_actual_obj() #2 /var/www/edizionisns.catbird.it/html/wp-admin/includes/plugin.php(2288): include_once('/var/www/edizio...') #3 /var/www/edizionisns.catbird.it/html/wp-admin/plugins.php(192): plugin_sandbox_scrape() #4 {main} thrown in /var/www/edizionisns.catbird.it/html/wp-content/plugins/woocommerce-currency-switcher/classes/woocs.php on line 64

Please  drop  me  wp-admin+FTP access - https://share.pluginus.net/image/i20230222134241.png ->https://share.pluginus.net/image/i20230222134615.png

Dear Pablo, 
thank you very much for your support but at the moment I cannot give any type of access to the server that hosts the website where I encountered the problem. 
This is a dev&test server where we test plugin updates before doing them in production. 
I understand that the problem is with the plugin and not with the specific WordPress installation so I prefer to wait for the new version of the plugin to be available.
It seems to me that the plugin requires a minimum version of WooCommerce where the OrderUtils class is defined. I'm right?

Hello

Yes, you're right, a new version of the plugin with a fix will be released soon

But I recommend using the latest version woocommercce

@davide-3

Hello

Update is done and fix is there

@realmag777 Thank you very much for alerting me to the availability of the update. Now it works perfectly.

Welcome :)