Articles of warnings

Custom meta box in custom post type not working

As a wordpress newbie I am having problems in adding custom meta box in my “slider” custom post type which I used in some old wp theme. I’m getting a warning: Warning: call_user_func() expects parameter 1 to be a valid callback, function ‘new_meta_box’ not found or invalid function name in… Here is my code: ///////////////////////////////////// […]

Wp Debug Enabled True Notices and Warning

Notice: Undefined index: Zumpito_event_full_day in /home2/michael/public_html/domainname.com/wp-content/themes/themename/included/main.php on line 246 Warning: Cannot modify header information – headers already sent by (output started at /home2/michael/public_html/domain.com/wp-content/themes/themename/included/main.php:246) in/home2/michael/public_html/domainname.com/wp-admin/post.php on line 197 Warning: Cannot modify header information – headers already sent by (output started at /home2/michael/public_html/domainname.com/wp-content/themes/themename/included/main.php:246) in/home2/michael/public_html/domainname.com/wp-includes/pluggable.php on line 1228 The Code on Line#246 is this – $arr[‘Zumpito_event_full_day’] = ( […]

How to resolve Warning: Missing argument 2 for ufwp_widget_text ()

I am using the edume theme of online courses and when making a purchase of a course from my website give the following error. How could it solve? Warning: Missing argument 2 for ufwp_widget_text() in /home/basic340/public_html/wp-content/plugins/wp-udemy/includes/widgets.php on line 63 Warning: Missing argument 3 for ufwp_widget_text() in /home/basic340/public_html/wp-content/plugins/wp-udemy/includes/widgets.php on line 63

How to fix this PHP warning in WP-Admin after upgrading to 3.1.2?

I just upgraded from 3.0 to 3.1.2 and in the comments column under Posts in the WP Admin, this error keeps appearing for every row: Warning: number_format() expects parameter 1 to be double, string given in /path/mysite/wp-includes/functions.php on line 155 Can someone tell me how to fix this?

Error while setting role

I already got code which can change role basis on post count. <?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 current user information $count = count_user_posts( $author->ID ); $current_role = (array) get_user_meta( […]

Warning: spl_autoload() (Term Menu Order)

I’m developing a site and found this error on top of every page of the site: Warning: spl_autoload() [function.spl-autoload]: Unable to access k35r0vc.class.php in /home/stopecom/public_html/wp-content/plugins/term-menu-order/term-menu-order.php on line 42 Warning: spl_autoload() [function.spl-autoload]: Unable to access k35r0vc.class.php in /home/stopecom/public_html/wp-content/plugins/term-menu-order/term-menu-order.php on line 42 Warning: spl_autoload() [function.spl-autoload]: Unable to access k35r0vc.class.php in /home/stopecom/public_html/wp-content/plugins/term-menu-order/term-menu-order.php on line 42 Warning: spl_autoload() [function.spl-autoload]: […]

WordPress function to add text warning on every pages

How to add a function to show a text (without JS) in every pages on WordPress?

Fix Warnings that shouldn't be necessary to fix

I was trying to fix some warnings and I noticed that I get constantly PHP Notice: Undefined variable: If I use : $categories = get_the_category(get_query_var(‘cat’)); $cat_name = $categories[0]->slug; or/with $categories = get_category(get_query_var(‘cat’)); $category_id = $categories->term_id; $category_slug = $categories->slug; $title_page = $categories->name; I use it in loops or conditionals like: $args1 = array( ‘no_found_rows’ => true, […]

Help With Warning on creating new Post types?

Im Getting a couple of warnings when creating custom post types, someone referred me to using a plug in but since i’m new to this i want to know what is going on so i want to do it manually. This are the warnings i get. Warning: Missing argument 2 for _x(), called in C:\xampp\htdocs\wordpress\wp-content\themes\posttypes.php […]

Need help decrypting error and warning messages

I’m a relatively new WordPress user, usually I just code my sites by hand though I’m trying to move to a CMS. I installed WordPress onto a subforlder (http://www.iss.guild.uwa.edu.au/wordpress/) to test. Every now and again I would get warning messages like below, though starting today I started getting fatal errors. According to my server admin […]