Last call to make your voice heard! Our 2022 Developer Survey closes in less than a week. Take survey.

Questions tagged [warnings]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
1 answer
146 views

Error: Attempt to read property "ID" on null

I have the following error Attempt to read property "ID" on null in this code snippet global $wp_query; $categories = get_the_terms($wp_query->post->ID, 'live_stream_categories'); $...
user avatar
  • 141
0 votes
0 answers
11 views

How to display a warning when an uploaded image is too small?

I want to display a warning when a user uploads an image with too low a resolution. I don't want to block the upload, just give a warning. The only option I see is wp_handle_upload_prefilter, but ...
user avatar
0 votes
0 answers
34 views

failed to open stream - wp-includes/blocks/file.php

I am troubleshooting an association with their wordpress site which seems to have made an automatic update. Since then, if I activate the debug I have this (see photos). I went to see the file.php ...
user avatar
0 votes
0 answers
20 views

Warning: call_user_func_array() expects parameter 1 to be a valid callback - whenever i navigate to wp-admin [duplicate]

whenever i navigate to URL/wp-admin/ i face this error: Warning: call_user_func_array() expects parameter 1 to be a valid callback, first array member is not a valid class name or object in /...
user avatar
  • 101
0 votes
1 answer
572 views

Illegal string offset in PHP function

I'm creating a metabox to upload PDF files. I have the following warning notice for this line of code: $this_file = $filearray['url']; Warning: Illegal string offset ‘url’ in... The complete function ...
user avatar
2 votes
1 answer
230 views

Get WP CLI to hide debug warnings and notices in JSON output, same setting as website

Summary: WP CLI can be used to get a JSON output of all the plugins installed on a site, but the output gets corrupted due to warnings although log levels are set to low. Problem Unfortunately, I have ...
user avatar
0 votes
2 answers
614 views

PHP warning - Use of undefined constant ‘FORCE_SSL_LOGIN’ ‘FORCE_SSL_ADMIN’ on wp-config.php

I have a bothering PHP warning for ages, and I am wondering if someone has solution to this. The following two-line warning is constantly recording in my error_log file: PHP Warning: Use of undefined ...
user avatar
  • 1
1 vote
1 answer
6k views

Deprecated: Function get_magic_quotes_gpc() is deprecated in WordPress that causes height change in hoe slider, all Tabs on website

I am looking for effect of this warning on your website Deprecated: Function get_magic_quotes_gpc() is deprecated in WordPress after this warning change in my website home slider height change in ...
user avatar
1 vote
0 answers
556 views

Change ICL_LANGUAGE_CODE for WPML

I got an error: PHP Warning: Use of undefined constant ICL_LANGUAGE_CODE - assumed 'ICL_LANGUAGE_CODE' (this will throw an Error in a future version of PHP) in <path/functions.php on line 19 So I ...
user avatar
  • 13
0 votes
1 answer
115 views

I am receiving a pluggable.php warning sign on my only http:// page

I just recently shared a link to my site using he http to my site: http://thechronicalist.com but instead of redirecting, i just displays this: Warning: Cannot modify header information - headers ...
user avatar
0 votes
1 answer
45 views

Block editors annoying warnings

When I am trying to edit or add a post/page using block editor, it shows me some weird warnings then they act like they disappear, but when I inspect the page, I see that they are still there. The ...
user avatar
  • 23
4 votes
1 answer
8k views

ftp_nlist() and ftp_pwd() warnings

I'm not sure when this warning started. I got an existing site to do its hosting and applied the following good practices: Updated Wordpress - from 5.3 to 5.4.0 (current WP version) Updated all ...
user avatar
  • 271
0 votes
1 answer
36 views

Warning message (re. php) on the blog page

I've got a message below (the part "xyz/blog-name.com" was changed). That error message is not because of a Plug-in, as the message doesn't disappear even I stop all Plug-ins. "Warning: Use of ...
user avatar
  • 1
0 votes
1 answer
18 views

I have this error notice 'wp_enqueue_script was called incorrectly' in my plugin

I have read all the previous posts about this but can't seem to get my head around what is wrong with my code. This is in a plugin that I have written. I thought I had it sorted but looks like I haven'...
user avatar
  • 135
