Home › Forums › WoodMart support forum › Massive Issues from Nowhere (504s, Console Errors, and More)
Massive Issues from Nowhere (504s, Console Errors, and More)
- This topic has 4 replies, 2 voices, and was last updated 4 years, 6 months ago by Artem Temos.
-
AuthorPosts
-
May 27, 2020 at 7:49 pm #198421
jmessenger919ParticipantHello,
Just an FYI – using the latest version of Woodmart & Woodmart Core on one of our client sites and ran into HUGE issues this morning with regard to Woodmart Core.
- The site was 504’ing and the logs were complaining about:
AH01071: Got error 'PHP message: PHP Warning: file_get_contents(https://www.mhkattorneys.com/wp-content/uploads/2019/11/handshake-light.svg): failed to open stream: Connection timed out in /var/www/vhosts/mhkattorneys.com/httpdocs/wp-content/plugins/woodmart-core/post-types.php on line 629PHP message: PHP Warning: file_get_contents(https://www.mhkattorneys.com/wp-content/uploads/2019/11/award-light.svg): failed to open stream:
This issue came out of nowhere proved by our audit & activity plugin.I went to the plugin & file the logs were complaining about and commented out:
if ( ! $content ) { $file_get_contents = file_get_contents( $file ); if ( strstr( $file_get_contents, '<svg' ) ) { $content = woodmart_compress( $file_get_contents ); set_transient( $slug, $content, apply_filters( 'woodmart_svg_cache_time', 60 * 60 * 24 * 7 ) ); } }
And this immediately fixed my client’s site, except now of course the SVG Icons aren’t loading on the site at all. Any idea what happened here and why I had to comment out the code in order to get the site to load? We need SVGs for this site.
- We are also getting console errors for certain pages on the frontend. Here is the console error:
Uncaught Error: Vivus [constructor]: "element" parameter is not related to an existing ID at d.setElement (theme.min.js?ver=4.6.0:23) at new d (theme.min.js?ver=4.6.0:23) at HTMLDocument.<anonymous> (emeline-l-kitchen-diener:1868) at i (jquery.js?ver=1.12.4-wp:2) at Object.fireWith [as resolveWith] (jquery.js?ver=1.12.4-wp:2) at Function.ready (jquery.js?ver=1.12.4-wp:2) at HTMLDocument.J (jquery.js?ver=1.12.4-wp:2)
What is going on here? Something is definitely not right.
- WP Bakery editor is not loading, and we get this error on the site backend when editing a page:
Uncaught TypeError: Cannot read property 'replace' of undefined at Function.replace (load-scripts.php?c=0&load[chunk_0]=hoverIntent,common,hoverintent-js,admin-bar,jquery-ui-position,wp-pointer,heartbeat,autosave,wp-ajax-response,jquery-color,wp-li&load[chunk_1]=sts,quicktags,jquery-query,admin-comments,suggest,postbox,jquery-ui-menu,jquery-ui-autocomplete,tags-suggest,tags-box,word-count&load[chunk_2]=,wp-sanitize,post,editor-expand,thickbox,shortcode,wp-backbone,media-models,wp-plupload&ver=5.4.1:427) at vc.Storage.wrapData (backend.min.js?ver=6.2.0:10) at backend.min.js?ver=6.2.0:10 at load-scripts.php?c=0&load[chunk_0]=hoverIntent,common,hoverintent-js,admin-bar,jquery-ui-position,wp-pointer,heartbeat,autosave,wp-ajax-response,jquery-color,wp-li&load[chunk_1]=sts,quicktags,jquery-query,admin-comments,suggest,postbox,jquery-ui-menu,jquery-ui-autocomplete,tags-suggest,tags-box,word-count&load[chunk_2]=,wp-sanitize,post,editor-expand,thickbox,shortcode,wp-backbone,media-models,wp-plupload&ver=5.4.1:427 at RegExp.[Symbol.replace] (<anonymous>) at String.replace (<anonymous>) at Function.replace (load-scripts.php?c=0&load[chunk_0]=hoverIntent,common,hoverintent-js,admin-bar,jquery-ui-position,wp-pointer,heartbeat,autosave,wp-ajax-response,jquery-color,wp-li&load[chunk_1]=sts,quicktags,jquery-query,admin-comments,suggest,postbox,jquery-ui-menu,jquery-ui-autocomplete,tags-suggest,tags-box,word-count&load[chunk_2]=,wp-sanitize,post,editor-expand,thickbox,shortcode,wp-backbone,media-models,wp-plupload&ver=5.4.1:427) at vc.Storage.wrapData (backend.min.js?ver=6.2.0:10) at vc.Storage.fetch (backend.min.js?ver=6.2.0:10) at vc.Storage.findAll (backend.min.js?ver=6.2.0:10)
Please advise as, like stated above, none of the issues were caused by changes to the site.
Thanks,
Jesse
May 27, 2020 at 7:57 pm #198423
jmessenger919ParticipantAnd yes, we have gone through and deactivated plugins to confirm that the issue lies in the trinity of Woodmart Theme, Woodmart Core, and WPBakery Builder.
May 28, 2020 at 6:03 am #198493
Artem TemosKeymasterHi,
Could you please send us a link to your website where we can see this issue?
We also tested this with the WPBakery page builder and didn’t notice any errors.Kind Regards
May 28, 2020 at 8:07 pm #198738
jmessenger919ParticipantHi there,
Well ok – issues 1 & 3 happen in the codebase and site backend, I get you’re not seeing the issue on your installation but this is just a standard WP site that has gone through numerous WoodMart upgrades so there could be something lingering in the DB as a result of this.
Please see the Edit Page screen for any existing page to see the issue with WP Bakery. Also, the theme Required Plugins Installer recommends WPBakery 6.1, but it downloads 6.2.0 which is quite odd.
Error 2 can be found on this page and others like it: https://www.mhkattorneys.com/attorneys/connie-j-merwine
Please advise.
Thanks,
Jesse
May 29, 2020 at 6:07 am #198824
Artem TemosKeymasterSorry, what do you mean by happen in the codebase and site backend? Could you please send us a step by step instruction on how to reproduce this?
It seems that
file_get_contents
function for URLs is disabled on your server. You need to contact your provider and ask to enable this option. - The site was 504’ing and the logs were complaining about:
-
AuthorPosts
Tagged: 504, console error, page editor, svg, wp bakery
- You must be logged in to create new topics. Login / Register