Home › Forums › WoodMart support forum › Site breaking down occasionally and pasting plugin texts on page html itself
Site breaking down occasionally and pasting plugin texts on page html itself
- This topic has 4 replies, 2 voices, and was last updated 1 minute ago by guy-9295.
-
AuthorPosts
-
November 25, 2024 at 12:37 pm #615481
guy-9295ParticipantHi.
So finally I got a chance to try and show you an issue we have been fighting for a while now.For some reason, once – twice a week, we have plugins that are breaking the website. we are not sure exactly what happens and why, and our “dev” is having a hard time making sense and finding the issue.
this happened several times, each time seemed like another plugin created the issue.
I am not sure even when to start.
Another funny thing is, when this happened, I copied the live site to a staging environment to show you.
When looking at it from incognito – I can see the issue.
When logging in – it is gone.
When this happens on live – the issue mostly shows on both frontend and backend, and is shown to both logged in and guest users.can you please help us find where it comes from?
We had to turn wordfence off one of the times when it happened.
Then we had it with the wp import pro [ I think dev made a rollback to make it work again ].I need to pinpoint the issue.
I also stated already that there are a few old codes and templates on the website – you said it should be fine.
But seems something is effin it all up. please help !Attachments:
You must be logged in to view attached files.November 25, 2024 at 12:56 pm #615488
guy-9295ParticipantI see now that it seems to not be present on the staging, even though I did create it while we had the issue.
🙁 not sure how I can make it happen again to show it to you.The only thing I know and forgot to write is that when it happens, the file functions.php in the child theme is changing to the texts we are seeing on the pages.
November 25, 2024 at 2:17 pm #615548
Artem TemosKeymasterHello,
To better assist you, could you kindly test the functionality with default WordPress themes such as TwentyTwenty or WooCommerce Storefront? This will help us determine whether the issue stems from our theme or elsewhere.
Regards
November 25, 2024 at 3:07 pm #615563
guy-9295ParticipantHi, I would love to be able to test it.
Unfortunately, it happens on our live site, which makes us lose sales.
So every time it happened we done all we can to fix it as fast as possible.I copied the website to the staging environment to try and keep the issue, but it seems it is not present anymore.
So now, I cannot even try and test it…No idea how to replicate, since we have no idea what makes it happen in the first place.
We are so lost with this. and it visits us around twice a week. Often on weekend, so it takes time to even notice that there is an issue.Is there any other way to try and find the reason for it happening? it costs us money and orders, clients are too afraid to order when they see scripts and codes printed on the page they browse.
Worst case, I will try to wait for it to happen again and then test if swapping the theme helps.
November 25, 2024 at 3:19 pm #615574
guy-9295Participantokay, so I noticed that from incognito, I did still see the issue, even after Ctrl+F5 and cache cleaning on both sides.
So I tried to change the Theme to Twenty Twenty-Five and it removed the text from the html body.
I moved back to our child theme based on WoodMart – and the texts came straight back on the incognito user.Now, this time the text seems to be related to the plugin that updates stocks on our site [ if something sold in shop, site updates as well ].
Previous time it was the WordFence, and before that it was the stock notifier plugin.
Also, this time when it happened – the Elementor was GONE on our site. Had to rollback…Anyway, seems like part of the problem still persists and can be seen. Seems it does have a connection to the theme [ or at least files used with the theme ].
current text we get:
componentsCounter = 0, fusionUsedComponents = [], // eslint-disable-line no-unused-vars postContent = jQuery( '#content' ).text(); // eslint-disable-line no-unused-vars // Loop over all available elements and add them to Avada Builder. sortedElements = _.sortBy( fusionAllElements, function( element ) { return element.name.toLowerCase(); } ); _.each( sortedElements, function( element ) { var newElement, targetObject = fusionGeneratorElements; if ( 'undefined' === typeof element.hide_from_builder ) { newElement = { title: element.name, label: element.shortcode }; if ( 'undefined' !== typeof element.component && element.component ) { targetObject = fusionComponents; } if ( 'undefined' !== typeof element.allow_in_form && element.allow_in_form ) { fusionFormComponents.push( newElement ); } if ( 'undefined' !== typeof element.form_component && element.form_component ) { fusionFormComponents.push( newElement ); return; } if ( 'undefined' === typeof element.generator_only && 'undefined' === typeof element.form_component ) { fusionElements.push( newElement ); } targetObject.push( Object.assign( {}, newElement, { generator_only: 'undefined' !== typeof element.generator_only ? true : element.generator_only, templates: 'undefined' !== typeof element.templates ? element.templates : false, components_per_template: 'undefined' !== typeof element.components_per_template ? element.components_per_template : false, template_tooltip: 'undefined' !== typeof element.template_tooltip ? element.template_tooltip : false } ) ); } } ); // Filter compoments. fusionComponents.forEach( function( component ) { if ( 'string' === typeof fusionBuilderConfig.template_category && ( 'object' !== typeof component.templates || component.templates.includes( fusionBuilderConfig.template_category ) ) ) { componentsCounter++; } } ); FusionPageBuilder.ViewManager = Backbone.Model.extend( { defaults: { modules: fusionElements, generator_elements: fusionGeneratorElements, components: fusionComponents, componentsCounter: componentsCounter, elementCount: 0, form_components: fusionFormComponents, views: {} }, getView: function( cid ) { return this.get( 'views' )[ cid ]; }, getChildViews: function( parentID ) { var views = this.get( 'views' ), childViews = {}; _.each( views, function( view, key ) { if ( parentID === view.model.attributes.parent ) { childViews[ key ] = view; } } ); return childViews; }, generateCid: function() { var elementCount = this.get( 'elementCount' ) + 1; this.set( { elementCount: elementCount } ); return elementCount; }, addView: function( cid, view ) { var views = this.get( 'views' ); views[ cid ] = view; this.set( { views: views } ); }, removeView: function( cid ) { var views = this.get( 'views' ), updatedViews = {}; _.each( views, function( value, key ) { if ( key != cid ) { // jshint ignore:line updatedViews[ key ] = value; } } ); this.set( { views: updatedViews } ); }, removeViews: function() { var updatedViews = {}; this.set( { views: updatedViews } ); }, countElementsByType: function( elementType ) { var views = this.get( 'views' ), num = 0; _.each( views, function( view ) { if ( view.model.attributes.element_type === elementType ) { num++; } } ); return num; } } ); window.FusionPageBuilderViewManager = new FusionPageBuilder.ViewManager(); // jshint ignore:line } ); }( jQuery ) )
Any help would be greatly appreciated. Our programmer did not manage to find the root of the issue and it has been like that for more than a month already.
-
AuthorPosts
- You must be logged in to create new topics. Login / Register