Setting display_errors to 1 has let me determine that for some reason wp-includes/pluggable.php was not included while running the plugin, so wp_get_current_user() function was missing. Although I didn’t find the reason of malfunction, thanks to answer to this question I hardcoded plugin by setting following at the beginning:
if(!function_exists('wp_get_current_user')) {
include(ABSPATH . "wp-includes/pluggable.php");
}
Now everything works fine.
Related Posts:
- Undefined offset: 0 in > […] /wp-includes/capabilities.php on line 1067
- Where all are child themes recorded when they are created in WordPress
- 500 Internal Errors
- Fatal error: Call to undefined function get_header() and BuddyPress [closed]
- Fatal error Class-wp-hook, again, but not sure what’s triggering it
- How to change background color in the Notepad++ text editor?
- What are all the available parameters for query_posts?
- Does WordPress work without a theme?
- Link to specific Customizer section
- Is it OK to remove theme credits from footer? [duplicate]
- When cropping a header image, retain meta data (i.e. name, description, etc.) from original image?
- Difference between stylesheet_directory and template_directory
- Adding a Template to the Page Attributes Panel for both Posts and Pages?
- How do you change the theme location?
- Why are my widgets not saving when being added to a sidebar?
- Building useful features into your theme
- How to remove “Proudly powered by WordPress” in Twenty Sixteen (2016) theme?
- How do I put my comment form above the comments?
- How can I check for malware in a Theme? [closed]
- Edit theme wp_head
- Theme Advanced Styles in Visual Editor and Paragraphs
- Want to have the Post editor remembering the last editing position
- Enqueue different stylesheets using IE conditionals
- Override parent theme translation on child theme
- Forbidden 403 error, permission to access, unable to read htaccess
- Theme of codinghorror.com
- How to add template to theme in WP
- How do I copy my Parent Templates to my Child Templates?
- How can I show more than 15 themes at a time in the admin menu?
- What is the WordPress Pinecone sitting on top of? [closed]
- Download WordPress.com theme: how?
- Create a dashboard-style site (not WordPress dashboard) – is there a theme? [closed]
- Help with WordPress Query
- How do I set the featured image size on the single post?
- Are theme .php files stored in the database?
- Execute filter in theme as last
- Why style.css with ?ver=3.9.2 not updating as the one without ?ver=3.9.2?
- An unexpected error occurred. Something may be wrong with WordPress.org
- Inconsistent translation on a WP site
- How can I have different theme with same booking table? [closed]
- Updating my free theme delete all my changes [closed]
- Web site Header tag links some resources with HTTPS
- Do not show one specific widget on one specific page
- Website redesign – New theme – Help needed
- ‘Add New’ button not present [closed]
- How can we hide the parent’s theme url at the child themes details on a multisite?
- Change the name of the root name of an already built WordPress theme
- Tips for managing code when developing a parent theme framework
- Cannot apply custom css to IE in the theme
- How can I show full text, not summary for the homepage and in categories?
- Wp theme not working well as forgot to create child theme [closed]
- Theming global variables – initializing in index.php but using in header.pho
- Understanding the theme details in style.css
- Need a theme that let the posted content stretched maximum width [closed]
- Copying post thumbnail to custom field
- How to override theme class function to child theme? [closed]
- How to make content area in full width in Twenty Twenty-One theme?
- Trying to fix a website that was built with WordPress and then taken off of it
- How to integrate JSS to WordPress
- Can I easily switch themes on a fully built website? [closed]
- How to remove a large ugly space from my wordpress site?
- Moving the search bar to be in menu bar
- WordPress theme layout problem
- Using filter in the widget causes fatal error
- Will I lose the pages I’ve created within a default WordPress theme when adding a new theme?
- Theme title in admin shows full path [closed]
- Is there a way to see how a theme will look before buying it?
- Menu items do not “open” when mouse hover over them?
- Twenty Ten Theme: Replace the Logo by a picture without moving the code
- In a specific blog, the K2 theme does not have a Text Widget
- How to push a theme update for a ciustom theme used on multiple independant self hosted sites?
- Removing a widget via theme editor
- theme customizations gone after enabling ssl
- Can’t embed certain youtube videos into theme
- Fatal error: Class ‘RDTheme’ not found
- How to customize a section of a widget only on certain pages or page
- How do I get the featured image to sit below the header in the twenty nineteen theme?
- Simple filter to change label name of Email Adress to something else
- Basic wordpress search shows no results
- How do I remove search bar that isn’t a widget?
- Show only the beginning of post
- Changing theme folder name disrupts widgets
- WordPress Customazation API section in section
- Edit a template while still keeping a Landing Page on the main address
- How can I Update my Theme
- Use random theme
- Costum Theme template directoy url problem
- Replacing current theme folder by previous version of the same folder produces “undefined function get_header()” error
- Theme comment callback results nothing
- Does not work bookmarklet in the theme Tagology
- How do I block a subdirectory from WordPress theming?
- Resetting Themes Folder to Default
- What is the general cut-off date for reviewed themes in the WordPress.org repository?
- Sub-Theme (based on Taxonomies)
- How to Hide Blog Post Author?
- Commenting in CSS (//) equals “none”? [closed]
- Adding a wp_head hook from an included PHP file
- Deleting Widgets in sidebar in Panthea theme
- Table of Contents in Left Navbar [closed]
- How do I get rid of the Mindblown and the book recommendations?