Questions tagged [warnings]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
12
votes
4answers
22k views

WP_DEBUG is not set, but I'm still getting warnings

If WP_DEBUG is not set, as I understand it, you should never ever see warnings. But on some sites on some servers, I'm still seeing a few. Not all the warnings that would be displayed if WP_DEBUG was ...
10
votes
1answer
4k views

PHP Warning on fresh install (Connection timed out)

I get this PHP Warning when accessing my fresh WordPress 3.4.1 install (Norwegian language). Warning: fopen(URL_TO_MY_WORDPRESS_PAGE/wp-cron.php?doing_wp_cron=1341476616.7605190277099609375000): ...
6
votes
1answer
17k views

Error Warning: Declaration of description_walker::start_el after PHP upgrade [duplicate]

I upgraded my PHP to 7.0 and after this I have this message in the header of my website: Warning: Declaration of description_walker::start_el($output, $item, $depth, $args) should be compatible with ...
4
votes
1answer
148 views

How to display warning on post editor when trying to add new term to custom taxonomy?

i have a function i use to stop users from adding new terms to custom taxonomies, this is the code: add_action( 'pre_insert_term', 'prevent_terms', 1, 2 ); function prevent_terms ( $term, $taxonomy ) ...
4
votes
1answer
2k views

Wordpress 4.9.5 PHP intermittent warning trim() expects parameter 1 to be string, array given

I am running Wordpress 4.9.5 and occasionally see the following error in my logs. E_WARNING: trim() expects parameter 1 to be string, array given The stack trace looks like this, so it's not coming ...
4
votes
4answers
3k views

“Warning: count()” error on php 7.2

I'm currently working with php 7.2 and when I use get_the_content() or get_the_excerpt() outside of a single template, in the functions.php for example, I get the following Warning: Warning: count():...
3
votes
1answer
6k views

Warning: urlencode() expects parameter 1 to be string, array given

I have posted a question on StackOverflow (sorry for the cross link) and while I'm striving to find a solution to this, I stumbled across this warning : Warning: urlencode() expects parameter 1 to ...
2
votes
4answers
5k views

What is causing this error? “Warning: Invalid argument”

I need urgent help figuring this out please - I've been working on a WordPress theme locally without problems, and now that I've uploaded it to the live server I'm getting this error: Warning: ...
2
votes
1answer
359 views

Stackoverflow type of badge plugin giving warnings in Wordpress 3.5

I modified an abandoned Stackoverflow form of badge plugin to work with Wordpress 3.4.2 and it does indeed. The full script for it is here: http://pastebin.com/Ta91zXiL When upgrading to Wordpress v3....
2
votes
3answers
1k views

Getting Warnings & Notices from Fresh WordPress 3.1.2 install

