WP 6.2 Issue - Fix Not Working on Certain Sites

Hi, I’ve been doing the manual fix for most of my sites which has worked, but 4 of them haven’t got cornerstone.php in the correct directory required framework/legacy/functions/plugins/cornerstone.php - there isn’t a ‘functions’ folder within ‘legacy, instead it’s framework/functions/plugins/cornerstone.php and when I added return; to line 194, it didn’t do anything. It’s as though it’s missing a cornerstone.php file - the other sites had 2 cornerstone.php files whereas the ones I’m having trouble with, only have the 1 cornerstone.php file. I’m just guessing, but don’t know if it’s something to do with WooCommerce being active?

These are the 4 sites:


https://www.mr-insulation.co.uk/
https://www.richmondmemorials.co.uk/

Hope you can help!

Thanks!

What version of Pro / X or Cornerstone are you running?

If you see the following in the cornerstone.php try to comment that out.

wp_enqueue_script( 'mediaelement' );

Hello, I am having the same issue. Tried both solutions and still receiving an all grey screen in the editor, with this as the error message. Screenshot 2023-03-30 083810

@ferociousmedia I’d create a new thread that we can look at. That is a very different error then the one we released 6.1.10 for.

Okay thank you Charlie. This issue only started with the Wordpress 6.2 update.

Hi @charlie,

Thanks for the quick reply!

Sorry, I don’t know how to find out the version of Pro I’m using besides going in the WordPress admin and I’m unable to do that at the minute, but if there’s an alternative way to do this, please let me know and I’ll have a looksie!

I’ve attached a screen grab of the cornerstone.php file where it’s showing 2 instances of
wp_enqueue_script( 'mediaelement' );
On lines 36 and 75. Do I need to do anything to them?

Thanks!

Yes so that’s the problem.

So change

wp_enqueue_script( 'mediaelement' );

to

// wp_enqueue_script( 'mediaelement' );

For all instances and you should escape the infinite loop.

@charlie,

Yay! That’s sorted it on all 4 of them, thank you!

With the changes just done, will that effect any future updates, or will the cornerstone.php file be written over when any updates are done?

Thanks!

Awesome to hear. Provided you go right into 6.1.10+ you’ll be fine and this wont’ happen to you.

Hi @charlie,

The thing is, I updated one site a couple of weeks ago to 6.1.10 but then reverted back to the previous version as it completely threw the structure of my site out! I want to wait til glitches and bugs have all been ironed out.

If I don’t update it, what does it mean? Will the critical error message come back again?

Thanks!

No the critical message will not come back. I’d probably turn off auto updates for WordPress too so you aren’t forced into this situation.

Hi @charlie,

Ah that’s good to know!

To turn off the auto updates, is the only way to do it (other than using a plugin) is to add the following line of code in the wp-config.php file:

define( 'WP_AUTO_UPDATE_CORE', false );

Thanks!

1 Like

Hello,
We are experiencing this same issue. I’ve tried the manual fix adding return; to line 194 in the cornerstone.php file but multiple sites still not working. This is the fatal error I’m receiving: Fatal error : Out of memory (allocated 1712328704) (tried to allocate 12288 bytes) in /home/bee/public_html/wp-includes/functions.php on line 649
I’m not seeing any reference to wp_enqueue_script( 'mediaelement' ); either.

I have also installed new version of Pro and still not working.

@turnkeydigital Can you create a new thread so that we might checkout your site?

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.