-
AuthorPosts
-
February 28, 2020 at 10:46 pm #1188939
I have an issue resulting in a huge error log file. It’s significant as the most recent error log I deleted was upwards of 17 GB and increased to that size quickly. When I delete the file, it quickly grows again.
I’m running the current version of all plugins and the theme. I’ve built out a dev environment that includes Enfold, a Child, and Slider Revolution only. This way, the issue is isolated. This environment also was a proof case to show it is not related to any other plugin. It’s either the theme or Slider Revolution. (This issue is happening with two sites with the same setup, playing a Vimeo video.)
Please visit http://slide.spidercreations.net, take a look at the Console log errors and you’ll see the issue. I’m using Slider Revolution to display a looping Vimeo video on an Enfold theme. Normally this has not been an issue. Yesterday, we noticed a huge error_log file in the root of the website. Resulted in some space issues on the server and somehow it broke the database connection. (Not sure it is connected, but that’s what happened.)
If I switch from a Vimeo video to a different slider with just rotating image slides, the console errors go away. Seeing this is how I narrowed the issue down to Vimeo…
For the Vimeo ID in the slider settings, I’ve tried both 283786395?loop=1, and just 283786395. (Previously I needed the ?loop=1 to get the video to loop, but that may no longer be needed.This is what the error log is full of as an example:
https://[website]/wp-content/uploads/dynamic_avia/avia-footer-scripts-0e59c074e6a135e47ab71ef11d02d98f---5e4b356ca4bc6.js else if(e=='ready'&&t){i.call(null,r)};return a},removeEvent:function(e){if(!this.element){return!1};var t=this,i=t.element,o=i.id!==''?i.id:null,a=u(e,o);if(e!='ready'&&a){n('removeEventListener',e,i)}}};function n(e,i,t){if(!t.contentWindow.postMessage){return!1};var n=JSON.stringify({method:e,value:i});t.contentWindow.postMessage(n,o)};function a(e){var i,r;try{i=JSON.parse(e.data);r=i.event||i.method}catch(p){};if(r=='ready'&&!t){t=!0};if(!(/^https?:\/\/player.vimeo.com/).test(e.origin)){return!1};if(o==='*'){o=e.origin};var u=i.value,d=i.data,a=a===''?null:i.player_id,s=l(r,a),n=[];if(!s){return!1};if(u!==undefined){n.push(u)};if(d){n.push(d)};if(a){n.push(a)};return n.length>0?s.apply(null,n):s.call()};function s(i,t,o){if(o){if(!e[o]){e[o]={}};e[o][i]=t}
Here is a screenshot of the console – https://pasteboard.co/IWP4NlY.jpg
Can you please take a look? I also have the Theme Punch looking at this issue.
Using the most current versions of both, and removing any custom CSS does not solve the issue. (The development environment is clean installs.)
I also have Theme Punch looking at this and they have the same information you do. Both of you have admin access to the dev environment.Steve
March 4, 2020 at 2:24 am #1189867Hey spidercreations,
Thank you for the inquiry.
We actually encountered the same issue before. You can find the thread here including the temporary fix.
// https://kriesi.at/support/topic/header-slider-from-replete-in-enfold/#post-1023854
Do you see the error when the site is on https or on a secure connection?
Please edit the slideshow-video.js file and look for this code around line 759:
try { data = JSON.parse(event.data); method = data.event || data.method; } catch(e) { //fail silently... like a ninja! }
Try to replace it with:
try { data = JSON.parse(event.data); if(!data) { data = JSON.parse(event.originalEvent.data) } method = data.event || data.method; } catch(e) { //fail silently... like a ninja! }
This solution is based on: https://stackoverflow.com/questions/17190535/javascript-window-postmessage-event-data-is-always-null
Best regards,
IsmaelMarch 6, 2020 at 3:17 pm #1190892I tried replacing the code in slideshow-video.js and the same issue came up, but there seems to be only one line of errors piling up instead of two? Maybe not, still the same issue.
I’m assuming you can see the same errors in the console? You can compare that to the live site at https://brownstonepark.com.
Concerning SSL – the live site at https://brownstonepark.com is secure and has the issue. When I created the dev environment, I did not activate SSL to keep it as clean as possible. I just activated SSL for the dev environment.
You are welcome to access the Control Panel and File Manager to make adjustments as I created the development environment for your testing.
Steve
March 9, 2020 at 11:30 am #1191427Hi,
Thank you for the update.
Looks like the onMessageReceived function or listener is not receiving the data value immediately, and thus creating the error. To prevent it from generating the error, we added this code around line 767 of the same file.
if(!data) { return false; }
If the data is yet undefined return nothing.
Best regards,
IsmaelMarch 9, 2020 at 1:52 pm #1191523Thank you. This did solve the issue in the dev environment I built, but for some reason it is not working on the live site at https://brownstonepark.com
Do you have any other suggestions?
SteveMarch 10, 2020 at 2:57 am #1191678Hi,
The Performance > File Compression settings are enabled in the live domain. Please toggle the option or disable it temporarily. That should reload the scripts which contain the recent changes.
Thank you for your patience.
Best regards,
IsmaelMarch 10, 2020 at 2:30 pm #1191841Thank you. That seems to have resolved the issue.
Will this be incorporated into future versions of the Enfold theme, or will the changes be over-written upon update?
SteveMarch 10, 2020 at 6:48 pm #1191977This reply has been marked as private.March 11, 2020 at 3:38 pm #1192324Hi,
@webdesignphx: This is a different issue. Yours has to do with the Performance > File Compression settings. To fix the issue, you can either deactivate the file compression settings and install a different minification plugin such as Autoptimize. Or add this filter in the functions.php file to remove the timestamp in the name of the merged files.function my_custom_merged_files_unique_id( $uniqid, $file_type, $data, $enqueued, $file_group_name, $conditions ) { return ''; } add_filter( 'avf_merged_files_unique_id', 'my_custom_merged_files_unique_id', 10, 6 );
The cause of the issue is explained in the following thread.
// https://kriesi.at/support/topic/dynamic_avia-making-way-too-many-calls/#post-1182734
Best regards,
IsmaelMarch 11, 2020 at 3:51 pm #1192329OK, but this does not answer the question at hand. I’m using a child theme, but the changes made to the slideshow-video.js in the parent theme. Im not used to seeing files that deep within the theme moved into a child.
Are you saying I should undo the changes made to the slideshow-video.js file and use this function instead?
This is pretty confusing to me, and I don’t understand the other thread.
SteveMarch 11, 2020 at 8:24 pm #1192414Hi Ismael
I added the code on all my enfold installations made sure the settings in performance are correct and that I am using the newest version or enfold and things look to be stable now and the log file is no longer filling up!Thanks for your quick help!!!
MartinaMarch 11, 2020 at 10:36 pm #1192429Crap. Someone – unintentionally – stepped into my thread.
The question outstanding – Is this code going to be included in a future release of the parent theme?
SteveMarch 11, 2020 at 11:54 pm #1192435Hi Steve, sorry I did not unintentionally step into your thread. I was told we might have the same issue and mine was resolved with Ismaels help from March 11, 2020 at 3:38 pm. Maybe it will work for you too. It took me about 3 min per Enfold installation to fix it.
Good luck
Martina- This reply was modified 4 years, 9 months ago by webdesignphx.
March 16, 2020 at 4:32 am #1193381Hi,
@spidercreations: Sorry for the confusion. We’ll forward the thread to our channel for further considerations. Since it doesn’t happen on many installations, it’s possible that the error has something to do with the server configuration.
@webdesignphx: Glad to hear that the solution worked. Let us know in another thread if you need anything else.Best regards,
IsmaelJuly 3, 2020 at 1:34 pm #1227756Did not want to start another thread on this topic. Started getting huge log files again during the past couple of weeks. Followed the instructions again on settings under Performance and it solved some of the issues. Currently, the error log file is continuing to show this error multiple times per minute:
[03-Jul-2020 11:05:13 UTC] SP_PCP_Resize.process() error: $width parameter is required
Did a search online and the only result displayed is my post on the subject.
Any ideas here? This seems to be the last error I’ve got happening in this installation.
July 7, 2020 at 1:57 pm #1228594Hi,
Thank you for the update.
This looks like a plugin error because SP_PCP_Resize.process() is not a theme function. To fix the issue with the file compression, try to disable the timestamp or add a custom one in the Performance > File Compression section, enable the Show advanced options and set the Unique timestamp of merged files to the second option.
Best regards,
IsmaelSeptember 6, 2021 at 5:44 pm #1319889Hi Ismael
I also have the error file increasing in size at a terrifying rate. When I download and open the log, it says “avian-footer-scripts … error-generating-file”I’ve tried to use the threads to fix, but can’t find the slideshow-video.js file.
Please can you help?
Thanks
Joss
September 8, 2021 at 7:50 am #1320058Hi Joss,
Could you try updating the theme to the latest version (4.8.6.2) to see if that helps please? https://kriesi.at/documentation/enfold/how-to-install-enfold-theme/#theme-update. Also please make sure to activate the option to delete old CSS and JS files under Enfold->Performance.
Best regards,
RikardAugust 22, 2022 at 8:53 pm #1362430I am also having issue with Slider Revolution with Vimeo background video on Enfold theme. Can you please test it out?
September 2, 2022 at 9:06 am #1363580Hi,
@excelleme: Sorry for the late response. The site seems to be a displaying a different issue compare to the issue described in this topic. Please create a new thread and post the login details in the private field, a screenshot will also help.Best regards,
Ismael -
AuthorPosts
- The topic ‘Enfold or Slider Revolution conflict showing Vimeo video in slider’ is closed to new replies.