PHP Error in WordPress Theme

Replcace this function start_el(&$output, $item, $depth, $args) { …. with this function start_el( &$output, $item, $depth = 0, $args = array(), $id = 0 ) { …. I hope this will work.

How can I make error messages in admin

All you need is the correct html markup, namely a paragraph p inside a container div with a certain class. Usable classes are updated green, error & notice-error red, notice-warning orange, notice-info blue. Exemplary usage: add_action( ‘admin_notices’, ‘wpse330943_admin_notices’ ); function wpse330943_admin_notices() { <div class=”notice notice-error”> <p> //some text </p> </div> }

Error establishing a database connection after moving local wordpressmultisite from one directory to another

Thanks for sharing the issues. I will share you how can you move the wp website another folder. Please follow my instruction step by step. Step 1: Copy the all source code this folder location “http://localhost/Wordpress/buddha” file. Step 2: When you copy all file then Pleas paste the all source file this folder location “http://localhost/wp-buddha“. … Read more

Warning: call_user_func_array() expects parameter 1 to be a valid callback, function ‘add_custom_scripts’ not found or invalid function name

add_action takes a valid callable function as second parameter. WordPress is unable to find add_custom_scripts function which is being used to add some custom scripts probably, may be its not defined anywhere. You might have to look into fucntions.php file of your active theme/child-theme, find the add_action where second parameter is passed add_custom_scripts. There are … Read more

Site title not showing. Please help me

Use this code in Header.php file. <title><?php wp_title(‘ – ‘, true, ‘right’); ?></title> But as per page view source code.you have forgot to close tag above tag in header. so please close tag. see this screenshot Should code like this: <script> window.dataLayer = window.dataLayer || []; function gtag(){dataLayer.push(arguments);} gtag(‘js’, new Date()); </script> <title><?php wp_title(‘ – … Read more

WordPress Error blank page In section website

To be honest, there is probably not too much we can help with without looking the code and determining why it’s there in the first place. My recommendation would be to find this function get_mental_seo_description() and comment it and see if that helps.