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?
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
Thanks for the reply, I did to 120 MB but the problem still continues
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
When I access the server from the DigitalOcean panel I see this, is that the error log?

