• Resolved michaldybczak

    (@michaldybczak)


    I noticed in php debug log such entry:

    PHP Fatal error: Uncaught Error: Call to a member function get_option() on null in /path/public_html/wordpress/wp-content/plugins/paypal-for-woocommerce/angelleye-includes/paypal-rest-api-utility.php:42
    Stack trace:
    #0 /path/public_html/wordpress/wp-content/plugins/paypal-for-woocommerce/classes/wc-gateway-paypal-credit-cards-rest-angelleye.php(246): PayPal_Rest_API_Utility->__construct(Object(WC_Gateway_PayPal_Credit_Card_Rest_AngellEYE))
    #1 /path/public_html/wordpress/wp-content/plugins/paypal-for-woocommerce/classes/wc-gateway-paypal-credit-cards-rest-angelleye.php(112): WC_Gateway_PayPal_Credit_Card_Rest_AngellEYE->add_rest_api_utility()
    #2 /path/public_html/wordpress/wp-includes/class-wp-hook.php(286): WC_Gateway_PayPal_Credit_Card_Rest_AngellEYE->checks(”)
    #3 /path/public_html/wordpress/wp-inc in path/public_html/wordpress/wp-content/plugins/paypal-for-woocommerce/angelleye-includes/paypal-rest-api-utility.php on line 42

    • This topic was modified 6 years, 5 months ago by michaldybczak.

    The page I need help with: [log in to see the link]

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Contributor angelleye

    (@angelleye)

    Can you please provide your WooCommerce status report available under WooCommerce -> Status?

    Also, did this just start happening with recent updates, or is this the first you’ve tried to use the plugin?

    Are you actually using the REST gateway or is this happening even with it disabled?

    Thread Starter michaldybczak

    (@michaldybczak)

    I found this bug on my test site (copy of production site to test, mess with, etc.) and the good thing is, this bug happened only once a few days ago. I’m running the plugin since over half year and I may not notice it (I didn’t have debug.log turned on) earlier. I just turned on debug log on your extension and will see results later. Is it checking bugs related to the plugin or general bugs (so the same of what I already have)?

    I’m not sure what REST gateway is so I can’t answer on that. Or maybe this is the same as REST API? If so, I do have it turned on.

    Here is the status report:

    
    ### WordPress Environment ###
    
    Home URL: https://test.stolmet-zywiec.pl/sklep
    Site URL: https://test.stolmet-zywiec.pl/sklep
    WC Version: 3.2.4
    Log Directory Writable: ✔
    WP Version: 4.9
    WP Multisite: ✔
    WP Memory Limit: 256 MB
    WP Debug Mode: ✔
    WP Cron: ✔
    Language: pl_PL
    
    ### Server Environment ###
    
    Server Info: Apache/2.4.18 (Ubuntu)
    PHP Version: 7.0.22-0ubuntu0.16.04.1
    PHP Post Max Size: 8 MB
    PHP Time Limit: 30
    PHP Max Input Vars: 1000
    cURL Version: 7.47.0
    OpenSSL/1.0.2g
    
    SUHOSIN Installed: –
    MySQL Version: 5.7.20
    Max Upload Size: 2 MB
    Default Timezone is UTC: ✔
    fsockopen/cURL: ✔
    SoapClient: ✔
    DOMDocument: ✔
    GZip: ✔
    Multibyte String: ✔
    Remote Post: ✔
    Remote Get: ✔
    Zapier Integration - Active Feeds: ✔  1 active Zapier Feed.
    Zapier Integration - Cron Tasks: ✔  0 pending Zapier cron tasks.
    Zapier Feed #1 Name: ✔  Zamówienia
    Zapier Feed #1 Webhook URL: ✔  https://zapier.com/hooks/catch/b3ge4c/
    Zapier Feed #1 Trigger: ✔  New Order
    Zapier Feed #1 Test Result: ✔  Successfully sent sample data to https://zapier.com/hooks/catch/b3ge4c/.
    
    ### Database ###
    
    WC Database Version: 3.2.4
    WC Database Prefix: wp_2_
    Całkowity rozmiar bazy danych: 25.18MB
    Rozmiar bazy danych: 18.49MB
    Rozmiar indeksu bazy danych: 6.69MB
    wp_2_woocommerce_sessions: Dane: 0.01MB + Indeks: 0.00MB
    wp_2_woocommerce_api_keys: Dane: 0.00MB + Indeks: 0.00MB
    wp_2_woocommerce_attribute_taxonomies: Dane: 0.00MB + Indeks: 0.01MB
    wp_2_woocommerce_downloadable_product_permissions: Dane: 0.00MB + Indeks: 0.00MB
    wp_2_woocommerce_order_items: Dane: 0.18MB + Indeks: 0.10MB
    wp_2_woocommerce_order_itemmeta: Dane: 1.39MB + Indeks: 0.82MB
    wp_2_woocommerce_tax_rates: Dane: 0.00MB + Indeks: 0.01MB
    wp_2_woocommerce_tax_rate_locations: Dane: 0.00MB + Indeks: 0.00MB
    wp_2_woocommerce_shipping_zones: Dane: 0.00MB + Indeks: 0.00MB
    wp_2_woocommerce_shipping_zone_locations: Dane: 0.00MB + Indeks: 0.01MB
    wp_2_woocommerce_shipping_zone_methods: Dane: 0.00MB + Indeks: 0.00MB
    wp_2_woocommerce_payment_tokens: Dane: 0.00MB + Indeks: 0.00MB
    wp_2_woocommerce_payment_tokenmeta: Dane: 0.00MB + Indeks: 0.00MB
    wp_2_woocommerce_log: Dane: 0.00MB + Indeks: 0.00MB
    action_recorder: Dane: 0.00MB + Indeks: 0.00MB
    sec_directory_whitelist: Dane: 0.00MB + Indeks: 0.00MB
    wp_2_alm: Dane: 0.00MB + Indeks: 0.00MB
    wp_2_commentmeta: Dane: 0.05MB + Indeks: 0.05MB
    wp_2_comments: Dane: 0.72MB + Indeks: 0.26MB
    wp_2_links: Dane: 0.00MB + Indeks: 0.00MB
    wp_2_mobileassistant_accounts: Dane: 0.00MB + Indeks: 0.00MB
    wp_2_mobileassistant_devices: Dane: 0.00MB + Indeks: 0.00MB
    wp_2_mobileassistant_failed_login: Dane: 0.00MB + Indeks: 0.00MB
    wp_2_mobileassistant_push_settings: Dane: 0.00MB + Indeks: 0.00MB
    wp_2_mobileassistant_session_keys: Dane: 0.00MB + Indeks: 0.00MB
    wp_2_mobileassistant_users: Dane: 0.00MB + Indeks: 0.00MB
    wp_2_newsletter: Dane: 0.03MB + Indeks: 0.02MB
    wp_2_newsletter_emails: Dane: 0.05MB + Indeks: 0.00MB
    wp_2_newsletter_sent: Dane: 0.01MB + Indeks: 0.02MB
    wp_2_newsletter_stats: Dane: 0.02MB + Indeks: 0.02MB
    wp_2_options: Dane: 1.58MB + Indeks: 0.15MB
    wp_2_postmeta: Dane: 7.22MB + Indeks: 3.33MB
    wp_2_posts: Dane: 1.37MB + Indeks: 0.31MB
    wp_2_termmeta: Dane: 0.01MB + Indeks: 0.02MB
    wp_2_terms: Dane: 0.01MB + Indeks: 0.02MB
    wp_2_term_relationships: Dane: 0.03MB + Indeks: 0.07MB
    wp_2_term_taxonomy: Dane: 0.01MB + Indeks: 0.02MB
    wp_2_wcpdf_invoice_number: Dane: 0.00MB + Indeks: 0.00MB
    wp_2_woocommerce_bundled_itemmeta: Dane: 0.00MB + Indeks: 0.00MB
    wp_2_woocommerce_bundled_items: Dane: 0.00MB + Indeks: 0.00MB
    wp_2_woocommerce_shipping_table_rates: Dane: 0.00MB + Indeks: 0.00MB
    wp_2_woocommerce_shipping_zone_shipping_methods: Dane: 0.00MB + Indeks: 0.00MB
    wp_2_wpmcleaner: Dane: 0.02MB + Indeks: 0.00MB
    wp_2_wpmelon_advbedit_temp: Dane: 0.00MB + Indeks: 0.00MB
    wp_2_wpml_mails: Dane: 2.20MB + Indeks: 0.00MB
    wp_2_yoast_seo_links: Dane: 0.00MB + Indeks: 0.00MB
    wp_2_yoast_seo_meta: Dane: 0.00MB + Indeks: 0.00MB
    wp_blogs: Dane: 0.00MB + Indeks: 0.00MB
    wp_blog_versions: Dane: 0.00MB + Indeks: 0.00MB
    wp_commentmeta: Dane: 0.00MB + Indeks: 0.00MB
    wp_comments: Dane: 0.00MB + Indeks: 0.00MB
    wp_create_map: Dane: 0.00MB + Indeks: 0.00MB
    wp_domain_mapping: Dane: 0.02MB + Indeks: 0.02MB
    wp_domain_mapping_logins: Dane: 0.02MB + Indeks: 0.00MB
    wp_group_map: Dane: 0.00MB + Indeks: 0.00MB
    wp_links: Dane: 0.00MB + Indeks: 0.00MB
    wp_map_locations: Dane: 0.00MB + Indeks: 0.00MB
    wp_options: Dane: 0.44MB + Indeks: 0.04MB
    wp_postmeta: Dane: 0.12MB + Indeks: 0.06MB
    wp_posts: Dane: 0.31MB + Indeks: 0.04MB
    wp_registration_log: Dane: 0.00MB + Indeks: 0.00MB
    wp_signups: Dane: 0.01MB + Indeks: 0.03MB
    wp_site: Dane: 0.00MB + Indeks: 0.01MB
    wp_sitemeta: Dane: 1.35MB + Indeks: 0.84MB
    wp_termmeta: Dane: 0.00MB + Indeks: 0.00MB
    wp_terms: Dane: 0.00MB + Indeks: 0.01MB
    wp_term_relationships: Dane: 0.00MB + Indeks: 0.00MB
    wp_term_taxonomy: Dane: 0.00MB + Indeks: 0.00MB
    wp_usermeta: Dane: 0.48MB + Indeks: 0.22MB
    wp_users: Dane: 0.03MB + Indeks: 0.03MB
    wp_wfBadLeechers: Dane: 0.00MB + Indeks: 0.00MB
    wp_wfBlockedCommentLog: Dane: 0.00MB + Indeks: 0.00MB
    wp_wfBlockedIPLog: Dane: 0.00MB + Indeks: 0.00MB
    wp_wfBlocks: Dane: 0.02MB + Indeks: 0.01MB
    wp_wfBlocksAdv: Dane: 0.00MB + Indeks: 0.00MB
    wp_wfConfig: Dane: 0.28MB + Indeks: 0.01MB
    wp_wfCrawlers: Dane: 0.00MB + Indeks: 0.00MB
    wp_wfFileMods: Dane: 0.00MB + Indeks: 0.00MB
    wp_wfHits: Dane: 0.36MB + Indeks: 0.07MB
    wp_wfHoover: Dane: 0.00MB + Indeks: 0.00MB
    wp_wfIssues: Dane: 0.00MB + Indeks: 0.00MB
    wp_wfKnownFileList: Dane: 0.00MB + Indeks: 0.00MB
    wp_wfLeechers: Dane: 0.00MB + Indeks: 0.00MB
    wp_wfLockedOut: Dane: 0.00MB + Indeks: 0.00MB
    wp_wfLocs: Dane: 0.00MB + Indeks: 0.00MB
    wp_wfLogins: Dane: 0.04MB + Indeks: 0.01MB
    wp_wfNet404s: Dane: 0.00MB + Indeks: 0.00MB
    wp_wfNotifications: Dane: 0.01MB + Indeks: 0.00MB
    wp_wfPendingIssues: Dane: 0.00MB + Indeks: 0.00MB
    wp_wfReverseCache: Dane: 0.00MB + Indeks: 0.00MB
    wp_wfScanners: Dane: 0.00MB + Indeks: 0.00MB
    wp_wfSNIPCache: Dane: 0.00MB + Indeks: 0.00MB
    wp_wfStatus: Dane: 0.08MB + Indeks: 0.03MB
    wp_wfThrottleLog: Dane: 0.00MB + Indeks: 0.00MB
    wp_wfVulnScanners: Dane: 0.00MB + Indeks: 0.00MB
    wp_woocommerce_attribute_taxonomies: Dane: 0.00MB + Indeks: 0.00MB
    wp_woocommerce_downloadable_product_permissions: Dane: 0.00MB + Indeks: 0.00MB
    wp_woocommerce_order_itemmeta: Dane: 0.00MB + Indeks: 0.00MB
    wp_woocommerce_order_items: Dane: 0.00MB + Indeks: 0.00MB
    wp_woocommerce_tax_rates: Dane: 0.00MB + Indeks: 0.01MB
    wp_woocommerce_tax_rate_locations: Dane: 0.00MB + Indeks: 0.00MB
    wp_woocommerce_termmeta: Dane: 0.00MB + Indeks: 0.01MB
    wp_wpmcleaner: Dane: 0.01MB + Indeks: 0.00MB
    wp_yoast_seo_links: Dane: 0.00MB + Indeks: 0.00MB
    wp_yoast_seo_meta: Dane: 0.00MB + Indeks: 0.00MB
    
    ### Post Type Counts ###
    
    acf: 1
    attachment: 958
    bwg_album: 1
    cybrchmpsthmoption: 13
    displayed_gallery: 3
    display_type: 7
    email-template: 5
    gal_display_source: 5
    kk_package_template: 1
    landing-page: 1
    lightbox_library: 7
    lshowcase: 6
    ml-slider: 3
    nav_menu_item: 43
    ngg_gallery: 4
    ngg_pictures: 313
    option-tree: 1
    optionsframework: 3
    page: 12
    post: 7
    product: 326
    product_variation: 1168
    revision: 158
    shop_coupon: 5
    shop_order: 674
    shop_order_refund: 4
    wccc: 3
    wc_zapier_feed: 1
    wooframework: 8
    woo_compare_images: 1
    wp-call-to-action: 1
    
    ### Security ###
    
    Secure connection (HTTPS): ✔
    Hide errors from visitors: ✔
    
    ### Active Plugins (47) ###
    
    Advanced Menu Widget: przez Ján Bočínec – 0.4.1
    Infinite Scroll: przez Beaver6813
    dirkhaim
    Paul Irish
    benbalter
    Glenn Nelson – 2.6.2
    
    Korporacja Kurierska - Metoda wysyłki: przez Korporacja Kurierska – 2.0 – Nietestowane z używaną wersją WooCommerce
    Maintenance Mode Free: przez ShapedPlugin – 1.2
    Maintenance: przez fruitfulcode – 3.5.1
    Media File Renamer: przez Jordy Meow – 3.7.2
    Mobile Assistant Connector: przez eMagicOne – 1.4.5
    Newsletter: przez Stefano Lissa & The Newsletter Team – 5.1.4
    PayPal for WooCommerce: przez Angell EYE – 1.4.6.7
    Product Enquiry for WooCommerce: przez WisdmLabs – 2.3 – Nietestowane z używaną wersją WooCommerce
    Odnawianie miniaturek: przez Alex Mills (Viper007Bond) – 2.3.1
    Efekt Lightbox: przez dFactory – 1.7.2
    TinyMCE Advanced: przez Andrew Ozz – 4.6.7
    User Role Editor: przez Vladimir Garagulya – 4.37
    WC Duplicate Order: przez Jamie Gill – 1.4 – Nietestowane z używaną wersją WooCommerce
    WooCommerce Dynamic Pricing & Discounts: przez RightPress – 2.0 – Nietestowane z używaną wersją WooCommerce
    WooCommerce Aktywne Płatności: przez WP Desk – 3.1 – Nietestowane z używaną wersją WooCommerce
    Woocommerce Advanced Bulk Edit: przez George Iron – 4.2.5 – Nietestowane z używaną wersją WooCommerce
    WooCommerce Availability Notifications: przez ThemePlugger – 1.1.4 – Nietestowane z używaną wersją WooCommerce
    WooCommerce Ceneo: przez WP Desk – 3.0 – Nietestowane z używaną wersją WooCommerce
    WooCommerce Checkout Manager: przez Visser Labs – 4.1.6 – Nietestowane z używaną wersją WooCommerce
    WooCommerce Composite Products: przez SomewhereWarm – 3.9.4 – 3.12.5 jest dostępne – Nietestowane z używaną wersją WooCommerce
    Woocommerce CSV Import: przez Allaerd Mensonides – 3.3.6 – Nietestowane z używaną wersją WooCommerce
    WooCommerce Email Validation: przez Hugh Lashbrooke – 2.1 – Nietestowane z używaną wersją WooCommerce
    WooCommerce EU VAT Number: przez WooCommerce – 2.2.0 – 2.3.3 jest dostępne – Nietestowane z używaną wersją WooCommerce
    WooCommerce - Store Exporter: przez Visser Labs – 1.9.3 – Nietestowane z używaną wersją WooCommerce
    WooCommerce Stacked Product Layout: przez SomewhereWarm – 1.1.7 – Nietestowane z używaną wersją WooCommerce
    WooCommerce PayU: przez WP Desk – 4.4.1 – Nietestowane z używaną wersją WooCommerce
    WooCommerce Google Analytics Integration: przez WooCommerce – 1.4.3 – Nietestowane z używaną wersją WooCommerce
    WooCommerce Menu Cart: przez Jeremiah Prummer
    Ewout Fernhout – 2.6.0 – Nietestowane z używaną wersją WooCommerce
    
    WooCommerce My Account Widget: przez Bart Pluijms – 0.6.2
    WooCommerce Pay for Payment: przez Karolína Vyskočilová – 2.0.6 – Nietestowane z używaną wersją WooCommerce
    WooCommerce Product Add-ons: przez WooCommerce – 2.8.1 – 2.9.0 jest dostępne – Nietestowane z używaną wersją WooCommerce
    WooCommerce Product Bundles: przez SomewhereWarm – 5.2.4 – 5.6.1 jest dostępne – Nietestowane z używaną wersją WooCommerce
    WooCommerce Sequential Order Numbers: przez SkyVerge – 1.8.2 – Nietestowane z używaną wersją WooCommerce
    WooCommerce Shipment Tracking: przez Mike Jolley – 1.3.3 – 1.6.8 jest dostępne – Nietestowane z używaną wersją WooCommerce
    tpay.com Woocommerce payment module: przez tpay.com – 1.3.3 – Nietestowane z używaną wersją WooCommerce
    WooCommerce wFirma: przez WP Desk – 1.5.2 – Nietestowane z używaną wersją WooCommerce
    WooCommerce Zapier Integration: przez OM4 – 1.6.8 – 1.6.9 jest dostępne – Nietestowane z używaną wersją WooCommerce
    WooCommerce: przez Automattic – 3.2.4 – 3.2.5 jest dostępne
    Yoast SEO: przez Zespół Yoast – 5.8
    WP Desk Helper: przez WP Desk – 1.3.4
    WPFront Notification Bar: przez Syam Mohan – 1.7
    YITH WooCommerce Ajax Search: przez YITHEMES – 1.5.4 – Nietestowane z używaną wersją WooCommerce
    ManageWP - Worker: przez ManageWP – 4.2.27
    Error Log Monitor: przez Janis Elsts – 1.5.6
    Google Analytics Dashboard for WP (GADWP): przez Alin Marcu – 5.1.2.2
    
    ### Settings ###
    
    API Enabled: ✔
    Force SSL: ✔
    Currency: PLN (zł)
    Currency Position: right
    Thousand Separator: .
    Decimal Separator: ,
    Number of Decimals: 2
    Taxonomies: Product Types: bundle (bundle)
    composite (composite)
    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)
    
    ### WC Pages ###
    
    Strona sklepu: #13 - /
    Koszyk: #4 - /koszyk/
    Zamówienie: #8 - /zamowienie/
    Moje konto: #15 - /moje-konto/
    Regulamin: #10 - /regulamin/
    
    ### Theme ###
    
    Name: Customizr Child
    Version: 1.0.0
    Author URL: http://docs.presscustomizr.com/collection/76-customizr-theme
    Child Theme: ✔
    Parent Theme Name: Customizr
    Parent Theme Version: 4.0.12 – 4.0.13 jest dostępne
    Parent Theme Author URL: https://presscustomizr.com/
    WooCommerce Support: ✔
    
    ### Templates ###
    
    Overrides: customizr-child/woocommerce/emails/customer-on-hold-order.php
    
    Plugin Contributor angelleyesupport

    (@angelleyesupport)

    Well, please keep and eye out for another report for this and let us know if you continue to have this error.
    Our plugin log will save transaction related data, it wont store any PHP errors, but you can check error logs at server for PHP related error and see if you have that same error reported again.
    I have added to our git repo. and will see if we are able to reproduce this and needed any adjustments to avoid this in future.
    Thanks!

    Thread Starter michaldybczak

    (@michaldybczak)

    Thanks, will do :).

    Plugin Contributor angelleye

    (@angelleye)

    This has been resolved and will be fixed in the 1.4.7 update that we’ll be releasing soon!

    Thread Starter michaldybczak

    (@michaldybczak)

    Wow, have you really caught and fixed the bug? Thanks! It’s good to hear that you are working on improvements all the time, even if we don’t give enough info to go on ;).
    Thanks for letting me know.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘PHP fatal error – Call to a member function get_option() on nul’ is closed to new replies.