Articles of fatal error

500 Error only one one page in the WP admin

Looking for possible solutions, because I’m pretty much lost as to why it happens. In WP Admin, all my pages, when I want to modify them, are OK. But one throws a 500 error. What could be the problem? The same code is loaded in all pages, AFAIK. So how can one 500, when the […]

Twenty Eleven Child theme error when attempting to use a rewritten function

I attempted to make a minor change to a function in the Twenty Eleven theme (wordpress 3.4.2) I get this error message: Fatal error: Cannot redeclare twentyeleven_widgets_init() (previously declared in /home/labfocus/public_html/wp-content/themes/twentyeleven-child/functions.php:10) in /home/labfocus/public_html/wp-content/themes/twentyeleven/functions.php on line 438 Here is the function that I am attempting to add in place of the original <?php if ( !function_exists(‘twentyeleven_widgets_init’)) […]

Admin Blank Page with Working Front-End After Updating to WordPress 4.6

Trying to open my website admin mywebsite.com/wp-admin it giving me internal server error 500 The website working fine from the front end. How can I access my admin and how to solve this issue?

WordPress database error with latest WP – “WP_termmeta doesn't exist”

I’ve just upgraded to 4.7.2, and now I see this message: WordPress database error: [Table ‘myusername.wp_termmeta’ doesn’t exist] SELECT term_id, meta_key, meta_value FROM wp_termmeta WHERE term_id IN (2,3,4,5,6,7,8,9,10,11,12,13,1,14,15) ORDER BY meta_id ASC What’s the correct solution to this issue? I upgraded the database while upgrading. Lots of googling suggests strange things like upgrading to some […]

current_user_can on WordPress 3.1.1

I just upgraded to WordPress 3.1.1 and suddenly I’m getting the following error: Fatal error: Call to undefined function wp_get_current_user() in /home/arisehub/arisehub.org/wp-includes/capabilities.php on line 1028 I’ve narrowed it down to my usage of “current_user_can” Example: if ( !current_user_can(‘manage_options’) ) { add_action(‘admin_init’,’customize_page_meta_boxes’); } Removing that reference to current_user_can removes the errors. Any ideas?

Using plugin functionality in external php script not working

I am encountering a strange problem which I couldn’t solve so far. I’m calling a .php script via cronjob (Debian/GNU Linux). To use wordpress functionailty I added: define(‘WP_USE_THEMES’, false); require( ‘/full/path/to/wp-blog-header.php’ ); Now database queries and default wordpress functionality all works fine, but I also call some functions provided by a plugin (namely advanced custom […]

Multiple files in a plugin

I’m trying to write a plugin with multiple files. I’m sure I did it before without a problem, but now I have the problem in the subject. In the main plugin file I have included a file name – ydp-includes.php. Inside of ydp-includes.php I have included all the files I wanted like this: <?php include(dirname( […]

Fatal error: Call to undefined method WP_Error::get_item_quantity()

I’ve implemented a way to show the Twitter feed without a plugin. It’s worked for weeks(months even, on a different site), but is now giving me trouble. Here is the error: Fatal error: Call to undefined method WP_Error::get_item_quantity() in … home.php on line 27 Line 27: $maxitems = $rss->get_item_quantity(3); <?php include_once(ABSPATH . WPINC . ‘/feed.php’); […]

Call to undefined function get_current_screen() on my localhost

I’m using WordPress 3.9.1 and I get the Fatal error: Call to undefined function get_current_screen() if I put the following in my funcitons.php or in any file of my theme: $screen = get_current_screen(); echo $screen; Initially when I got the error, I was working on a theme that I’m creating. However, I tried this with […]

How to fix broken upgrade to 3.1

As soon as i saw the message on WPSE about the 3.1 release i immediately went a did a switch on my local installation(SVN switch). Only issue is the wp-settings.php is trying to include a non-existant file. Basically i’m stuck seeing the following two error messages. Warning: require(MYPATH/wp-includes/classes.php) [function.require]: failed to open stream: No such […]