EgamesVN's picture

I using Turnkey Wordpres on VMware!

When to open page plugins or themes! The current error!

"An unexpected error occurred. Something may be wrong with or this server’s configuration. If you continue to have problems, please try the support forums. "




Jeremy Davis's picture

Have you done anything else with the appliance yet (e.g. installed additional plugins, a new theme, etc)? If so, perhaps one of them has caused the issue?

Another thought, have you uploaded any file via SFTP etc? Perhaps the permissions have got messed up? If so, try loggin in via SSH and run the following:

chown -R www-data:www-data /var/www/wordpress

Another thought is to enable debugging mode and see what errors are occurring. That might lead to the cause of the issue?!

Out of interest, I did a quick bit of googling and another suggestion is to install the Health Check plugin to assist in troubleshooting. There are also a ton of different suggestions on this page, many suggesting that it's perhaps an DNS or networking issue. TBH, I wouldn't recommend just following any of those suggestions blindly. Instead I would recommend that you carefully try to diagnose the issue first. E.g. to check DNS lookup from your server:


Please post back if you find a solution. If it appears to be an issue with the appliance itself (rather than a local network issue) it be really great if I know so that I can look to implement a fix so others don't also hit this issue. Thanks.

OnePressTech's picture

This is a common WordPress issue...Google search for solutions.

One common solution is to set permissions for the wp-content folder to 755


Tim (Managing Director - OnePressTech)

Cyberben's picture

Ok I guess it was my turn,

Im on a TKLXC box (hardware) on my network Suddenly upgrades plug-ins and templates return the error:

"An unexpected error occurred. Something may be wrong with or this server’s configuration. If you continue to have problems, please try the support forums."

Ive gone through dissabling and deleting plugins and themes which were few.

I am trying NOT to have to start over again for the elvendieth time.

I checked a live site on a well known paid service and it works fine.

This must have something to do with my router, network, whatever....




Jeremy Davis's picture

Sometimes, you might get a little more info from the logs. You should find the Apache logs in /var/log/apache2/ although I'm not sure how much info you'll find there?

If you think that it might be related to permissions, you can give the webserver user, full access/control of the WordPress directory like this:

chown -R www-data:www-data /var/www/wordpress
find /var/www/wordpress -type d -exec chmod 755 {} \;
find /var/www/wordpress -type f -exec chmod 644 {} \;

Once you've worked out and resolved the issue, you may wish to lockdown the wp-config.php file (by changing it's ownership to root). There are some other ideas on the hardening wordpress security doc page that might also be useful, but I'd recommend you leave that until you've fixed the issue.

If you want to dive in deeper for debugging, then you can enable the WordPress debug log. See the WordPress docs for how to enable that. It will likely contain info that is irrelevant, but hopefully it might also include info that is helpful in hunting down the exact cause?!

Good luck.

Add new comment