Page layout breaking

Hi there,

mmm… Interesting finding. We need to check that for details. One thing which will help us a lot is that you gave us the template file of the temporary page you have created on the local machine. You can do it by accessing the page and click on templates:

Then click on save and then click on download. Then upload that file to a file sharing service and give us the link so we can have the same case at hand without having to create all those stuff ourselves.

We can test that in our installation. This is usually heavily dependant on the server setup. So, for example, you can increase the PHP memory limit to 512MB and make the PHP Execution time limit 300s.

Thank you.

Ok just to be sure I wasn’t crazy I made a page from scratch on my local machine and followed the same steps I’ve explained. When I got to 17 sections (306 elements) everything was good and I took screen shots and saved the template at that point. That is the template I’m linking to in this post.

I then made the 18th section and it broke. Here are the screen shots of that.

And from Cornerstone

So hopefully you load this template, duplicate section 17, giving you 18 sections and lots of elements, and it breaks for you too :slight_smile:
My local machine php memory is set to -1

Here is a the file.

Hi there,

I tried your template and it works okay on my installation, there is no breaking. I even add more sections. Plus, I checked again your site and it’s a bit too slow as of now. Are you on shared hosting? Could you try upgrading your PHP to 5.6 or greater? Some features of the bundled plugins or the builder may not work in older version of PHP. Plus, please set your site’s post max to at least 60mb? With low post max, the ajax data may suffer if the content gets too long, plus, given that any inline image could be added to it directly.

Thanks!

On my local machine I’m running PHP 5.6 and I changed the post_max to 64M and it did not have any impact at all. I still create a page as described and load the template file I sent you, then duplicate section 17 and bam, it breaks.

What are some other settings I can try to change? Once we figure this out on my local machine I can make changes to the server. We lease the live server so everything on it are clients of ours and we are looking to upgrade it. But seeing that I experience the exact same issue on my local machine I’m not convinced that it’s a server performance issue, but that it could be a server setting issue if it’s not something with Cornerstone.

Are you able to send m your php.ini file from your local machine that I can load here locally?

In your previous reply you said
“I tried your template and it works okay on my installation, there is no breaking. I even add more sections.”

The template I sent you has 17 sections and works fine. When you duplicate section 17, so you now have 18 with even more elements it breaks. Is that was you are doing or did you just run the template and just add a new, blank section? You are duplicating the section aren’t you?

Just want to be sure because I’ve tried this on a third server and am experiencing the same problems…

Hi there,

I am another support guy and I also did try your template and be able to go to section 23 by Duplicating the section 17 with no problem. I also experienced a little bit of slowness so that is really an issue here.

I installed the WP SeverInfo plugin on your live website and I see that you increased the Memory Limit 512MB. It seems that even 512MB is not enough for that much of the sections or maybe I am wrong but now we see 2 cases of the local environments that we could go beyond section 18.

I used MAMP on my local installation and here is my server info that might be of your interest to compare with yours:

Needless to say the PHP version which I use is 7.1.1. Thank you.

Ok, now I’m able to see a configuration that works.

I changed my PHP version on Ampps to 7.1 and it made no effect.

I installed MAMP and using the default configuration everything works.

Do your developers know what setting could be causing this? Is it PHP related or Apache related and if so, which settings?

It is working on MAMP with the following PHP settings, all of which are the same or higher on AMPPS which does not work:
PHP version 7.1.8 on MAMP and AMPPS
max_execution_time 30
max_file_uploads 20
max_input_nesting_level 64
max_input_time 60
max_input_vars 1000
memory_limit 256M
post_max_size 32M

is there an apache setting I should be looking for?

Hi there,

I’m back again, I did duplicate them as per instruction.

Could you provide the configuration where it’s not working? You could compare that to the new configuration that you’re using. And as I recommend from my previous reply, please increase your site’s post max. Your new configuration has 32mb, while your current site has 8mb which is just enough for single image size.

I have both PHP 5.6 and 7.0 and it runs okay.

Thanks!

to add more information…
I made another template that is 28 sections from MAMP, all works fine. I took that template and loaded it into my AMPPS install and it is broke at the same spot still, section 18

I then checked the database for the cornerstone data in the _postmeta table cornerstone_data field and they are identical. The post_content data on both are identical as well. So it’s not an issue with Cornerstone saving the data to the database.

