You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi.
I get errors in my logs:
PHP Deprecated: class-oembed.php is deprecated since version 5.3.0! Use wp-includes/class-wp-oembed.php instead. in /home/boatexd/public_html/wp-includes/functions.php on line 5049
I looked at your plugin code and saw that you are using the legacy class connection in two files:
\wp-content\plugins\schema\includes\extensions\video-object.php
\wp-content\plugins\schema\includes\extensions\audio-object.php
this is the require_once( ABSPATH . WPINC . '/class-oembed.php' );
Also i get warnings like this in the logs:
[29-Dec-2020 11:39:56 UTC] PHP Notice: Trying to access array offset on value of type null in /public_html/wp-content/plugins/schema/includes/extensions/comment.php on line 30
[29-Dec-2020 11:39:56 UTC] PHP Notice: Trying to access array offset on value of type null in /public_html/wp-content/plugins/schema/includes/extensions/comment.php on line 57
My temporary solution is:
$schema_type = !empty($schema["@type"]) ? $schema["@type"] : '';
But I think that you can solve this problem correctly and more gracefully.
Let me know about your decision.
Thanks in advance.
Sincerely, Aleksandr.
The text was updated successfully, but these errors were encountered:
Hi.
I get errors in my logs:
PHP Deprecated: class-oembed.php is deprecated since version 5.3.0! Use wp-includes/class-wp-oembed.php instead. in /home/boatexd/public_html/wp-includes/functions.php on line 5049
I looked at your plugin code and saw that you are using the legacy class connection in two files:
\wp-content\plugins\schema\includes\extensions\video-object.php
\wp-content\plugins\schema\includes\extensions\audio-object.php
this is the require_once( ABSPATH . WPINC . '/class-oembed.php' );
fix require_once( ABSPATH . WPINC . '/class-wp-oembed.php' );
And everything will be all right!
Also i get warnings like this in the logs:
[29-Dec-2020 11:39:56 UTC] PHP Notice: Trying to access array offset on value of type null in /public_html/wp-content/plugins/schema/includes/extensions/comment.php on line 30
[29-Dec-2020 11:39:56 UTC] PHP Notice: Trying to access array offset on value of type null in /public_html/wp-content/plugins/schema/includes/extensions/comment.php on line 57
My temporary solution is:
$schema_type = !empty($schema["@type"]) ? $schema["@type"] : '';
But I think that you can solve this problem correctly and more gracefully.
Let me know about your decision.
Thanks in advance.
Sincerely, Aleksandr.
The text was updated successfully, but these errors were encountered: