Call to a member function current_user_can_access_publicize_data()
-
recently i started getting this error when accessing the rest_api on my site
https://techlab.co.il/wp-json/wc/v3/products?consumer_key=###&consumer_secret=###
<br />
<b>Fatal error</b>: Uncaught Error: Call to a member function current_user_can_access_publicize_data() on null in /home/techlabcoil/public_html/wp-content/plugins/jetpack/_inc/lib/core-api/wpcom-fields/post-fields-publicize-connections.php:118
Stack trace:
#0 /home/techlabcoil/public_html/wp-content/plugins/jetpack/_inc/lib/core-api/wpcom-fields/post-fields-publicize-connections.php(136): WPCOM_REST_API_V2_Post_Publicize_Connections_Field->permission_check(28548)
#1 /home/techlabcoil/public_html/wp-content/plugins/jetpack/_inc/lib/core-api/class-wpcom-rest-field-controller.php(116): WPCOM_REST_API_V2_Post_Publicize_Connections_Field->get_permission_check(Array, Object(WP_REST_Request))
#2 /home/techlabcoil/public_html/wp-includes/rest-api/endpoints/class-wp-rest-controller.php(394): WPCOM_REST_API_V2_Field_Controller->get_for_response(Array, ‘jetpack_publici…’, Object(WP_REST_Request), ‘product’)
#3 /home/techlabcoil/public_html/wp-content/plugins/woocommerce/includes/api/v2/class-wc-rest-products-v2-controller.php(166): WP_RE in <b>/home/techlabcoil/public_html/wp-content/plugins/jetpack/_inc/lib/core-api/wpcom-fields/post-fields-publicize-connections.php</b> on line <b>118</b><br />
The topic ‘Call to a member function current_user_can_access_publicize_data()’ is closed to new replies.