Ok I just did that on the live server and it made not difference. I made a new page and it still breaks when I add the 18th section. All the data is saved to the database correctly though as it is on my local installs.

Hi there,

Then maybe your AMPPS has the same configuration as your live site.

I checked again and looks like the recommendation that I like you to try isn’t being implemented on your live site yet. Your live site PHP version is still too old, and post max value is still too low.

You said it works on MAMP and you shows us the configuration, please try that configuration on your live site too. You will have to contact your hosting provider in order to do that.

Thanks!

The live site post_max_size was set to 64M

I have PHP 5.6.30 installed on this domain now and can verify both.

The page still breaks.

As I mentioned earlier, the content within the database is identical on the broken page and on MAMP where it works correctly. So it does not seem to be an issue with saving the data.

Hi there,

That is correct. So we established that this is indeed related to server settings and not the core code of the Cornerstone. I suggest that you go to File > Edit Template > PHP > 5.6.30 and copy all information and send it to your hosting service provider and ask them to give you the options exactly like the one you sent them.

If they refuse to do so you strongly need to consider changing your hosting service provider. As mentioned before we already have a service that you can consider.

Unfortunately, we can not be of a more help regarding and this needs to be fixed by your hosting service.

Thank you for your understanding.

What program am I going to File > Edit Template > PHP > 5.6.30 ?
I don’t have any options like that in MAMP which is the only place I am able to get this to run correctly.

I had all PHP settings changed on the live server to the MAMP version that runs correctly, and it still breaks.

Would you be willing to give me a coupon for 1 month of hosting on your hosting platform to try it out?

Hi there,

We couldn’t really verify the issue and test your MAMP and AMPPS setup, but It’s all working fine in my MAMP, AMPPS, and XAMPP.

Maybe what we need to do now is focus on your live site and find the issue. Are you on shared hosting? There should be no limit on how many sections and content you should add unless the host itself can’t handle or doesn’t much have that power to process the bigger content. I randomly see preview error too (from your live site) in which due to slow loading of the previews. Is there a way we could test this on another host?

I tried your content on my live site and it doesn’t have this issue too.

Thanks!

I know I find the whole thing really bizarre.
AMPPS on my laptop and desktop respond the same way as the live site and I asked a friend who has X installed on his site and hosted elsewhere to try it and he go the same results as well.

However, MAMP on my local machine works and you and others have not had a problem on your installs.

Hi there,

Unfortunately, we are unable to establish the exact cause of the issue on your server. The options I mentioned to get the information from MAMP seems to be different from your version as I am using the MAMP Pro. Actually, the fact that it is MAMP or AMMPS is not important, the important point is to find which options are low that makes this limitation on your server. I installed the WP-ServerInfo plugin on my local installation and here is the result that might help you in communication with the hosting service provider:

Please consider that we do not accuse your hosting service provider of any low quality, your case here is indeed an edge case with lots of elements and as your use case is that you need to have proper resources on your server for sure.

I am afraid that is all we can offer to help for this matter. Thank you for your understanding.

Wow this is really bizzare lol! @CenturyMarketing this reminds me of an issue once with MAC and PC (windows) that cost me a few strands of hair…

Really really look at your code, and not so much the “code” but the actual “text”! The issue I had once was how the editor rendered this character -> ’
the apostrophe. I copy/paste code snippets ALOT, I sometimes go from Dreamweaver on a PC, to a MAC, and back to PC. I personally have an action in Dreamweaver to always replace apostrophe with apostrophe. Yes, I said replace apostrophe with apostrophe. I cant explain why, but for some odd reason I have had broken code because of an apostrophe, and for some reason MAC and PC apostrophes can do some different buggy things in WP editors!!

Now, I said apostrophe, and kinda explained it… but there is also another character that also going from MAC to PC and WP editor renders funny… which is the -> " quotes character!

Lastly be 1000% sure you dont have two apostrophes which would visually look like quotation mark!
two apostrophes -> ‘’ can look visually like quotation marks -> "

In addition, a question… is your WP install on a microsoft server?

The content of the elements hasn’t made a difference. I’ve done it with legit content from my client and I’ve done it with the demo content from Cornerstone.

The live server is a Linux server and MAMP and AMPPS both on my Mac.

I also think that the content is not the problem at all. I managed to have more sections with the same content @CenturyMarketing had on my local installation.

Thank you.