Major@PG
Forum Replies Created
-
No problem, in the meanwhile I created a simple plugin as you suggested, and that way it works like a charm. However I would still prefer the functios.php solution, if it will come some day. Please don’t forget to mention it in the change log, if it’s done.
Thanks again for your advice abut the separate plugin.Thanks for the additional info, and for the future effort to make it work through a theme’s functions.php.
Well, I tried to trigger that code early as possible, but in a child theme’s functions.php. I’ll try it in a separate plugin, as you suggested, hopefully it will do the job, thanks for the advice.
However please consider adding a field on the settings page for the cache directory, I don’t think it would disturb anybody. Because it is a cache plugin, I think it is essential for the users to have full control over the cache files including where they are stored, not only to be able to delete and recreate them.- This reply was modified 2 years, 9 months ago by Major@PG.
Problem solved.
The source of the problem was the php.ini for PHP 8.1, and a small difference compared to the php.ini for PHP7.4.
Somehow the last row of the following content was missing in the new PHP 8.1 php.ini file causing a certificate error, because OpenSSL didn’t find the cacert.pem.
[openssl] ; The location of a Certificate Authority (CA) file on the local filesystem ; to use when verifying the identity of SSL/TLS peers. Most users should ; not specify a value for this directive as PHP will attempt to use the ; OS-managed cert stores in its absence. If specified, this value may still ; be overridden on a per-stream basis via the "cafile" SSL stream context ; option. openssl.cafile=/usr/local/etc/cacert.pemThe Plugin is now functioning normally.
No answer for my ticket yet.. is it forgotten? If you can’t make out a simple solution, just send me a short answer that I should not wait for it. I’ll figure it out myself.
No problem, i’ll open a ticket.
The content is a simple video player generated by WordPress Editor (classic not the Gutenberg-Editor), but I also tried “Videojs HTML5 Player plugin”. Nothing special is used here.
It is for me clear, that a simple video content with auto play turned on, will start immediately and will not stop the playback probably because the whole popup content is immediately loaded and stays as a hidden html content in source-code. A delayed, dynamic loading of the whole popup content and removing it completely form the html source after closing the window as an option for popup events would be the perfect solution I think.
Please click on the “zum Video” button on the first slide to see the popup window:
https://hartmann-os.com/
Video playback will start in background immediately after the page is loaded, it won’t wait till popup widow is triggered, and won’t stop if it is closed.I must correct myself: auto-play is also a failure. It starts video playback immediately, before the click event.
It seems that the reason for all those problems is the preloaded and simply hidden content.
It would be a nice to have option if one rather dynamically after a trigger event wants to load the popup window html code instead of preloading and hiding it.