LNN
(@ewan-norman)
In the error logs, and it’s even visible in the frontend.
Yes I know, it was myself who pointed it out to you and gave the list of errors above (27/11/2022/plugins/schema-and-structured-data-for-wp/admin_section/common-function.php:3653, etc …)
But how to solve the problem?
Or to make myself better understood, how to prevent these php errors?
Sorry for the inconvenience. Regarding the common-function.php error, we already raised the GitHub ticket in our repository and we are working on it and it will be fixed in the next coming milestone 1.9.105. Once it gets fixed then we will get back to you with an update.
Here is the reference GitHub link: https://github.com/ahmedkaludi/schema-and-structured-data-for-wp/issues/1784
We have fixed this in our latest update 1.9.105. Can you please check once by updating the plugin to the latest version and let us know back if you face any issues? So that we will help you to fix them.
Thanks you
After updating and clearing the cache, it seems that the errors are no longer displayed in red, but the errors list below:
`wp-content/plugins/schema-and-structured-data-for-wp/core/3rd-party/youtube.php:25
SASWP_Youtube::getVideoInfo()
wp-content/plugins/schema-and-structured-data-for-wp/admin_section/common-function.php:3582
saswp_get_video_metadata()
wp-content/plugins/schema-and-structured-data-for-wp/output/function.php:3387
saswp_default_video_object_scjhema()
wp-content/plugins/schema-and-structured-data-for-wp/output/function.php:262
saswp_get_all_schema_markup_output()
wp-content/plugins/schema-and-structured-data-for-wp/output/function.php:141
saswp_schema_markup_output()
wp-content/plugins/schema-and-structured-data-for-wp/core/3rd-party/youtube.php:23
file_get_contents()
wp-content/plugins/schema-and-structured-data-for-wp/core/3rd-party/youtube.php:23
SASWP_Youtube::getVideoInfo()
wp-content/plugins/schema-and-structured-data-for-wp/admin_section/common-function.php:3582
saswp_get_video_metadata()
wp-content/plugins/schema-and-structured-data-for-wp/output/function.php:3387
saswp_default_video_object_scjhema()
wp-content/plugins/schema-and-structured-data-for-wp/output/function.php:262
saswp_get_all_schema_markup_output()
wp-content/plugins/schema-and-structured-data-for-wp/output/function.php:141
saswp_schema_markup_output()
Extension : schema-and-structured-data-for-wp
Avertissement (supprimé)
wp-content/plugins/schema-and-structured-data-for-wp/core/3rd-party/youtube.php:23
file_get_contents()
wp-content/plugins/schema-and-structured-data-for-wp/core/3rd-party/youtube.php:23
SASWP_Youtube::getVideoInfo()
wp-content/plugins/schema-and-structured-data-for-wp/admin_section/common-function.php:3582
saswp_get_video_metadata()
wp-content/plugins/schema-and-structured-data-for-wp/output/function.php:3387
saswp_default_video_object_scjhema()
wp-content/plugins/schema-and-structured-data-for-wp/output/function.php:262
saswp_get_all_schema_markup_output()
wp-content/plugins/schema-and-structured-data-for-wp/output/function.php:141
saswp_schema_markup_output()
Sorry for the inconvenience. We have tested this on our end but not getting these errors. Can you please show us where you are getting these errors? If possible please share a short video to replicate the issue, So that we will test the same and help you to fix them.
We have these errors in the Query Monitor. We don’t know how to produce videos, but we don’t do anything in particular: these errors are detected by the Query Monitor when the pages are displayed, for example page : https://www.alcor-controles.fr
errors :
wp-content/plugins/schema-and-structured-data-for-wp/core/3rd-party/youtube.php:25
SASWP_Youtube::getVideoInfo()
wp-content/plugins/schema-and-structured-data-for-wp/admin_section/common-function.php:3582
saswp_get_video_metadata()
wp-content/plugins/schema-and-structured-data-for-wp/output/function.php:3387
saswp_default_video_object_scjhema()
wp-content/plugins/schema-and-structured-data-for-wp/output/function.php:262
saswp_get_all_schema_markup_output()
wp-content/plugins/schema-and-structured-data-for-wp/output/function.php:141
saswp_schema_markup_output()
wp-includes/class-wp-hook.php:308
do_action('wp_head')
wp-includes/general-template.php:3043
wp_head()
wp-content/themes/neve/header.php:46
load_template('wp-content/themes/neve/header.php')
wp-includes/template.php:718
locate_template()
wp-includes/general-template.php:48
get_header()
wp-content/themes/neve/page.php:10
Extension : schema-and-structured-data-for-wp
Avertissement (supprimé) file_get_contents(): https:// wrapper is disabled in the server configuration by allow_url_fopen=0 1
wp-content/plugins/schema-and-structured-data-for-wp/core/3rd-party/youtube.php:23
file_get_contents()
wp-content/plugins/schema-and-structured-data-for-wp/core/3rd-party/youtube.php:23
SASWP_Youtube::getVideoInfo()
wp-content/plugins/schema-and-structured-data-for-wp/admin_section/common-function.php:3582
saswp_get_video_metadata()
wp-content/plugins/schema-and-structured-data-for-wp/output/function.php:3387
saswp_default_video_object_scjhema()
wp-content/plugins/schema-and-structured-data-for-wp/output/function.php:262
saswp_get_all_schema_markup_output()
wp-content/plugins/schema-and-structured-data-for-wp/output/function.php:141
saswp_schema_markup_output()
wp-includes/class-wp-hook.php:308
do_action('wp_head')
wp-includes/general-template.php:3043
wp_head()
wp-content/themes/neve/header.php:46
load_template('wp-content/themes/neve/header.php')
wp-includes/template.php:718
locate_template()
wp-includes/general-template.php:48
get_header()
wp-content/themes/neve/page.php:10
Extension : schema-and-structured-data-for-wp
Avertissement (supprimé) file_get_contents(https://www.googleapis.com/youtube/v3/videos?part=contentDetails%2Csnippet%2Cstatistics&id=kAkTYbLWaFA&key=AIzaSyBBR7na271uSzwjNO8wgJxiZ9eI6bhiywk): failed to open stream: no suitable wrapper could be found 1
wp-content/plugins/schema-and-structured-data-for-wp/core/3rd-party/youtube.php:23
file_get_contents()
wp-content/plugins/schema-and-structured-data-for-wp/core/3rd-party/youtube.php:23
SASWP_Youtube::getVideoInfo()
wp-content/plugins/schema-and-structured-data-for-wp/admin_section/common-function.php:3582
saswp_get_video_metadata()
wp-content/plugins/schema-and-structured-data-for-wp/output/function.php:3387
saswp_default_video_object_scjhema()
wp-content/plugins/schema-and-structured-data-for-wp/output/function.php:262
saswp_get_all_schema_markup_output()
wp-content/plugins/schema-and-structured-data-for-wp/output/function.php:141
saswp_schema_markup_output()
wp-includes/class-wp-hook.php:308
do_action('wp_head')
wp-includes/general-template.php:3043
wp_head()
wp-content/themes/neve/header.php:46
load_template('wp-content/themes/neve/header.php')
wp-includes/template.php:718
locate_template()
wp-includes/general-template.php:48
get_header()
wp-content/themes/neve/page.php:10
LNN
(@ewan-norman)
Hello,
I can still see notices on my server logs. Please see the below screenshot:
https://u.pcloud.link/publink/show?code=XZa1PWVZ1nJsPTDvT4R05M5Yg8HQLzB6sVtk
Thanks
Yes the screenshot does show php errors
Thanks for the info. We have inspected it in the query monitor but did not get the mentioned errors over there: https://prnt.sc/9_5NxYNnbMGf
If possible, Can you please check once if is there any conflict with other plugins?
no the reason for php errors is not a conflict with other plugins
Sorry for the inconvenience. We will cross check it again and we will get back to you with the fix.
Please go through the structured data settings support tab if possible.