Viewing 15 replies - 1 through 15 (of 23 total)
  • How could you solve this problem? I have the same error:

    Warning: Invalid argument supplied for foreach() in public_html/wp-content/plugins/youtube-embed-plus/youtube.php on line 961

    Warning: Division by zero in public_html/wp-content/plugins/youtube-embed-plus/youtube.php on line 1015

    Thread Starter vee

    (@okvee)

    This error occur once after I saved settings.

    Refresh that page and no error found. But plugin author please fix this. Please don’t ignore these errors.

    Plugin Author embedplus

    (@embedplus)

    Hi,

    Thanks for the constructive feedback. We’ll take a look at this very soon and report back.

    -EmbedPlus Team

    Plugin Author embedplus

    (@embedplus)

    CriterioNet,
    What is:
    a) the exact embed code you inserted into the editor and
    b) the values of each of your gallery settings (gallery page size, number of columns)

    Finally, please confirm that you entered and saved your YouTube API key.

    -EmbedPlus Team

    I’ve added the code in my php file directly, because I want to put the videos in the beginning of my website. Not in a timely page, no news entry. The code is:
    <?php echo do_shortcode(‘[embedyt]https://www.youtube.com/embed?listType=playlist&list=EXAMPLE&plindex=0&layout=gallery[/embedyt]’); ?>

    In the configuration of “Gallery Settings and Directions” plugin I have selected:
    My youtube API key, Gallery Page Size 9 and Number of Columns 3.

    There is an error in the set?

    Plugin Author embedplus

    (@embedplus)

    Does your code literally have a list ID called “EXAMPLE”? Because “EXAMPLE” is not a valid playlist ID. Please try a valid playlist ID, like this one from TED talks: PL70DEC2B0568B5469 (replace EXAMPLE with PL70DEC2B0568B5469). If you’re already using a real playlist ID, please send us what you’re actually using, so that we can try to debug your situation.

    If you still have issues, let us know.

    <?php echo do_shortcode(‘[embedyt]https://www.youtube.com/embed?listType=playlist&list=UUUSPhePUqdvMueWr8sXFf3Q&plindex=0&layout=gallery[/embedyt]’); ?>

    There are two errors:

    Warning: Invalid argument supplied for foreach() in /public_html/wp-content/plugins/youtube-embed-plus/youtube.php on line 961
    
    Warning: Division by zero in /public_html/wp-content/plugins/youtube-embed-plus/youtube.php on line 1015

    Then you see the main video box but in black (to give play, warning “has failed, try again later”)
    After that, no thumbnails of the other videos look. And only seen “1 of 0 1 of 0”.

    What can be wrong?

    Plugin Author embedplus

    (@embedplus)

    Thanks. That’s very valuable info, and we can now start investigating.

    Please let us know if the shortcode at least works in an actual post or page. In other words, what happens if you go to the post/page editor and paste this:

    [embedyt]https://www.youtube.com/embed?listType=playlist&list=UUUSPhePUqdvMueWr8sXFf3Q&plindex=0&layout=gallery[/embedyt]

    I added the code in a .php file so that it looks in home of the site. But I have also tried to enter the code in a page and a news post, but come the same mistakes described above

    Plugin Author embedplus

    (@embedplus)

    The new version coming soon will have a fix. Look for something before 7PM PST US today.

    -EmbedPlus Team

    Plugin Author embedplus

    (@embedplus)

    Proposed fix now uploaded.

    -EmbedPlus Team

    I still have these errors:

    Warning: Invalid argument supplied for foreach() in /home/agrovns/public_html/wp-content/plugins/youtube-embed-plus/youtube.php on line 971
    
    Warning: Division by zero in /home/agrovns/public_html/wp-content/plugins/youtube-embed-plus/youtube.php on line 1014

    Plugin Author embedplus

    (@embedplus)

    Let us know the following:

    1) What version of WordPress are you using?
    2) What version of our plugin are you using?
    3) Do you have any caching plugins? If so, please clear their caches.
    4) Do you have an example page for us to debug the problem? Please make a new page (page, not post) and paste the shortcode in the editor, and give us a link to the page. You can create a page without linking to it in your menu.

    -EmbedPlus Team

    WordPress Version 4.2.4
    Version of plugin 10.4
    If I have plugin cache, but I cleaned several times and does not clear the error. I also tried to disable the plugin cache, but not working.

    Here I’ve created a new page (https://www.agroverdad.com.ar/prueba/) only with the code:
    [embedyt]https://www.youtube.com/embed?listType=playlist&list=UUUSPhePUqdvMueWr8sXFf3Q&plindex=0&layout=gallery[/embedyt]

Viewing 15 replies - 1 through 15 (of 23 total)
  • The topic ‘Invalid argument supplied for foreach()’ is closed to new replies.