0 votes
0 answers
22 views

Word press and PHP error caused these errors [duplicate]

Warning: Declaration of Thesis_Comment::start_lvl(&$output, $depth, $args) should be compatible with Walker::start_lvl(&$output, $depth = 0, $args = Array) in /data/25/0/30/26/30678/user/...
user avatar
  • 1
0 votes
1 answer
95 views

class 'wphpc_PAnD' not found

PHP Warning: call_user_func_array() expects parameter 1 to be a valid callback, class wphpc_PAnD not found in /var/www/clients/client32/web3288/web/wp-includes/class-wp-hook.php on line 288 What can ...
user avatar
  • 3
0 votes
0 answers
106 views

After updating theme & plugin I am getting an error message

Warning: session_start(): open(/var/cpanel/php/sessions/ea-php73/sess_fst434k28vgl24a35pujpu9u43, O_RDWR) failed: No such file or directory (2) in /home/fordhoow/public_html/wp-content/plugins/...
user avatar
0 votes
3 answers
7k views

class-wp-hook.php on line 288

Can someone help me with this error my website is not working even wp-admin page I'm getting this error message I have tried to disable all plugins but still same error? Warning: ...
user avatar
  • 3
0 votes
1 answer
2k views

wp warning declaration compatible [closed]

Good night. Please help me. Update WP to version 5.3 and you are now displaying this message on the WP website and admin ( Warning: Declaration of kiddy_Walker_Nav_Menu::walk($items, $depth) ...
user avatar
0 votes
5 answers
2k views

Warnings even when the WP_DEBUG set to false

The link https://vreqenz-stream.de/shop/ throws warning when opened on some devices and not on others. I thought it may be a cahce issue but I have cleared cache from WP-rocket and also browser. Just ...
user avatar
  • 11
0 votes
1 answer
96 views

Admin keeps showing pending translation update

WP shows that I have a pending update In /wp-admin/update-core.php, I see it's a translation update I press the update translation button The update warning disappears ... and after a few moments of ...
user avatar
1 vote
2 answers
2k 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 ...
user avatar
0 votes
1 answer
1k views

PHP warning with code for nav menu walker [duplicate]

[UTC] PHP Warning:  Declaration of description_walker::start_el(&$output, $item, $depth, $args) should be compatible with Walker_Nav_Menu::start_el(&$output, $item, $depth = 0, $args = ...
user avatar
1 vote
1 answer
2k 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: ...
user avatar
0 votes
1 answer
400 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....
user avatar
  • 1
0 votes
1 answer
30 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 ...
user avatar
1 vote
0 answers
457 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/...
user avatar
  • 11
0 votes
1 answer
48 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 be a ...
user avatar
  • 1
1 vote
1 answer
639 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 ...
user avatar
1 vote
1 answer
218 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 ...
user avatar
0 votes
1 answer
339 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' , '...
user avatar
0 votes
1 answer
592 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/...
user avatar
0 votes
1 answer
2k 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-...
user avatar
-1 votes
1 answer
212 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 ...
user avatar
  • 114
4 votes
1 answer
4k 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 ...
user avatar
  • 781
0 votes
1 answer
1k 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 ...
user avatar
  • 1
0 votes
1 answer
22 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 ...
user avatar
5 votes
4 answers
5k 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():...
user avatar
  • 339
0 votes
1 answer
2k 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 ...
user avatar
  • 41
0 votes
2 answers
555 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.
user avatar
0 votes
1 answer
53 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(&$...
user avatar
  • 1
0 votes
1 answer
162 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: ...
user avatar
  • 559
0 votes
1 answer
85 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]-&...
user avatar
  • 185
0 votes
0 answers
427 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 ...
user avatar
  • 1
1 vote
0 answers
431 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 ( ! $...
user avatar
1 vote
2 answers
705 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 ...
user avatar
1 vote
1 answer
4k 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 ...
user avatar
  • 25
0 votes
1 answer
739 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 ...
user avatar
  • 3
0 votes
1 answer
52 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 ...
user avatar
0 votes
1 answer
122 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?
user avatar