URGENT custom-post-type-helper.php causing Internal Server Error
Hello,
I went to log in to my
wp-admin this morning to find I'm getting a 500 server error. The front end of the website is fine but
wp-admin won't load.
I set "define('WP_DEBUG',true);" to find out what's causing the problem and found these 2 errors.
Notice: Use of undefined constant is_admin - assumed 'is_admin' in /home/aupa/public_html/wp-content/plugins/5sec-google-maps/5sec-gmaps.php on line 22
The corresponding line in the 5sec google maps plugin is "if(is_admin) {"
PHP Code:
public function init() {
if(is_admin) {
add_filter('plugin_row_meta', array(__CLASS__, 'plugin_meta_links'), 10, 2);
}
Fatal error: Allowed memory size of 41943040 bytes exhausted (tried to allocate 313684 bytes) in /home/aupa/public_html/wp-content/themes/vantage/includes/custom-post-type-helper.php on line 128
The corresponding line in custom post type helper is
PHP Code:
require_once ABSPATH . '/wp-admin/includes/template.php';
Both of these files have not been edited. They are both the latest versions and were both working fine last night. I've tried using the latest dev and also 1.2 but having the same problem with both.
Really hoping somebody has some help as a matter of urgency.
Many thanks,
Daniel