Cornerstone loading very slow

Hi Rad,

thanks for your reply!
what should I update? It is a complete new WP installation with current version of X and Cornerstone.
The issue occurs on every page. Every time when I open the cornerstone editor.

To reconstruct the issue please

  1. log in
  2. navigate to pages
  3. click on “edit with cornerstone” at page “test”

Thanks for your help

Regards,
Alex

Hey Alex,

I see that it takes a long time to load. Please contact your host to increase your allocated memory or do it yourself by adding this code in your wp-config.php

define( 'WP_MEMORY_LIMIT', '256M' );
define( 'WP_MAX_MEMORY_LIMIT', '512M' );

I have read that your host said there’s no problem on their end but this is a hosting performance problem. Otherwise, Cornerstone would be slow in our test sites too. If you can, please try out other web hosts. Here’s a guide.

Thanks.

Hi Christian,

thanks for your reply!
My hast hast tested the site on faster servers with a Memory_Limit of 512M
There was no result.

After hitting the button “Edit with Cornerstone” the Database starts a connection. The Status is on “sleep” for about 80s. This means that MySQL-Service is waiting for an answer of the script and the connection ist closed.
Do you know what is happening during this time and which data is the DB waiting for?

Thanks for your help!

Regards,
Alex

Hi @afinkdesign,

I saw one thread like this and the fix that I saw is that he followed this link below.

Let us know how it goes.

Thanks.

Hello Nico,

thank you very much for your reply!
But the troubleshooting does not work for my problem.

  • In WP-Settings both URLs are the same
  • I do not use https --> only http
  • There is no plugin conflict because there are no plugins installed

I have activated the debugging mode and this was the result:
PHP Notice: A non well formed numeric value encountered in …/themes/x/framework/legacy/cranium/headers/output/masthead.php on line 143

I really hope you can help me out!

Thank you very much!

Regards,
Alex

Hello there,

I’ve checked line 143 in /themes/x/framework/legacy/cranium/headers/output/masthead.php and its pointing to the logo image in X > Theme Options > Header. However, it seems your logo image configs are properly placed. I can confirm your Cornerstone is loading slow in Pages, but not from X > Cornerstone.

Can you share us your FTP login details in a Secure Note we can take a closer look?

Thank you.

Hi Jumar,

thanks for your reply!
I have updated the secure note with ftp credentials.

Thanks for your help!
Regards,
Alex

Hi there,

The FTP credentials are still incorrect. But I checked again and the loading speed varies, it could be affected by traffic. Or yes, with database issue related to MySQL’s sleeping processes. Have you tried getting more information about this sleep issue? It could be related to this https://stackoverflow.com/questions/47332640/wordpress-mysql-sleep-connection and https://stackoverflow.com/questions/48153782/wordpress-sends-lots-of-sleep-sql-query-to-mysql

I have same theme and builder on my local and live site but I’m not getting this issue. I also recommend testing it on another host.

Thanks!

Hi Rad,

thanks for your reply. FTP credentials are working for me …
Honestly I do not know how to figure out more about the sleep issue.
I would really appreciate if you could take a look. (please see DB credentials in secure note)
Thank you very much for your help!

Cheers,
Alex

Hi there,

Unfortunately, It’s not something I am not fully familiar with. I may harm it more than fix it. But sleeping could occur anytime when a script is taking time to end or process. Hence the cause is varying depending on which is executing, the database load, and server traffic. All in all, it’s about performance. Are you on shared hosting? It can happen on shared hosting.

Or sleep issue is not the cause but the result of the builder’s loading too slow, and it’s too slow due to performance issue. I recommend loading it on a separate host just for testing and comparison. This isn’t happening on my site.

Thanks!

Hi Rad,

thanks for your reply!
The Hosting-support thinks that the sleep-status is caused because Cornerstone has problems with the settings of Apache-Server (NGINX).

Could this be possible?

Thanks for your help!

Regards,
Alex

Hello there,

Thanks for updating in!

I’m not also sure but let us try to double-check your NGINX configs. Please the solution on this thread:

Let us know it goes. Thank you.

Hi Jumar,

thanks for your reply!
What do I have to do with this code?

Thank you very much for your help!

Reards,
Alex

Hello @afinkdesign,

Thanks for updating thread.

First take a backup of the config file. After that try replace that comprehend PHP with the code shared in the thread.

Thanks.

Hi Prasant,

which config file? WordPress-Config file? NGINX config file?
I do only have access to Wordpress config file.

and which code do I have to replace?

Thank you!

Regards,
Alex

Hi there,

You’ll have to do it in NGINX config files but as you said, it’s something you can’t access then I recommend forwarding this issue to your hosting provider. And I do see previous tickets related to NGINX, it’s not the same and easy as Apache config file.

Thanks!

Hey Rad,

thanks for your reply.
I have asked hosting support if they can do anything.
I will let you know!

Regards,
Alex

Hey Rad,

here is the answer of the host-support:
_Unfortunately, the forum entry you sent to us has no relevance to our setup, as php’s entry is assumed to be a FastCGI module. However, we use mod_php for PHP execution

So the thread Jumar has posted before does not work.
How can we solve this problem?

Regards,
Alex

Hello there,

Thanks for letting us know your server setup.

Unfortunately, going further with the investigation is outside of our scope as this is already server related than a theme one. I suggest you contact your hosting provider to optimize Apache web server’s performance. Just FYI, that the mod_php only is an Apache module that allows Apache to interpret PHP files of our theme. To shorten this up, Apache just retrieves these files so it can be loaded into your browser.

Let us know how it goes with the hosting provider. Thank you for your understanding.

Hi Jumar,

thans for your reply.
the hoster told me now that they are using apache and NGINX.
Could this combination cause this problem?
Why takes it so long loading the script?
I’m desperate with the issue …

cheers,
Alex