My site broke after uploading pro

I didn’t realize it was going to install. My plan was that I was going to upload pro theme, then copy over to staging, activate it, and then mess with it on my site. Looks like it automatically updated the theme! Now my site looks really wonky - liveworkanywhere.com - the sidebars, the footer, code on site - it’s pretty easy to see. We were using a child theme and also I read something about woocommerce, these may be 2 culprits. I read to update in the css ‘Theme URI: http://theme.co/pro/’ but I’m not sure what else I need to change. Can you help take a look?

Hi there,

I checked your site and X is still active on your site so installing Pro should have not caused the issue.

I noticed that Cornerstone is deactivated on your site that is why the shortcodes are showing up. Try activating Cornerstone again and see if it fixes the issue.

If you have activated Cornerstone and the layout is still broken, that usually happens when there is a broken HTML on the page where a div or any html code you placed in the elements are not properly closed so kindly double check that as well.

Let us know how it goes.

Thanks. Very strange that cornerstone was deactivated. I pushed from staging to live last night so I’ll dig into what’s going on. Activating cornerstone fixed the shortcodes but the layout is still broken. I am investigating.

Feel free to let us know how it goes.

Hi Jade, okay, so here’s what’s happened. I played around with it for 4-5 hours, with wpengine support, and ended up restoring from an old backup, before pro. All worked fine again. I uploaded pro on staging and got the exact same issue immediately

  1. cornerstone immediately deactivated
  2. the headers/footers were completely rearranged

You can see the exact issue replicated here - http://lwanywhere.staging.wpengine.com/

Again online with support with wpengine today they said they ran a debug define and said “there is a dubug line in their code that needs to be silenced.” Here are the errors they are seeing:

Warning: preg_match() expects parameter 2 to be string, array given in /nas/content/staging/lwanywhere/wp-includes/class.wp-styles.php on line 323

Warning: strpos() expects parameter 1 to be string, array given in /nas/content/staging/lwanywhere/wp-includes/class.wp-styles.php on line 323

Can you please look into this?

Hi There,

Probably it could be related to your PHP version running on your server. We recommend PHP v5.6.x or later to avoid incompatibility issues.

Would you mind providing us with login credentials(by clicking on the Secure Note button at the bottom) of your staging version so we can take a closer look? To do this, you can make a post with the following info:

  • Link to your site
  • WordPress Admin username / password
  • FTP credentials

Thanks.

Added to secure note. FYI WP engine is running “PHP Version: 5.6”

Hello There,

I have logged in to your staging site and investigated the issue. I switched to the Pro theme and the PHP warning disappeared. It correctly display the homepage without the error. I can edit the page in Pro editor as well. They only thing that is broken is the layout of the homepage all because you added this custom css:

#top .x-container:after {
  clear: none;
}


and I also found out that you added an orphaned closing </div> tag. I went ahead, commented out the code and removed the unnecessary <div> tag. Your homepage displays perfectly now.

Please check your staging site again.

Thanks for checking all this! I don’t recall adding that custom css and I would not have likely found the div tag easily. I checked and it appears to be working. Thank you so much!

You’re welcome!
We’re glad we were able to help you out.

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