• Resolved Achal Jain

    (@ibachal)


    Hello,

    Getting an error on accessing REST API endpoint “/wp-json/wc/v1” when not logged-in.

    Here is stack trace:

    [08-Nov-2021 05:49:09 UTC] PHP Fatal error:  Uncaught Error: Call to a member function get() on null in /apps/wordpress/htdocs/wp-content/plugins/pinterest-for-woocommerce/src/Tracking.php:191
    Stack trace:
    #0 /apps/wordpress/htdocs/wp-content/plugins/pinterest-for-woocommerce/src/Tracking.php(340): Automattic\WooCommerce\Pinterest\Tracking::get_hashed_customer_email()
    #1 /apps/wordpress/htdocs/wp-content/plugins/pinterest-for-woocommerce/src/Tracking.php(79): Automattic\WooCommerce\Pinterest\Tracking::base_tag()
    #2 /apps/wordpress/htdocs/wp-includes/class-wp-hook.php(303): Automattic\WooCommerce\Pinterest\Tracking::maybe_init()
    • This topic was modified 3 years ago by Achal Jain.
Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Jason a11n

    (@jconroy)

    Thanks for the issue and pull request @ibachal

    https://github.com/woocommerce/pinterest-for-woocommerce/issues/244

    We’ll aim to get that resolved in the next release.

    Cheers

    amauryt

    (@amauryt)

    Hello @ibachal @jconroy

    Same problem here, I reported it back on the github issue too.

    Problem with judgeme endpoint (wp-json/judgeme/v1/domain_check).
    Disabling “Enhanced Match support” of the plugin fixed the issue.

    BR

    In the apache log there are many error records

    [Mon Apr 25 22:58:39.392xxx 2022] [php7:error] [pid 3117] [client 172.70.xx.xxx:10956] PHP Fatal error: Uncaught Error: Call to undefined method Exception::get_pinterest_code() in /var/www/html/wp-content/plugins/pinterest-for-woocommerce/src/FeedRegistration.php:98\nStack trace:\n#0 /var/www/html/wp-includes/class-wp-hook.php(307): Automattic\\WooCommerce\\Pinterest\\FeedRegistration->handle_feed_registration()\n#1 /var/www/html/wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters()\n#2 /var/www/html/wp-includes/plugin.php(522): WP_Hook->do_action()\n#3 /var/www/html/wp-content/plugins/woocommerce/packages/action-scheduler/classes/actions/ActionScheduler_Action.php(22): do_action_ref_array()\n#4 /var/www/html/wp-content/plugins/woocommerce/packages/action-scheduler/classes/abstracts/ActionScheduler_Abstract_QueueRunner.php(65): ActionScheduler_Action->execute()\n#5 /var/www/html/wp-content/plugins/woocommerce/packages/action-scheduler/classes/ActionScheduler_QueueRunner.php(162): ActionScheduler_Abstract_QueueRunner->process_action()\n#6 /var/www/html/wp-content/plugins/woocommerce/packages/action-scheduler/classes in /var/www/html/wp-content/plugins/pinterest-for-woocommerce/src/FeedRegistration.php on line 98, referer: https://site.com/wp-admin/admin-ajax.php?action=as_async_request_queue_runner&nonce=6e6c146d1f

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘PHP Fatal Error when accessing REST API endpoint’ is closed to new replies.