PHP Fatal error: Call to undefined function WP_Filesystem() [closed]

Closed. This question needs details or clarity. It is not currently accepting answers. Want to improve this question? Add details and clarify the problem by editing this post. Closed 5 years ago. Improve this question “internal server error” wp-content/themes/xxxxxx/inc/custom-functions.php on line 529 1 Answer 1 The error is in custom-functions.php line 529 where you might … Read more

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? 1 Answer 1 … Read more

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 … Read more

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’); … Read more

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 … Read more