Please Help! Error http500 after code

July 10, 2016 1.2k views
DigitalOcean WordPress Ubuntu 16.04


Please someone help me. I’ve put a code on my wordpress customizer following a tutorial and I can’t access wp-admin in wordpress anymore.

Tutorial I’ve followed:
Please add the given code in your wplms-customizer.php file in your wplms-customizer plugin :


function wplmscoursenavmenu($menuarray){


return $menu_array;

Website access works ok, but can’t acess admin.
I think I need to restore .htaccess, but don’t know how to locate it.

Can someone help??

1 Answer

The easiest way to get back to wp-admin may be to disable your plugins. If you rename wp-plugins to something like wp-plugins-old in your WordPress directory you should be able to access wp-admin again. You can also review your log file /var/log/apache2/error.log for an indication as to exactly where the 500 error occured.

Have another answer? Share your knowledge.