Quantcast
Channel: WordPress.org Forums » [WP Store Locator] Support
Viewing all articles
Browse latest Browse all 80

wp-store-locator-csv fatal error on PHP v8.1

$
0
0

Replies: 1

Testing a clone of our website using PHP v8.1, and the add-on plugin “wp-store-locator-csv” throws fatal errors.

PHP Fatal error: Array and string offset access syntax with curly
braces is no longer supported in /var/www/html/wp-content/plugins/wp-store-locator-csv/admin/libraries/parsecsv.lib.php on line 1046

I tried to fix all of the instances, replacing {} with [] ( 1046 was the last one ), then it threw a different fate error. End of the line for me.

Oct 29, 2024 9:39:09 AM PHP message: PHP Fatal error: Uncaught ValueError: version_compare(): Argument #3 ($operator) must be a valid comparison operator in /var/www/html/wp-content/plugins/wp-store-locator-csv/admin/upgrade.php:15″

Oct 29, 2024 9:39:09 AM Stack trace:”Oct 29, 2024 9:39:09 AM #0 /var/www/html/wp-content/plugins/wp-store-locator-csv/admin/upgrade.php(15): version_compare(‘1.2.0’, ‘1.2.0’, ‘===’)”

Oct 29, 2024 9:39:09 AM #1 /var/www/html/wp-includes/class-wp-hook.php(324): wpsl_csv_check_upgrade(”)”

Oct 29, 2024 9:39:09 AM #2 /var/www/html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(NULL, Array)”

Oct 29, 2024 9:39:09 AM #3 /var/www/html/wp-includes/plugin.php(517): WP_Hook->do_action(Array)”

Oct 29, 2024 9:39:09 AM #4 /var/www/html/wp-admin/admin.php(175): do_action(‘admin_init’)”

Oct 29, 2024 9:39:09 AM #5 /var/www/html/wp-admin/plugins.php(10): require_once(‘/var/www/html/w…’)”

Oct 29, 2024 9:39:09 AM #6 {main}”

Oct 29, 2024 9:39:09 AM thrown in /var/www/html/wp-content/plugins/wp-store-locator-csv/admin/upgrade.php on line 15″

Oct 29, 2024 9:39:09 AM 2024/10/29 13:39:09 [error] 1730#1730: *2209 FastCGI sent in stderr: “PHP message: PHP Fatal error: Uncaught ValueError: version_compare(): Argument #3 ($operator) must be a valid comparison operator in /var/www/html/wp-content/plugins/wp-store-locator-csv/admin/upgrade.php:15

Oct 29, 2024 9:39:09 AM Stack trace:


Viewing all articles
Browse latest Browse all 80

Trending Articles