Can open popup from stack but the youtube video vimeo option doesn't work

Permalink Browser Info Environment
First: great add-on and we won't miss is anymore.
But we need some help to get a youtube video played in the popup. If we choose youtube or video vimeo for content type no popup open. If we choose stack content the popup appears.
Any idea what we do wrong?

Type: Pre-Sale
Status: Resolved
ConverSEO
View Replies:
mnakalay replied on at Permalink Reply
mnakalay
Hello,

Thank you for your kind words.

Could you show me the Youtube or Vimeo URL you used so I can run some tests?

Thank you
mnakalay replied on at Permalink Reply
mnakalay
In the meantime, I tested a YouTube video on my end and it worked. There might be something else at play.
ConverSEO replied on at Permalink Reply 1 Attachment
ConverSEO
Strange: We installed a new concrete5 and used the standard theme, added a button pro, set up the video popup - with same result. The popup doesn't open.
It seems there is a problem with the javascript. please have a look at the attached screenshot
mnakalay replied on at Permalink Reply
mnakalay
I'm afraid that the message isn't saying enough for me to figure it out. Would you have it live somewhere that I could have a look at?
ConverSEO replied on at Permalink Reply
ConverSEO
Yes, it's available at dev.converseo.de
We figured out, the stack popup doesn't work either, when you aren't logged in.
If you send us your email-address via private message, we setup an admin account for you.

Thanks for your quick response on a Sunday. Great support
mnakalay replied on at Permalink Reply
mnakalay
Thank you for your kind words. I just sent you a PM.
mnakalay replied on at Permalink Reply
mnakalay
FYI concerning the YouTube video the problem is the button should be a link, not a button. BUt that's my fault the validation should check for that, I need to fix it.

Concerning the stack there is definitely an issue as the required JS is not even added to the page, I wonder why, I have to check
mnakalay replied on at Permalink Reply
mnakalay
So I checked on my side and stack popups seem to work. I'm definitely going to need access to your edit mode and check the block in edit mode to understand what's going on.
mnakalay replied on at Permalink Reply
mnakalay
I ran some tests on your website and here's what I found out.

Concerning the YouTube video using a URL. There was an error in the block's validation which allowed you to use an URL of the formathttp://youtu.be/xxxxxxx

That won't work. The URL has to be of the format:https://www.youtube.com/watch?v=xxxxxx...

I corrected the validation issue so next time you use it it should warn you of the problem with the URL.

I also corrected the validation that was not warning you to use a link instead of a button with YouTube.

Concerning the stack. The popup actually works when you're logged in and doesn't work when you're logged out. When logged out, the stack's content is correctly added to the page but not the JS required to open the popup.

On my system, it works logged in or logged out. So you might have some weird permissions somewhere responsible for that. I couldn't check any further as I didn't have access to permissions.

So first please update the plugin to version 3.1.0 then save the youtube button with the correct URL format and you'll see that if you try to save with the wrong format it will show you an error this time. That should work.

As for the stack, check your permissions. I truly don't understand the problem here as the stack itself is on the page so the permission issue is not with the stack. And since the other button does have the correct JS added tot he page I don't know why the stack one wouldn't. But again, it works on my system with concrete 8.5.4 so I don't see what else it could be.

concrete5 Environment Information

# concrete5 Version
Core Version - 8.5.4
Version Installed - 8.5.4
Database Version - 20200609145307

# Database Information
Version: 5.7.32-1
SQL Mode: NO_ENGINE_SUBSTITUTION

# concrete5 Packages
4Concrete5 Dashboard (0.9.0), Buttons Factory Pro (3.0.9), HTML+PHP Code Block (1.0.1), Location Map (2.3.11), Magic Tabs (7.2.8), More Block Templates (0.9.7), Page Redirect (2.0), Pixel Theme (2.4.0), Poptin (0.9.9), Responsive Embed (1.0.1), Stack Popover (1.3.0), Webli Image PopUp (2.2.2), Whale Elastic Slider (1.1.4)

# concrete5 Overrides
blocks/stack_popover/templates/BTN-CKS.php, blocks/stack_popover/templates, blocks/stack_popover

# concrete5 Cache Settings
Block Cache - On
Overrides Cache - On
Full Page Caching - Off
Full Page Cache Lifetime - Every 6 hours (default setting).

# Server Software
Apache

# Server API
cgi-fcgi

# PHP Version
7.3.24

# PHP Extensions
apcu, bcmath, bz2, calendar, cgi-fcgi, Core, ctype, curl, date, dba, dom, exif, fileinfo, filter, ftp, gd, gettext, gmp, hash, htscanner, iconv, imap, intl, json, ldap, libxml, mbstring, mcrypt, mysqli, mysqlnd, OAuth, openssl, pcntl, pcre, PDO, pdo_dblib, PDO_Firebird, pdo_mysql, PDO_ODBC, pdo_pgsql, pdo_sqlite, pgsql, Phar, posix, readline, redis, Reflection, session, shmop, SimpleXML, soap, sockets, sodium, SPL, sqlite3, ssh2, standard, sysvmsg, sysvsem, sysvshm, tidy, tokenizer, xml, xmlreader, xmlrpc, xmlwriter, xsl, Zend OPcache, zip, zlib

# PHP Settings
max_execution_time - 360
log_errors_max_len - 1024
max_file_uploads - 20
max_input_nesting_level - 64
max_input_time - -1
max_input_vars - 1000
memory_limit - 128M
post_max_size - 50M
upload_max_filesize - 50M
ldap.max_links - Unlimited
mbstring.regex_stack_limit - 100000
mysqli.max_links - Unlimited
mysqli.max_persistent - Unlimited
pcre.backtrack_limit - 1000000
pcre.recursion_limit - 100000
pgsql.max_links - Unlimited
pgsql.max_persistent - Unlimited
session.cache_limiter - <i>no value</i>
session.gc_maxlifetime - 7200
soap.wsdl_cache_limit - 5
opcache.max_accelerated_files - 10000
opcache.max_file_size - 0
opcache.max_wasted_percentage - 5

Browser User-Agent String

Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/14.0 Safari/605.1.15

Hide Post Content

This will replace the post content with the message: "Content has been removed by an Administrator"

Hide Content

Request Refund

You may not request a refund that is not currently owned by you.