Error establishing database connection error after installing Newspaper theme

Posted in: Newspaper
Post count: 16

Hi,
After installing Newspaper 6 theme I encountered a problem that didn’t happen with my previous themes. There is always a database error. When people visit my site they see a note line “error establishing a database connection” they can’t see the site. I can’t use the wp-admin either because of that.

It’s when I login to my server via Putty and type some Ubuntu codes like “sudo service mysql restart” and restart my mysql database, that the problem is fixed for a brief moment, my site is working again until a new error.

Can you please help me how to fix this? Is this theme too large for the server?

Post count: 9544

Be sure to increase the base memory for your WordPress site in your wp-config.php file, to at least 64MB and preferably 96MB or more. Visual Composer and all the latest plugins like Yoast do use more memory and WP defaults to a paltry 40MB which is nothing these days.

I have mine set to 256MB but have lots of RAM.
https://codex.wordpress.org/Editing_wp-config.php#Increasing_memory_allocated_to_PHP

Post count: 16

Thanks for the reply, I did to 120 MB but the problem still continues

Post count: 9544

Good idea to look at your error log, if not done so already.

Post count: 16

how to look at my error log?

Post count: 9544

See the support info for your hosting account — there should be an error log for your site, which helps to determine WHY something crashed, etc. — useful if you have an “attack” from a specific IP, a plugin or process crashing site, etc.

Post count: 6600

Hi istanbulsfinest,

Please use Chris’s instructions and check your error.log file the cause of this should be rerecorded there and once you have please also send us a copy and send it via email at contact@tagdiv.com along with your admin and ftp credentials so can have a look at this.
Please also provide a link to this tread.

Thanks

Post count: 16

When I access the server from the DigitalOcean panel I see this, is that the error log?

Post count: 16

Ok I found an error log

Post count: 9544

Great, now you need to look at that to see what is crashing php —

or per Lucian, send tagdiv the info at:

make a copy and send it via email at contact@tagdiv.com along with your admin and ftp credentials

Post count: 6600

Hi istanbulsfinest,

I’ve replied you via email!

Thanks

Viewing 11 posts - 1 through 11 (of 11 total)
The forum ‘Newspaper’ is closed to new topics and replies.