Late-data not loaded / Pro not working properly after moving to live site

I have moved a site to the live server, and now I cannot edit anything: when I select an element, there are no controls to change the content.

There is an error in the console that says “app.c7feecb.js:2 Failed to get late app data”. Also, I get memory errors in the debug.log:

[07-Mar-2021 17:32:47 UTC] PHP Fatal error: Allowed memory size of 104857600 bytes exhausted (tried to allocate 2097152 bytes) in […]/wp-content/themes/pro/cornerstone/includes/classes/common/class-routing.php on line 80

I just found out that the editor works if the user’s language is English, so it works with the credentials I posted. If the language is set to German, however, it doesn’t work

Hello Alexis,

Thanks for writing in!

The error message displayed because you have exhausted your PHP memory limit. By default, WordPress will attempt to increase the memory allocated to PHP to 40MB (code is at the beginning of /wp-includes/default-constants.php) for single-site and 64MB for multisite, so the setting in wp-config.php should reflect something higher than 40MB or 64MB depending on your setup.

To increase your memory limit, please check this out:

Please also check out other server settings that need to be addressed. Go to Tools > Site Health.

Best Regards.

Thanks for your reply. How much memory should I assign? PHP currently has 100MB.

Do you have any idea why the editor only works in English?

Also, I’m getting quite a few headers already sent errors, can you help me address those?

PHP Warning: Cannot modify header information - headers already sent by (output started at […]/wp-content/themes/pro/cornerstone/includes/classes/common/class-locator.php:1) in […]/wp-includes/rest-api.php

Hi Alexis,

I would suggest you increase the memory up to 512MB or 1024MB, I would request you to go through this article on how you can increase the memory limit: https://theme.co/docs/how-to-increase-php-memory-limit
I have checked your site, but didn’t find the mentioned header errors, and also not clear what do you mean by editor only works in English. Can you please elaborate on these two issues to understand?

Thanks

Thanks, I have contacted the client’s administrator to increase the memory limit.

  • editor only works in english: if you change the user’s language to German in Users > Profile, then open Pro and edit any page, select any existing element there are no edit controls
  • not sure when exactly the header errors occur, but if I activate the debug log they appear all the time

I have increased the memory limit myself through wp-config. Now the editor works in German as well! Howver I still see a lot of headers already sent errors. I just activated WP_DEBUG for a minute and opened the site.

Hi Alexis,

It seems the issues may be due to the improper migration of the updated theme files. I would like to request you to delete and reinstall the updated version of the Pro and let us know if that works.

Thanks

Hi Tristup,

I tried deleting and reinstalling the theme just now, but that didn’t fix anything unfortunately.

Alexis

Hi Alexis,

I have visited your website admin pages, but didn’t get any issue as you described it in your posts. I would request you to add the below-given code into your wp-config.php for debug setup, and the error logged into the file name debug.log inside the wp-content folder.
And let us know the errors logged into the debug.log. We can do further investigation based on that.

// Enable WP_DEBUG mode
define( 'WP_DEBUG', true );

// Enable Debug logging to the /wp-content/debug.log file
define( 'WP_DEBUG_LOG', true );

// Disable display of errors and warnings 
define( 'WP_DEBUG_DISPLAY', false );
//SET PHP INI DISPLAY ERROR FALSE
@ini_set( 'display_errors', 0 );

If you are not willing to add this code into your live site, please copy your live site to a staging server and the above code without breaking your live site.
And give us access in the secure note including:

– WordPress Site URL & Login URL
– WordPress Admin username/password

To create a secure note, click the key icon underneath any of your posts.

Thanks

Hi Tristup,

I already did what you described - did you see my secure note? Thats the output from debug.log after activating it for a minute. I have subsequently disabled logging again.

Alexis

Hi Alexis,

We need to check the debug.log files while testing the issues specified by you, and that is why I have requested you to create a staging server which helps us to test without breaking the live server. If that is not possible, please let us know once you activate the debug setup to check debug.log file and where you are seeing these issues. I would also ask you to share the following details which may required to access the file.

– FTP/CPanel credential

Thanks

Hi Tristup,

sorry I misunderstood your post.

Alexis

Hey Alexis,

I have double-checked your PHP memory limit and it is now increased to 512MB. I also did not encounter any errors when editing a page.

Please check your site now.

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