Hello there,
Thank you for choosing Presto and writing in!
Kindly share with us more details on where you found this error log and what setup you have done.
I am looking forward to your response. 🙂
These notices are generated every time a page is loaded with Presto player on it. If you enable WP debug mode you will see them.
and setup is just basic using the Presto video block with a Youtube video
Thanks for reporting. This is saying the video that has been added does not have a preset set. Do you perhaps have a Youtube video block added without setting a source or preset?
No I’ve set the source (assuming by source you mean the video url). That’s the only setting for the block as far as I can see.
The video player is on this page: https://goodstorage.co.nz/
Also I’m seeing Javascript error in console:
Failed to execute ‘postMessage’ on ‘DOMWindow’: The target origin provided (‘https://www.youtube.com’) does not match the recipient window’s origin (‘https://goodstorage.co.nz’).
Hi, I have a similar notice every time I load post, page or template editor:
Deprecated: Function WP_REST_Settings_Controller::set_additional_properties_to_false is deprecated since version 6.1.0! Use rest_default_additional_properties_to_false() instead. in /wp-includes/functions.php on line 5383
Warning: Cannot modify header information - headers already sent by (output started at /wp-includes/functions.php:5383) in /wp-admin/admin-header.php on line 9
If I disable the presto player plugin, the notice dissapear.
Hello there,
Thank you for your update.
Kindly check if you are using PHP 8.1 version.
Looking forward to your response.
Hi @paulam11 I’m using PHP 8.0.25
Hello @botiq
Thank you for your confirmation.
As checked, the error logs you are referring with is not related to Presto Player.
For us to check this further, kindly share a guide or screen recorder on how to replicate it because it seems to have something to do with your server hosting or conflict with plugins.
I hope that helps. Looking forward to your response.
@2winfactor in YouTubeBlock.php you need to use isset() to check if $attributes[‘preset’] is set (line 63) and in Block.php I think there is a mistake in line 363:
$branding['logo'] = !empty($branding['logo'] && !$preset->hide_logo) ? $branding['logo'] : '';
I think you intended that to be:
$branding['logo'] = (!empty($branding['logo']) && !$preset->hide_logo) ? $branding['logo'] : '';