• Resolved acurran

    (@acurran)


    PHP Notice: Undefined index: logo in …/wp-content/plugins/presto-player/inc/Support/Block.php on line 363

    PHP Notice: Undefined index: preset in …/wp-content/plugins/presto-player/inc/Blocks/YouTubeBlock.php on line 63

Viewing 11 replies - 1 through 11 (of 11 total)
  • 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. 🙂

    Thread Starter acurran

    (@acurran)

    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.

    Thread Starter acurran

    (@acurran)

    and setup is just basic using the Presto video block with a Youtube video

    Plugin Author Andre Gagnon

    (@2winfactor)

    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?

    Thread Starter acurran

    (@acurran)

    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/

    Thread Starter acurran

    (@acurran)

    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’).

    botiq

    (@botiq)

    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.

    paulam11

    (@paulam11)

    Hello there,

    Thank you for your update.

    Kindly check if you are using PHP 8.1 version.

    Looking forward to your response.

    botiq

    (@botiq)

    Hi @paulam11 I’m using PHP 8.0.25

    paulam11

    (@paulam11)

    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.

    Thread Starter acurran

    (@acurran)

    @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'] : '';

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘PHP Notices coming from Presto Player’ is closed to new replies.