PHP Fatal error Class ‘PharData’ not found in class-wc-geolocation.php:269
-
This is happening on a site that uses CloudFlare, has DISABLE_WP_CRON set, and instead uses a server cron job. The first time it happened was after I updated to WooCommerce version 3.4.0. At that time I saw from the WC status page that WC was looking for a different geolocation database (GeoLite2-Country.mmdb instead of GeoIP.dat/GeoIPv6.dat), which I duly uploaded to wp-content/uploads. The error went away.
Now that I’ve updated to WooCommerce 3.4.1, the error is back. Here’s the full error report:
PHP Fatal error: Uncaught Error: Class 'PharData' not found in /REDACTED/wp-content/plugins/woocommerce/includes/class-wc-geolocation.php:269 Stack trace: #0 /REDACTED/wp-includes/class-wp-hook.php(286): WC_Geolocation::update_database() #1 /REDACTED/wp-includes/class-wp-hook.php(310): WP_Hook->apply_filters('', Array) #2 /REDACTED/trevellyan.biz/wp-includes/plugin.php(515): WP_Hook->do_action(Array) #3 /REDACTED/wp-cron.php(126): do_action_ref_array('woocommerce_geo...', Array) #4 {main} thrown in /REDACTED/wp-content/plugins/woocommerce/includes/class-wc-geolocation.php on line 269
This is what the cron job looks like:
cd $HOME/REDACTED && /usr/local/bin/php-7.0 wp-cron.php
Viewing 15 replies - 1 through 15 (of 15 total)
Viewing 15 replies - 1 through 15 (of 15 total)
- The topic ‘PHP Fatal error Class ‘PharData’ not found in class-wc-geolocation.php:269’ is closed to new replies.