Error establishing a database connection

I installed and activated Superfly and when i went to create a menu in my wordpress i am now getting Error establishing a database connection so I cant log into wordpress now and i get the same when i try to view my site. :frowning:

its working again suddenly any ideas why this would happen. should i not use Superfly?

Hello @shellypogue,

Thanks for writing in! :slight_smile:

Looks like a compatibility issue between Cornerstone and X. Please update your setup to the latest version: https://theme.co/changelog/

For more info on how to update your setup:

Then try increasing your memory limit. To increase it, please edit your wp-config.php file and insert these lines:

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

Finally, activate Superfly and create the menu again.

Let us know how it goes.

Hello thank you for your reply. I already have cornerstone version 3.0.2 is that the latest?

Hi There,

Yes, you’re using the latest version of Cornerstone. With regard to your original issue, it could happen due to hosting related issues as well. You can read more information from here (http://www.wpbeginner.com/wp-tutorials/how-to-fix-the-error-establishing-a-database-connection-in-wordpress/).

Thanks!

1 Like

I bet it is related to a hosting issue it wouldnt be the first time. If it happens again I will call them. Thank you :slight_smile:

You’re welcome. Sounds good!

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