• Resolved adityokusumo

    (@adityokusumo)


    Hi, I have follow all instruction in this page: https://docs.woocommerce.com/document/maxmind-geolocation-integration/

    However, I’m having an issue when trying to save the MaxMind License into the integration setting page. After I hit the save button, it gave me fatal error message:

    Fatal error: Uncaught Error: Class 'PharData' not found in /REDACTED//wp-content/plugins/woocommerce/includes/integrations/maxmind-geolocation/class-wc-integration-maxmind-database-service.php:119 Stack trace: 
    #0 /REDACTED/wp-content/plugins/woocommerce/includes/integrations/maxmind-geolocation/class-wc-integration-maxmind-geolocation.php(144): WC_Integration_MaxMind_Database_Service->download_database('REDACTED (LICENSEKEY)...') 
    #1 /REDACTED/wp-content/plugins/woocommerce/includes/abstracts/abstract-wc-settings-api.php(147): WC_Integration_MaxMind_Geolocation->validate_license_key_field('license_key', 'REDACTED (LICENSEKEY)...') 
    #2 /REDACTED/wp-content/plugins/woocommerce/includes/abstracts/abstract-wc-settings-api.php(212): WC_Settings_API->get_field_value('license_key', Array, Array) 
    #3 /REDACTED/wp-includes/class-wp-hook.php(287): WC_Settings_API->process_admin_options('') 
    #4 /REDACTED/wp-content/plugins/woocommerce/includes/integrations/maxmind-geolocation/class-wc-integration-maxmind-database-service.php on line 119
    
    There has been a critical error on your website. Please check your site admin email inbox for instructions.

    I’ve tried to find similar issue in the support page and seems the only close one is https://wordpress.org/support/topic/php-fatal-error-class-phardata-not-found-in-class-wc-geolocation-php269/

    however, I’m not quite sure if that’s the same issue and solution. Anybody can inform / suggest me what to do?

Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter adityokusumo

    (@adityokusumo)

    System Status:

    
    ### WordPress Environment ###
    
    WC Version: 4.5.2
    REST API Version: ✔ 4.5.2
    WC Blocks Version: ✔ 3.1.0
    Action Scheduler Version: ✔ 3.1.6
    WC Admin Version: ✔ 1.5.0
    Log Directory Writable: ✔
    WP Version: 5.5.3
    WP Multisite: –
    WP Memory Limit: 256 MB
    WP Debug Mode: ✔
    WP Cron: ✔
    Language: en_AU
    External object cache: –
    
    ### Server Environment ###
    
    Server Info: LiteSpeed
    PHP Version: 7.0.33 - We recommend using PHP version 7.2 or above for greater performance and security. How to update your PHP version
    PHP Post Max Size: 8 MB
    PHP Time Limit: 30
    PHP Max Input Vars: 1000
    cURL Version: 7.71.0
    OpenSSL/1.1.1d
    
    SUHOSIN Installed: –
    MySQL Version: 5.5.5-10.3.25-MariaDB
    Max Upload Size: 8 MB
    Default Timezone is UTC: ✔
    fsockopen/cURL: ✔
    SoapClient: ✔
    DOMDocument: ✔
    GZip: ✔
    Multibyte String: ✔
    Remote Post: ✔
    Remote Get: ✔
    
    ### Database ###
    
    WC Database Version: 4.5.2
    WC Database Prefix: wpoa_
    Total Database Size: 34.02MB
    Database Data Size: 25.65MB
    Database Index Size: 8.37MB
    wpoa_woocommerce_sessions: Data: 0.71MB + Index: 0.03MB + Engine MyISAM
    wpoa_woocommerce_api_keys: Data: 0.00MB + Index: 0.01MB + Engine MyISAM
    wpoa_woocommerce_attribute_taxonomies: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wpoa_woocommerce_downloadable_product_permissions: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wpoa_woocommerce_order_items: Data: 0.26MB + Index: 0.14MB + Engine MyISAM
    wpoa_woocommerce_order_itemmeta: Data: 2.97MB + Index: 1.28MB + Engine MyISAM
    wpoa_woocommerce_tax_rates: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wpoa_woocommerce_tax_rate_locations: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wpoa_woocommerce_shipping_zones: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wpoa_woocommerce_shipping_zone_locations: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wpoa_woocommerce_shipping_zone_methods: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wpoa_woocommerce_payment_tokens: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wpoa_woocommerce_payment_tokenmeta: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wpoa_woocommerce_log: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wpoa_acfw_loyalprog_entries: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wpoa_actionscheduler_actions: Data: 1.56MB + Index: 0.49MB + Engine MyISAM
    wpoa_actionscheduler_claims: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wpoa_actionscheduler_groups: Data: 0.00MB + Index: 0.01MB + Engine MyISAM
    wpoa_actionscheduler_logs: Data: 0.80MB + Index: 0.58MB + Engine MyISAM
    wpoa_commentmeta: Data: 0.04MB + Index: 0.03MB + Engine MyISAM
    wpoa_comments: Data: 1.21MB + Index: 0.57MB + Engine MyISAM
    wpoa_links: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wpoa_options: Data: 3.44MB + Index: 0.41MB + Engine MyISAM
    wpoa_postmeta: Data: 10.82MB + Index: 3.10MB + Engine MyISAM
    wpoa_posts: Data: 1.89MB + Index: 0.39MB + Engine MyISAM
    wpoa_rank_math_404_logs: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wpoa_rank_math_internal_links: Data: 0.01MB + Index: 0.01MB + Engine MyISAM
    wpoa_rank_math_internal_meta: Data: 0.00MB + Index: 0.01MB + Engine MyISAM
    wpoa_rank_math_redirections: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wpoa_rank_math_redirections_cache: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wpoa_smush_dir_images: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wpoa_social_users: Data: 0.01MB + Index: 0.00MB + Engine MyISAM
    wpoa_termmeta: Data: 0.00MB + Index: 0.01MB + Engine MyISAM
    wpoa_terms: Data: 0.00MB + Index: 0.01MB + Engine MyISAM
    wpoa_term_relationships: Data: 0.01MB + Index: 0.03MB + Engine MyISAM
    wpoa_term_taxonomy: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wpoa_usermeta: Data: 1.39MB + Index: 0.77MB + Engine MyISAM
    wpoa_users: Data: 0.07MB + Index: 0.07MB + Engine MyISAM
    wpoa_wc_admin_notes: Data: 0.01MB + Index: 0.00MB + Engine MyISAM
    wpoa_wc_admin_note_actions: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wpoa_wc_category_lookup: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wpoa_wc_customer_lookup: Data: 0.09MB + Index: 0.08MB + Engine MyISAM
    wpoa_wc_download_log: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wpoa_wc_order_coupon_lookup: Data: 0.01MB + Index: 0.02MB + Engine MyISAM
    wpoa_wc_order_product_lookup: Data: 0.18MB + Index: 0.16MB + Engine MyISAM
    wpoa_wc_order_stats: Data: 0.11MB + Index: 0.07MB + Engine MyISAM
    wpoa_wc_order_tax_lookup: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wpoa_wc_product_meta_lookup: Data: 0.02MB + Index: 0.04MB + Engine MyISAM
    wpoa_wc_reserved_stock: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wpoa_wc_tax_rate_classes: Data: 0.00MB + Index: 0.01MB + Engine MyISAM
    wpoa_wc_webhooks: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wpoa_woof_query_cache: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wpoa_wpmailsmtp_tasks_meta: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wpoa_yith_wcwl: Data: 0.02MB + Index: 0.02MB + Engine MyISAM
    wpoa_yith_wcwl_lists: Data: 0.02MB + Index: 0.02MB + Engine MyISAM
    
    ### Post Type Counts ###
    
    attachment: 1452
    blocks: 4
    custom_css: 1
    customize_changeset: 7
    nav_menu_item: 26
    oembed_cache: 1
    page: 19
    post: 5
    product: 214
    product_variation: 12
    revision: 344
    shop_coupon: 16
    shop_order: 1345
    
    ### Security ###
    
    Secure connection (HTTPS): ✔
    Hide errors from visitors: ❌Error messages should not be shown to visitors.
    
    ### Active Plugins (24) ###
    
    Advanced Coupons for WooCommerce Free: by Rymera Web Co – 1.2.1 – Installed version not tested with active version of WooCommerce 4.5.2
    Advanced Coupons for WooCommerce Premium: by Rymera Web Co – 2.2.1 – Installed version not tested with active version of WooCommerce 4.5.2
    Click to Chat: by HoliThemes – 2.12
    Facebook for WooCommerce: by Facebook – 2.1.1 – Installed version not tested with active version of WooCommerce 4.5.2
    Fr Multi Bank Transfer Payment Gateways for WooCommerce: by Fahri Rusliyadi – 1.1.0 – Installed version not tested with active version of WooCommerce 4.5.2
    Kadence WooCommerce Email Designer: by Kadence WP – 1.4.1 – Installed version not tested with active version of WooCommerce 4.5.2
    Loco Translate: by Tim Whitlock – 2.4.4
    Midtrans - WooCommerce Payment Gateway: by Midtrans – 2.18.3 – Installed version not tested with active version of WooCommerce 4.5.2
    Moota Woocommerce: by Moota.co – 0.6.1 – Installed version not tested with active version of WooCommerce 4.5.2
    My Custom Functions: by Space X-Chimp – 4.42
    Nextend Social Login: by Nextendweb – 3.0.24
    PixelYourSite: by PixelYourSite – 7.1.8 – Installed version not tested with active version of WooCommerce 4.5.2
    Really Simple SSL: by Rogier Lankhorst
    Mark Wolters – 3.3.3
    
    Rank Math SEO: by Rank Math – 1.0.50
    WooCommerce Cancel Abandoned Order: by studio RVOLA – 1.8.0 – Installed version not tested with active version of WooCommerce 4.5.2
    Checkout Field Editor for WooCommerce: by ThemeHigh – 3.1.1 – Installed version not tested with active version of WooCommerce 4.5.2
    WOOF - WooCommerce Products Filter: by realmag777 – 1.2.4 – Installed version not tested with active version of WooCommerce 4.5.2
    WooCommerce: by Automattic – 4.5.2 (update to version 4.6.2 is available)
    Woongkir: by Sofyan Sitorus – 1.2.16 – Installed version not tested with active version of WooCommerce 4.5.2
    Notifier to Whatsapp: by QODR – 0.3.9 – Installed version not tested with active version of WooCommerce 4.5.2
    WP Instant Feeds: by mnmlthms – 1.3.3
    Smush Pro: by WPMU DEV – 3.6.3
    WPMU DEV Dashboard: by WPMU DEV – 4.10.5
    YITH WooCommerce Wishlist: by YITH – 3.0.11 – Installed version not tested with active version of WooCommerce 4.5.2
    
    ### Inactive Plugins (1) ###
    
    WP Mail SMTP: by WPForms – 2.5.1
    
    ### Settings ###
    
    API Enabled: –
    Force SSL: –
    Currency: IDR (Rp)
    Currency Position: left_space
    Thousand Separator: .
    Decimal Separator: ,
    Number of Decimals: 0
    Taxonomies: Product Types: external (external)
    grouped (grouped)
    simple (simple)
    variable (variable)
    
    Taxonomies: Product Visibility: exclude-from-catalog (exclude-from-catalog)
    exclude-from-search (exclude-from-search)
    featured (featured)
    outofstock (outofstock)
    rated-1 (rated-1)
    rated-2 (rated-2)
    rated-3 (rated-3)
    rated-4 (rated-4)
    rated-5 (rated-5)
    
    Connected to WooCommerce.com: –
    
    ### WC Pages ###
    
    Shop base: #13 - /shop/
    Cart: #14 - /cart/
    Checkout: #15 - /checkout/
    My account: #16 - /my-account/
    Terms and conditions: ❌ Page not set
    
    ### Theme ###
    
    Name: Flatsome
    Version: 3.11.3
    Author URL: http://www.uxthemes.com/
    Child Theme: ❌ – If you are modifying WooCommerce on a parent theme that you did not build personally we recommend using a child theme. See: How to create a child theme
    WooCommerce Support: ✔
    
    ### Templates ###
    
    Overrides: flatsome/woocommerce/archive-product.php
    flatsome/woocommerce/cart/cart-empty.php
    flatsome/woocommerce/cart/cart-shipping.php
    flatsome/woocommerce/cart/cart.php
    flatsome/woocommerce/checkout/form-checkout.php
    flatsome/woocommerce/checkout/form-coupon.php
    flatsome/woocommerce/checkout/terms.php
    flatsome/woocommerce/checkout/thankyou.php
    flatsome/woocommerce/content-product.php
    flatsome/woocommerce/content-product_cat.php
    flatsome/woocommerce/content-single-product.php
    flatsome/woocommerce/content-widget-product.php
    flatsome/woocommerce/emails/customer-on-hold-order.php
    flatsome/woocommerce/emails/customer-processing-order.php
    flatsome/woocommerce/global/breadcrumb.php
    flatsome/woocommerce/global/quantity-input.php
    flatsome/woocommerce/global/wrapper-end.php
    flatsome/woocommerce/global/wrapper-start.php
    flatsome/woocommerce/loop/loop-end.php
    flatsome/woocommerce/loop/loop-start.php
    flatsome/woocommerce/loop/pagination.php
    flatsome/woocommerce/loop/result-count.php
    flatsome/woocommerce/loop/sale-flash.php
    flatsome/woocommerce/myaccount/form-login.php
    flatsome/woocommerce/myaccount/navigation.php
    flatsome/woocommerce/notices/error.php
    flatsome/woocommerce/notices/notice.php
    flatsome/woocommerce/notices/success.php
    flatsome/woocommerce/product-searchform.php
    flatsome/woocommerce/single-product/photoswipe.php
    flatsome/woocommerce/single-product/price.php
    flatsome/woocommerce/single-product/product-image.php
    flatsome/woocommerce/single-product/product-thumbnails.php
    flatsome/woocommerce/single-product/rating.php
    flatsome/woocommerce/single-product/related.php
    flatsome/woocommerce/single-product/review.php
    flatsome/woocommerce/single-product/sale-flash.php
    flatsome/woocommerce/single-product/share.php
    flatsome/woocommerce/single-product/short-description.php
    flatsome/woocommerce/single-product/tabs/tabs.php
    flatsome/woocommerce/single-product/title.php
    flatsome/woocommerce/single-product/up-sells.php
    flatsome/woocommerce/single-product-reviews.php version 3.6.0 is out of date. The core version is 4.3.0
    flatsome/woocommerce/single-product.php
    
    Outdated Templates: ❌
    					
    					
    						Learn how to update
    
    ### Action Scheduler ###
    
    Complete: 4,524
    Oldest: 2020-10-21 11:30:17 +0700
    Newest: 2020-11-11 05:32:23 +0700
    
    Failed: 3
    Oldest: –
    Newest: –
    
    Pending: 6
    Oldest: 2020-11-11 05:39:38 +0700
    Newest: 2020-11-11 11:17:24 +0700
    
    
    • This reply was modified 3 years, 5 months ago by adityokusumo.
    Plugin Contributor Claudio Sanches

    (@claudiosanches)

    Hello @adityokusumo, thanks for starting this conversation.
    Seems like is missing to install on your server the libzip and also enable ZIP on the PHP installation, maybe you could it solve by installing php-zip.

    I hope it helps you.

    Thread Starter adityokusumo

    (@adityokusumo)

    Hi Claudio, thanks for the suggestion, I will look information about libzip, php-zip and how to install them. I will update the case If it manage to solve the issue.

    Thread Starter adityokusumo

    (@adityokusumo)

    Hi, I have searched online on how to install php-zip but found various article and I’m not sure which one is the right one. Can you help me inform with a link that I can read? Thank you!

    Plugin Support Ena P (a11n)

    (@drwpcom)

    Hi @adityokusumo. Sorry that we missed your last response. Are you still facing this issue? We recommending using at least PHP 7.2 with WooCommerce. Can you try updating PHP to see if that helps? I would also suggest discussing the issue with your host to confirm that Phar is working correctly on their servers.

    Thread Starter adityokusumo

    (@adityokusumo)

    Hi, thanks for your response. I finally somehow solve this when migrating my website to another hosting. Maybe PHP issue that I’m not aware of.

    Thanks!

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Fatal error ‘PharData’ not found when setting up MaxMind GeoLocate Integration’ is closed to new replies.