Script Conflict message - Not able to remove script anymore

Hi,

I am using X-Theme Ethos Stack.

To make the Icon of the Feature-Box a link, I added a JS code snippet(from the left bar which has JS/CSS etc.) that I found on this Support Forums(https://theme.co/apex/forums/topic/feature-box-link-3/). After adding that script, I am getting the dreaded Script Conflict message on the home page which has the Feature-Box:

“Loading the preview took longer than expected. There may be script conflicts on this page.”

Now I am not able to delete the script and save anymore. My problem is exactly similar to this post:


where there was no resolution provided.

The JS was not added to the Global JS (X ->Launch->Options -> JS) but to the JS for the Home page.

  1. I have disabled all Plugins
  2. I have clicked on JS on the sidebar and deleted the JS and hit save. It gives the Success message but when I refresh and reload the page, the JS is still there.

Can you please help?

Edit 1:
a. The actual script works in the website. The Feature-Box icons are clickable.
b. Also, when I added the custom script yesterday, the preview was working fine.
c. In the Networks Tab in Chrome Dev Tools, I see one 406 Not Acceptable for Request URL:http://xxx.xxxxxxxxxx.org/cornerstone-endpoint when I hit Edit
d. I also see the same 406 when I hit save after deleting the JS, which explains why I am not able to remove and save it.

Edit 2:
a. Its just not Javascript, I can’t make any changes to the Home page as the save isn’t working.
b. I updated the Rev Slider plugin version and retried but no luck. All plugins have been disabled again

Edit 3:
a. Adding the following lines at the end/just before the ‘Happy Blogging’ comment in wp-config.php
define( ‘WP_MEMORY_LIMIT’, ‘256M’ );
define( ‘WP_MAX_MEMORY_LIMIT’, ‘512M’ );
did not solve the problem.
b. I use Updraft to backup my website so I have already worked with my Hosting provider to increase the memory in php.ini
c. This is not a memory issue as I have ‘heavier’ pages in the website which load fine in preview/Cornerstone without any Script warnings.

Any pointers?

Having the same issue (I also see that we’re not the only ones)
So far it’s been suggested to add
define( ‘WP_MEMORY_LIMIT’, ‘256M’ );
define( ‘WP_MAX_MEMORY_LIMIT’, ‘512M’ );

to the bottom of wp-config but it has not worked for me.

I also still receive the 406 cornerstone-endpoint error message

No, adding those lines didn’t work for me either. Updated original post with that info.

Hi Support Team,

I have tested this with and without Rev Slider activated and the behavior doesn’t change. I am hence reenabling the slider.

Ok, I found the fix by searching on the error returned in the response JSON -
success: false, data: {message: “nonce verification failed.”}}

The fix was adding in wp-config.php the following line - below WP_DEBUG
_define( ‘CS_LEGACY_AJAX’, true );

This has resolved the script error, and the custom JS works as well. I will do some more thorough testing tomorrow to see if everything else works fine and report back.

@riakhmerov - Let me know if this solves your problem as well…

Error still persists

Yes I am having the same issue. Everything was fine and it all started yesterday. I have updated the wp-config as suggested with both define( ‘CSLEGACY_AJAX’, true ); and tried it with define(‘CSLEGACY_AJAX’, true); for the same result. I would really appreciate further guidance.

Thanks,
Kathy

Hello @riakhmerov and @kbosland,

Your site may have a different error which is why the steps done by the original poster did not work. At the this time, we kindly asked that you open up your issues on a separate thread along with your site credentials if possible to that we can take a closer look. This is to make sure that we address each of your issues separate and also avoid a longer thread which tend to drift off topic. It will then be difficult for our staff to assists and too confusing for other users looking around the forum.

Thank you for your understanding.