I just installed WordPress 3.1.2, I got `Notice: automatic_feed_links is deprecated since version 3.0! Use add_theme_support( 'automatic-feed-links' ) instead. in /works/web/elements/wp-includes/...
2
votes
1answer
170 views

PHP contact form returns warning in text widget [closed]

I have created a contact form (with a lot of help from you guys here) and I want to be able to use it on pages and in text widgets via a shortcode (for sidebars etc). It works perfectly on both with ...
2
votes
1answer
1k views

Warning: array_pop() expects parameter 1 to be array, boolean given

Getting the following php error when trying to add a new post: Warning: array_pop() expects parameter 1 to be array, boolean given in /home/mysite/public_html/blog/wp-content/themes/mytheme/...
1
vote
3answers
2k views

Undefined property: WP_Query::$post

I am working on some rather elaborate comparisons between metadata and having a bit of trouble correctly referring to results from my query. The first query to establish $team_is_home works fine but ...
1
vote
1answer
169 views

Ajax stops working when logged in?

I have implemented ajax in the website add_action('wp_ajax_wppl_function', 'wppl_function '); add_action('wp_ajax_nopriv_wppl_function', 'wppl_function'); But this works without any issue if i log ...
1
vote
1answer
8k views

How to fix Warning: call_user_func_array()?

I modified my theme metabox.php to fit my needs, and I got this eror Blockquote Warning: call_user_func_array() expects parameter 1 to be a valid callback, function 'mytheme_add_box' not found or ...
1
vote
1answer
268 views

Why wordpress showe “admin is editing…” whoever edits?

Wordpress warns users when two of them are editing the same article, but the warning always says "admin is editing this page". Admin is currently logged off and the message is caused by another author....
1
vote
2answers
56 views

Removing warnings and notices from production servers

I'm getting errors, warnings and notices being displayed on a site. Those include things like filesystem paths, SQL queries and wpdb prefixes, which I don't think it's particularly good to have them ...
1
vote
1answer
1k views

Get rid of this Strict Standards warning [closed]

I'm trying to get rid of this warning from my wordpress installation. Strict Standards: Only variables should be passed by reference in xxxxx on line 67 The line with the "faulty code" is this one $...
1
vote
2answers
3k views

Warnings On Updating WordPress

On every site where I updated Wordpress to version 3.5, two error messages flashed onto the screen, only to be immediately replaced by the Wordpress About page. The messages don't stay on the screen ...
1
vote
1answer
375 views

Warning: sizeof (): Parameter must be an array or an object that implements Countable, On products pages

I have a WooCommerce WordPress Theme installed. I'm getting an error that public users can see, So I need to fix it ASAP. The error is shown on all products pages, Here is the error: Warning: ...
1
vote
0answers
109 views

Warning(unlink) Warning: session_start() Warning: Cannot modify header information

For website truelove4hope.org. Only the homepage has this issue. And only for Firefox on my computer. Chrome works just fine. Warning: unlink(/home2/wondesk2/public_html/truelove4hope/wp-content/...
1
vote
2answers
314 views

Getting notices on fresh 3.6.1 install

I'm a relative newcomer to WP. I've been playing around for the past 3 months or so trying out themes, plugins etc. About a month ago I got to the point where I turned debug on and I started seeing ...
1
vote
0answers
131 views

Getting php_network_getaddress error : No such host is known?

I am working on wordpress theme on my localhost. I started receiving this error. Its is very annoying and i have no idea to resolve this thing.
0
votes
1answer
145 views

Prepared statements used incorrectly in ACF?

I've just updated to WP 3.9 and it returns a warning when using placeholders incorrectly. I've found some prepared statements written incorrectly, but I really got worried when I saw this in the ACF-...
0
votes
1answer
1k views

insert a warning message into post-new.php

wondered if anyone knew the most elegant way to insert some sort of warning message each time someone tries to create a new post, i.e. 'please remember what you publish is your own responsibility', ...
0
votes
2answers
2k views

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 ...
0
votes
1answer
69 views

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 ...
0
votes
1answer
216 views

How to fix this warning:call_user_func_array() expects exactly 2 parameters, 1 given in D:\wamp\www\…\wp-includes\class-wp-hook.php on line 286

I am creating Wordpress Dashboard Menu: add_action('admin_menu', 'personalised_menu'); function personalised_menu() { add_menu_page( 'Page Title' , 'Blog' , '...
0
votes
2answers
525 views

Warning on my WordPress site [closed]

Domain showing an alert message of " Deceptive site ahead ". How can I resolve this issue, please help. I have attached the screenshot showing error.
0
votes
1answer
36 views

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]-&...
0
votes
1answer
951 views

Weird string offset errors when displaying post attachments

I'm trying to create a gallery page that takes image attachments from a certain category and displays them. It works but I have a problem it seems where I'm trying to exclude certain attachment types ...
0
votes
1answer
316 views

Warning: spl_autoload() [function.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-...
0
votes
1answer
153 views

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' ) ...
0
votes
1answer
1k views

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, ...
0
votes
1answer
69 views

How to properly setup an activation hook

I am trying to register an activation hook for my plugin. The plugin is using classes and the actual activation method is held in a separate admin class. Reading the documentation for ...
0
votes
1answer
70 views

locked out of wordpress site 'warning: require once'

my site "puncturecallout.com" is not appearing and I cannot access the admin login page either. the error reads: Warning: require_once(/home1/mytenni5/public_html/puncturecallout/wp-content/plugins/...
0
votes
1answer
970 views

Website Warning: call_user_func_array() expects parameter 1 to be a valid callback, class 'Wppr_Public' does not have a method 'amp_support'

Warning: call_user_func_array() expects parameter 1 to be a valid callback, class 'Wppr_Public' does not have a method 'amp_support' in /home1/thrfolde/public_html/3foldtraining/wp-includes/class-...
0
votes
1answer
300 views

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

I tried to access my site after a months break and can't even get the admin page to login. site is www.puncturecallout.com seems to mention the paypal plugin as the problem? Will be painfully simply ...
0
votes
1answer
1k views

array_filter warning - wp-includes/post.php line 3148

I inserted the following code, see below, to have a post submitted from the front-end. When you submit it, this warning appears: Warning: array_filter() expects parameter 1 to be an array, string ...
0
votes
1answer
412 views

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 ...
0
votes
1answer
57 views

Wordpress function to add text warning on every pages [closed]

How to add a function to show a text (without JS) in every pages on Wordpress?
0
votes
2answers
539 views

Plugin showing error

I recently made up simple Minecraft site about one starting server, instaled plugin called:Minestatus, and getting these errors. Exact same error for one other plugin. I am running WP 3.19.4 Warning: ...
0
votes
1answer
43 views

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 - ...
0
votes
1answer
626 views

PHP Warning: Missing argument 2

From ajax Im updating a custom user field and visualising proper content using a shortcode. localising jquery function localise_jquery1410() { wp_enqueue_script('jquery'); wp_enqueue_script( '...
0
votes
3answers
1k views

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 ...
0
votes
1answer
2k views

Cannot modify header information - server cache

I have a wordpress website hosted on Lightspeed server. There's an error message displaying in admin login page and I can't access wordpress backend. This is the error Warning: Cannot modify header ...
0
votes
1answer
54 views

Wordpress comments - delimiter “/” not found

I'm using WordPress comments as a "chat". Not real time chat, it's more like comments with more flow. But when 4-5 or more members are using coments at the same time, I get this message: Not sure ...
0
votes
1answer
710 views

wp_logout_url($redirect) won't logout and redirect ()

Even that I got the code from the wp docs <a href="<?php echo wp_logout_url( get_permalink() ); ?>" title="Logout">Logout</a> This is the output when user clicks on it: Warning: ...
0
votes
1answer
4k views

Warning: call_user_func_array() [function.call-user-func-array]

For some reasons I'm having this error appears in my dashboard Warning: call_user_func_array() [function.call-user-func-array]: First argument is expected to be a valid callback, 'admin_init' was ...
0
votes
1answer
748 views

How to fix these PHP Warnings with the “Feed JSON” plug-in?

I'm getting the following PHP warnings when using the WordPress plug-in "Feed JSON". Can someone tell me how to fix them? Warning: Invalid argument supplied for foreach() in /mypath/wp-content/...