My error-log file is getting filled with the statement:
PHP Warning: Cannot modify header information – headers already sent in /home/domain/public_html/wp-content/plugins/youtube-showcase/assets/ext/emd-session/includes/class-emd-wp-session.php on line 132
What needs to be done to correct this?
Thanks.
]]>Hi,
Version: Community 3.3.6
On upgrading PHP to 8+, I get an error message at the top of all screens with the message that constant ‘EMD_ADMIN_DIR’ is already defined. This then in turn throws an error that “headers have already been sent”.
I believe that EMD is a templating system, and therefore other plugins may legitimately set it too. With that in mind, I have changed line 97 of youtube-showcase.php from
define('EMD_ADMIN_DIR', ABSPATH . 'wp-admin');
to
if (!defined('EMD_ADMIN_DIR')) { define('EMD_ADMIN_DIR', ABSPATH . 'wp-admin'); }
Unless I’m missing something, this should be an easy fix to roll out. The other constants defined there are specific to Youtube Showcase and so shouldn’t cause issues. All other declarations of potential duplicate EMD items (e.g. classes, functions) seem to be prefaced with if
statements to prevent redeclaration.
Can you update the plugin or just test it on the newest version of WordPress and add that to the PHP please?
]]>I am getting the PHP Warning:
PHP Warning: Cannot modify header information – headers already sent in /home/xxxxxxxx/public_html/wp-content/plugins/youtube-showcase/assets/ext/wp-session/includes/class-wp-session.php on line 142
I am running Version 3.3.4.
Do I need to do anything for this?
Thanks!
]]>Hello,
Your plugins runs on our site for years without a problem and that’s great job ??
However, since we updated to 3.3.4 (free version), the “Recent Videos” widget shows as HTML code. The code is correct, but displayed on the page instead of being executed.
Maybe that this issue is the same as the previous thread “[fa-youtube] is broken?” from @ajtruckle, but it may be different then I choosed to open a new thread.
We rolled back to 3.3.3 and the plugin works well again (that’s why the “Link to the page you need help with” shows a page with no problem).
We can do a test for you or update to the latest version when you tell us if you want to see the problem.
Thanks for your feedback !
]]>Hi. First of all, I’d like to thank you for a very good free plugin. Really great job and works well. In the light of recent EU and GDPR regulations, in order for a cookie to be sent to the user’s computer, user consent is required. Turning on your plugin automatically sends a cookie called “youtube_showcase_wp_session”. I would like to know exactly what it is for, is it a functional, tracking or marketing cookie? How to classify them. Cookiedatabase.org doesn’t recognizes it at all. And more importantly, how to turn it off? I woult like to know, and be able to tell in my cookie policy does your plugin generally not collect and transmit personal data like IP, etc? The embeded YT video itself, of course, does this, but it can be blocked with the appropriate plugins. I would like to know, how about your plugin. Once again thanks for very good job!
]]>For some reason my use of your plugin is not rendering right any more. Why?
]]>I ran my staging site with DEBUG set to true and I get deprecation warnings:
Deprecated: Required parameter $submit_result follows optional parameter $error in /customers/e/9/c/publictalksoftware.co.uk/httpd.www/~~~/wp-content/plugins/youtube-showcase/includes/emd-form-builder-lite/emd-form-frontend.php on line 987 Deprecated: Required parameter $myfields follows optional parameter $args in /customers/e/9/c/publictalksoftware.co.uk/httpd.www/~~~/wp-content/plugins/youtube-showcase/includes/emd-form-builder-lite/emd-form-functions.php on line 665 Warning: Cannot modify header information - headers already sent by (output started at /customers/e/9/c/publictalksoftware.co.uk/httpd.www/~~~/wp-content/plugins/youtube-showcase/includes/emd-form-builder-lite/emd-form-frontend.php:987) in /customers/e/9/c/publictalksoftware.co.uk/httpd.www/~~~/wp-content/plugins/youtube-showcase/assets/ext/wp-session/includes/class-wp-session.php on line 142 Warning: Cannot modify header information - headers already sent by (output started at /customers/e/9/c/publictalksoftware.co.uk/httpd.www/~~~/wp-content/plugins/youtube-showcase/includes/emd-form-builder-lite/emd-form-frontend.php:987) in /customers/e/9/c/publictalksoftware.co.uk/httpd.www/~~~/wp-admin/includes/misc.php on line 1380 Warning: Cannot modify header information - headers already sent by (output started at /customers/e/9/c/publictalksoftware.co.uk/httpd.www/~~~/wp-content/plugins/youtube-showcase/includes/emd-form-builder-lite/emd-form-frontend.php:987) in /customers/e/9/c/publictalksoftware.co.uk/httpd.www/~~~/wp-includes/functions.php on line 6878 Warning: Cannot modify header information - headers already sent by (output started at /customers/e/9/c/publictalksoftware.co.uk/httpd.www/~~~/wp-content/plugins/youtube-showcase/includes/emd-form-builder-lite/emd-form-frontend.php:987) in /customers/e/9/c/publictalksoftware.co.uk/httpd.www/~~~/wp-admin/admin-header.php on line 9
I replaced my staging site with ~~~.
How do we fix?
]]>YouTube has dropped the dislikes from their API, so when fetching the stats, PHP8 can’t find $JSON_Data->items[0]->statistics->dislikeCount
and cries out with:
Undefined property: stdClass::$dislikeCount
Due to this, all stats for all videos break.
I’ve temporarily fixed it with this simple code change in youtube-showcase-professional/includes/youtube-functions.php:595
$youtube_stats['video_dislike_count'] = $JSON_Data->items[0]->statistics->dislikeCount ?? 0;
For older PHP versions below PHP7, it will require an isset
instead.
I’m using the Pro version 4.9.0 by the way.
]]>PHP Deprecated: Required parameter X follows optional parameter Y in Z
https://www.php.net/manual/en/migration80.deprecated.php
Logs are being flooded with these warnings, please get this sorted, before this becomes a breaking change with future versions of PHP.
]]>Hi. Page navigation doesn’t work on my site.
I click the page number and see the message “Not found”.
Can you help me?
“- Displays YouTube video thumbnail navigation at the bottom.
– YouTube Videos are paged after every 8th video. Page navigation is available. You can adjust the number of YouTube videos shown with a shortcode.”
Hi
I ran the plugin through a php scanner for 7.3 and it reported:
]]>=== Youtube Showcase ===
File: plugins/youtube-showcase/includes/common-functions.php
Global with anything other than bare variables is discouraged since PHP 7.0. Found ${$glob_limit}
Global with anything other than bare variables is discouraged since PHP 7.0. Found ${$glob_orderby}File: plugins/youtube-showcase/includes/integration-shortcodes.php
Global with anything other than bare variables is discouraged since PHP 7.0. Found $ {\n\t\t\t\t$shc_filter\n\t\t\t}File: plugins/youtube-showcase/includes/shortcode-functions.php
Global with anything other than bare variables is discouraged since PHP 7.0. Found ${$set_list}
Global with anything other than bare variables is discouraged since PHP 7.0. Found ${$shc_count_var}
Global with anything other than bare variables is discouraged since PHP 7.0. Found ${$count_var}
Global with anything other than bare variables is discouraged since PHP 7.0. Found ${$shc_filter}
Global with anything other than bare variables is discouraged since PHP 7.0. Found ${$count_var}
Global with anything other than bare variables is discouraged since PHP 7.0. Found ${$count_var}
There’s a shortcode option “order::is::DESC” but there’s no Ascending?
I tried ASC but did not work.
]]>This has been working just fine for quite a while but today, after uploading the video dated May 30, I noticed that it would not switch to another video on page with the [video-gallery] shortcode – I made a [video-grid] shortcode page and it works just fine. https://www.immanuelgaylord.org/video-grid-test/
Auto updates is off, the customer posts videos to youtube and logs into the wordpress just to paste in the url.
After seeing this I updated all the plugins and wordpress and did a support ticket at the host to ask if something on the server changed – php, sql etc and if I hear back or them or figure it out I will post again.
But in the mean time – thoughts anyone?
]]>Hey there,
currently, I’ve got an issue when visiting video-pages. They are loading in the first moment, but then are not displayed.
They worked until this week. I tested it with a standard theme – its working.
Sadly I didn’t change the theme code in that time.
<li>The “requests” cookie will soon be rejected because it specifies either “None” or an invalid value for the “SameSite” attribute without using the “secure” attribute. For more information on the “SameSite” attribute, see https://developer.mozilla.org/docs/Web/HTTP/Headers/Set-Cookie/SameSite. www-embed-player.js: 255: 444</li>
<li>The “SIDCC” cookie will soon be rejected because it specifies either “None” or an invalid value for the “SameSite” attribute without using the “secure” attribute. For more information on the “SameSite” attribute, see https://developer.mozilla.org/docs/Web/HTTP/Headers/Set-Cookie/SameSite. log_event</li>
<li>The “requests” cookie will soon be rejected because it specifies either “None” or an invalid value for the “SameSite” attribute without using the “secure” attribute. For more information on the “SameSite” attribute, see https://developer.mozilla.org/docs/Web/HTTP/Headers/Set-Cookie/SameSite. www-embed-player.js: 255: 444</li>
<li>The “SIDCC” cookie will soon be rejected because it specifies either “None” or an invalid value for the “SameSite” attribute without using the “secure” attribute. For more information on the “SameSite” attribute, see https://developer.mozilla.org/docs/Web/HTTP/Headers/Set-Cookie/SameSite. log_event</li>
<li>The “requests” cookie will soon be rejected because it specifies either “None” or an invalid value for the “SameSite” attribute without using the “secure” attribute. For more information on the “SameSite” attribute, see https://developer.mozilla.org/docs/Web/HTTP/Headers/Set-Cookie/SameSite.`
Hope you can help me fix this!
Best regards
In the plugin I had successfully added a video.
Still, I removed it, and then added other videos first.
Then I re-added the video that I deleted.
Had everything neatly filled in. However, the unique video key was not accepted.
1. Have the browser closed
2. Then I deleted the browser history, emptied trash bins, and also cleaned the computer using the utility that came with the computer.
3. Then I restarted my account. Unfortunately, the unique video key is still not accepted.
What can I do about it?
Thanks in advance for the support.
Is there a way to turn off the scripts for this plugin on pages where is isn’t needed? I don’t want the extra script loaded on my top page when the plugin isn’t being used there.
]]>Hi
Openbugbounty contacted me about site security vulnerabilities to do with clickjacking.
Is the YouTube plugin secure in this respect? Since it uses iframe?
]]>Hi,
I sent a message a few days ago. I built my pages with the video slugs, and when I try to show them in an Elementor page, I get no thumbnails. Please help.
Thank you.
]]>Pagination works fine on desktop, but doesn’t show on mobile. What am I missing?
]]>I use this shortcode but it shown all video without filter by category travel
.
[video_grid filter=”tax::category::is::travel;”]
Hello,
fresh installation of plugin and video changing on gallery do not working.
In console there is this error:
Uncaught Error: Wpas’s JavaScript requires jQuery version 1.9.1 or higher, but lower than version 4
<anonymous> https://www.mainstreetplanninggroup.com/wp-content/plugins/youtube-showcase/assets/ext/wpas/wpas.min.js?ver=3.2.7:1
<anonymous> https://www.mainstreetplanninggroup.com/wp-content/plugins/youtube-showcase/assets/ext/wpas/wpas.min.js?ver=3.2.7:1
I am using this plugin on different site and everything is fine with the same setup.
Please help me how to ti fix this problem, thank you!
]]>Hi,
How I can change the color of the box an text description?
Thanks
Hi
Is it possible to limit the form to display the tags / categories that are actually used by the videos as opposed all all of them from the whole site?
And it is possible to search on just term, and or category and or tag? At the moment it takes all three no matter what, making searching hard.
]]>Firstly, I don’t quite understand why a user has taken the trouble to ask you a question about searching (which must be a frequent request) all they get was silence followed by the topic being closed.
This was the topic:
I had the same issue. I use “Ivory Search” plugin which by design is supposed to search everywhere.
I saw that you had your own “form” that we could display in the free edition, although the drop-down lists are not displaying right. It is functional.
But why can we do a normal search and yield video results in the list?
]]>Everything seems Ok to me, but I noticed with Opera when I view the source I get several hundred entries all related to your plugin.
www-embed-player.js:450 Failed to load resource: net::ERR_BLOCKED_BY_ADBLOCKER
That one appeared 256 times. I do have a ad blocker active but I was curious why this is logging 256 attempts when I only have 19 videos in my library.
This one appears 128 times:
chrome-extension://invalid/:1 Failed to load resource: net::ERR_FAILED
I do not get any of these errors on my other pages that don’t include your content.
I have not tried other browsers yet. I thought I would get your clarification first.
These
]]>I have the page when I display the video gallery and the user can click on any of the thumbnails and the primary video is updated at the top. This is all fully functional and I am happy with it.
My question is two-fold.
Issue 1
I think it would be better if the active video is indicated somehow on the gallery grid. Perhaps with a border of some kind that makes it stand out from the rest.
Issue 2
This is more noticeable on small devices. When you click the thumbnail, it scrolls the carousel. But it does not jump up to the carousel. You have to scroll up to the top of the page to start viewing. Would it not make sense that the user is taken to the video at the top to start playing it? Or do I have a configuration setting issue in my browser?
Thanks.
]]>As I click on each video in the tab grid it seems to zoom further and further in at the top. Why? When I click each video thumbnail I want it to show it correctly, with the maximize button visible.
Please advise.
]]>Just need help with adding some CSS possibly. I need to make the videos a little farther apart, they seem squeezed together. I also don’t want 4 columns, but 3. I’ve tried using the shortcode creator and it’s not working…help please!
]]>I am tagging a video and it is saying “Please enter a unique value.” when I add a tag and click update. I have tried deleting pages and trying again but nothing is solving it.
]]>