Can’t access my site due to fatal error [closed]

The “White Screen of Death” (which I assume is your issue, since you provided minimal details) can usually be diagnosed starting with the error.log file for you site. This is available via your hosting Control Panel, File Manager, or via FTP access. The latest error will usually show a folder/file that is causing the problem. … Read more

Warnings even when the WP_DEBUG set to false

Thanks all of you for your response the issue got resolved. The problem was with cached copy of this link https://vreqenz-stream.de/shop/ . I had WP Rocket for caching and apparently it is not doing very good job of purging the cache. I got sure that it is cache issue when I defined the WP_CACHE as … Read more

class ‘wphpc_PAnD’ not found

It is usually caused by a filter or an action not properly declared. Somewhere in your theme or plugins is a line like: add_filter( ‘hook_name’ , array( ‘wphpc_PAnD’, ‘someMethod’ ) ); // or add_action( ‘hook_name’ , array( ‘wphpc_PAnD’, ‘methodName’ ) ); which register class method with hook for a action or filter, but this class … Read more

Error while setting role

You have to use just $current_role variable instead of $current_role[0], because call get_user_meta( $author->ID, ‘wp_capabilities’ ); will return you array with roles as keys. <?php add_action( ‘save_post’, ‘update_roles’ ); function update_roles( $post_id ) { if ( defined( ‘DOING_AUTOSAVE’ ) && DOING_AUTOSAVE ) return $post_id; // Get the author $author = wp_get_current_user(); // Set variables for … Read more