Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [warnings]

The tag has no usage guidance.

1
vote
1answer
53 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: ...
0
votes
1answer
34 views

What's the warning on line 736?

on my wp5.03 (though warnings were thrown Jan 7 and 19 so 5.02 or ) from public_html/error_log PHP Warning: trim() expects parameter 1 to be string, array given in ... /wp-includes/class-wp-query....
0
votes
1answer
24 views

PHP Warning adding menu

(sorry for my english...) I have an issue...: I can't add / translate menus in my admin. I have this error in debug.log : PHP Warning: strip_tags() expects parameter 1 to be string, array given ...
0
votes
0answers
13 views

Warning :missing argument 2 for wpdb::prepare() and warning:cannot modify header information [duplicate]

Warning: Missing argument 2 for wpdb::prepare(), called in /home1/i9e6m0a8/public_html/contestbuzz.net/wp-content/plugins/contest-beast/contest-beast.php on line 2493 and defined in /home1/...
1
vote
0answers
57 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/...
0
votes
1answer
29 views

Debug in WP backend

The problem - I get these warnings each time I login to /admin page in WP. Depending on which browser I use, there are problems with these: Warning: call_user_func_array() expects parameter 1 to ...
0
votes
1answer
35 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 ...
1
vote
1answer
132 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 ...
0
votes
0answers
288 views

Loading failed for the <script> with source “https://website.com/wp-includes/js/admin-bar.min.js?ver=4.9.8”

I am having an error here and there, I am trying to pin point exactly when it happens but so for I didn't succeed... I am getting this error: Loading failed for the with source “https://website....
0
votes
1answer
162 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
1answer
39 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
0answers
13 views

WordPress warnings will create any issue in the file

In WordPress editor showing the yellow color warning. How to resolve this and it will create an issue in the file if it is present? Can anyone explain to me what exactly the meaning of this?
0
votes
1answer
697 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-...
-1
votes
1answer
40 views

Warning: Cannot modify header information

While installing a plugin I had the following error: "The plugin does not have a valid header." But somehow, it worked. So after that, I created a page on which I added the short code suggested by ...
2
votes
0answers
1k 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 ...
0
votes
1answer
248 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
18 views

Unknown file php5fcgi.core

Does anyone know what a php5fcgi.core file is? I've installed WordFence on a site that I've recently become an admin for and am getting warnings for two instances of this file: Unknown file in ...
3
votes
3answers
2k 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():...
0
votes
1answer
746 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
2answers
509 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
34 views

Default and warning messages & no login

a few days ago I found these default messages on my website. Problem: I even can´t login to dashboard anymore. Some advice? This is what happened: Warning: Declaration of Pgm_Walker::start_el(&$...
0
votes
1answer
55 views

How can I get $wpdb to show MySQL warnings?

In some cases, when given a bad query, will attempt to run the query, and give a warning (instead of an error). In the MySQL prompt, to see these warnings, you can run SHOW WARNINGS;. For instance: ...
0
votes
1answer
34 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
0answers
303 views

Theme check warning about text domain

While running theme check plugin in my theme, it shows a warning [More than one text-domain is being used in this theme.The domains found are industrypro-thecreo,]but I am using only one text domain ...
0
votes
0answers
225 views

Error: Warning: strpos() in media.php

Received a new error after updating php to version 7.1 Here's what he writes: Warning: strpos(): Empty needle in .../wp-includes/media.php on line 1147 Here's what's on this line: if ( ! $...
0
votes
1answer
422 views

CPT issue: Warning: call_user_func_array() expects parameter 1 to be a valid callback

I'm getting an error on the admin screen for the custom post type. I've searched lots of other answers but see nothing in my code that could be causing it. Here's my code. Any help would be greatly ...
0
votes
1answer
1k views

Warning: : DOMDocument::loadHTML(): Empty string supplied as input in functions.php when adding classes to post images

So I'm using this code to add an extra class to all the images that load in the post and page content, and everything works good, but if there's no image I get the error also sometimes the error loads ...
0
votes
1answer
266 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
0answers
18 views

I uninstalled a “Hide Title” plug-in and it created code on all my pages. Sydney Theme. How to fix

This is one of the warnings: Warning: include() [function.include]: Failed opening 'DIR/theme_customization.php' for inclusion (include_path='.:/usr/local/php5/lib/php') in /home/content/41/4442141/...
0
votes
1answer
38 views

Custom post type - Errors

I am getting these errors: Warning: call_user_func_array() expects parameter 1 to be a valid callback, no array or string given in C:...\class-wp-hook.php on line 298 Warning: Cannot modify header ...
0
votes
1answer
53 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
1answer
434 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: ...
5
votes
1answer
13k 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 ...
0
votes
1answer
691 views

PHP warning are displaying when using WP CLI

I'm running WP CLI 0.25.0 on Debian, PHP 7.0. I keep getting the PHP warnings displayed. In php.ini used for cli I have set error_reporting = E_ALL & ~E_DEPRECATED & ~E_STRICT & ~E_WARNING ...
0
votes
2answers
1k views

WordPress is giving a warning but my code is working fine

I am developing a theme and am getting the following error "Warning: trim() expects parameter 1 to be string, array given in C:\wamp\www\themes\wp-includes\query.php on line 1609". I have tried ...
4
votes
1answer
138 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 ) ...
2
votes
1answer
153 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 ...
-1
votes
1answer
139 views

My wordpress site wont load, it gives header error warnings

I get the following errors when I try to go to my clients site. http://www.jmarkpricereading.com/ Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent ...
0
votes
1answer
41 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
575 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
1answer
40 views

A more elegant way to handle notices/warnings

I have a wordpress site with a number of different plugins (about 75) all created by me, old and new included. With the evolution of WP and PHP/MySQL, some of the functions in the plugins have ...
-1
votes
1answer
817 views

“Cannot modify header information” warning?

Problem I'm having: Warning: Cannot modify header information - headers already sent by (output started at /nfs/c06/h02/mnt/157520/domains/website/html/rpow/wp-config.php:1) in /nfs/c06/h02/...
0
votes
1answer
17 views

How do I issue a warning in a wordpress plugin?

I'm trying to debugging a plug in that's misbehaving. I don't have a good setup for debugging and developing wordpress, so I just want to output the values of some variables to the rendered page. Is ...
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/...
-3
votes
1answer
156 views

How can i get rid of warning messages [closed]

URL:http://www.gazettevandetroit.com/ Error: Warning: Invalid argument supplied for foreach() in /home/gazettev/public_html/wp-content/themes/exquisite-wp/template-home.php on line 118 Code File: ...
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
916 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
142 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-...
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 $...