Skip to main content

Questions tagged [warnings]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
0 answers
149 views

PHP Warning: Undefined array key “HTTP_REFERER”

I tried to read similar questions, but not easy for me to understand. I have hundreds, maybe thousands, of those warnings my error_log, generated multiple times each day. That’s the error. [14-Jan-...
Ioria's user avatar
  • 29
0 votes
0 answers
117 views

call_user_func_array() expects parameter 1 to be a valid callback, class 'Automattic\Jetpack\Extensions\Contact_Form\Contact_Form_Block' not found

I got his error message above every page of my website, https://changyuan.com.tw/: Warning: call_user_func_array() expects parameter 1 to be a valid callback, class 'Automattic\Jetpack\Extensions\...
Chipmunkai's user avatar
3 votes
0 answers
247 views

How to find code responsible for warnings from wp_cron runs?

I have a website created using wordpress, which is hosted on accuwebhosting.com Recently I have been getting emails with the subject line "Cron user@server cd wpfolder && /usr/local/bin/...
noravanq's user avatar
2 votes
2 answers
377 views

Core error when calling remove_menu_page

During developent, my error log keeps getting polluted by errors from core WP. Since they are coming from core WP, I cannot fix them(technically I can, but I don't think that's a good idea). I wanted ...
HiMyNameIs's user avatar
0 votes
1 answer
1k views

Please Help Me, How to Fix PHP Error Undefined Array Key "srcset"

please help me, my website notice error Message. On error.log notice Undefined Array Key "srcset" This is my code on WordPress, and i'am use PHP Version 8.0. function ...
Cilacap Info TV's user avatar
0 votes
1 answer
140 views

Trying to add taxonomy terms to search results page

I have added a custom taxonomy as "Tempo" to denote whether the songs people are searching for are Up Tempo, Mid Tempo or Slow Tempo. The search filters them properly, but I am unable to get ...
pathosmusic's user avatar
0 votes
1 answer
208 views

Lots of warnings and errors instead of my WordPress site - Synology NAS - Intranet

I have been attempting to setup a company intranet on a Synology NAS. When I came back into work this morning after the weekend instead of the web page there are several pages of warning/error text in ...
hderic's user avatar
  • 3
1 vote
1 answer
8k views

Attempt to read property "ID" on null"

I was using below code to have custom order status with php 7.4 My host will end php 7.4 support thus I have to use php 8.0. I got "Attempt to read property "ID" on null" warning ...
roadlink's user avatar
0 votes
1 answer
755 views

Can't save changes or modify settings in Dashboard but Pages and Posts are fine

I am working on a client site from a previous developer. It needed many updates so I updated WordPress to v.6.0.1, Astra theme 3.9.1 (uses a child theme) and the many plugins in use. After all this, ...
dugost's user avatar
  • 1
0 votes
3 answers
3k 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'); $...
pee2pee's user avatar
  • 141
1 vote
0 answers
149 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 ...
Rafaucau's user avatar
  • 173
0 votes
0 answers
386 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 ...
David Satta's user avatar
0 votes
1 answer
1k 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 ...
Mathieu Préaud's user avatar
2 votes
1 answer
1k 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 ...
Thomas Ebert's user avatar
0 votes
2 answers
2k 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 ...
Mahdi's user avatar
  • 1
2 votes
1 answer
12k 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 ...
Mahesh Vyavahare's user avatar
1 vote
0 answers
2k 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 ...
bsomar's user avatar
  • 13
0 votes
1 answer
279 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 ...
THE CHRONICALIST's user avatar
0 votes
1 answer
78 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 ...
kuroyza's user avatar
  • 123
7 votes
1 answer
15k 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 ...
NBajanca's user avatar
  • 361
0 votes
1 answer
72 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 ...
Keren's user avatar
  • 1
0 votes
1 answer
27 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'...
Colin's user avatar
  • 135
0 votes
0 answers
24 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/...
Dave S's user avatar
  • 1
0 votes
1 answer
111 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 ...
Csaszi's user avatar
  • 3
0 votes
0 answers
117 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/...
user180267's 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: ...
MrSher's user avatar
  • 3
0 votes
1 answer
3k 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) ...
Anderson Camargo's 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 ...
veetrag's user avatar
  • 11
0 votes
1 answer
157 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 ...
Rogério Dec's user avatar
1 vote
2 answers
3k 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 ...
That Brazilian Guy's user avatar
0 votes
1 answer
2k 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 = ...
user3822603's user avatar
1 vote
1 answer
3k 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: ...
Jonathan's user avatar
0 votes
1 answer
424 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....
Cody G's user avatar
  • 1
0 votes
1 answer
33 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 ...
Ty-rex.fr's user avatar
1 vote
0 answers
501 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/...
LSG Sun's user avatar
  • 11
0 votes
1 answer
58 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 ...
Mette's user avatar
  • 1
1 vote
1 answer
1k 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 ...
Cyclonecode's user avatar
  • 1,164
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
390 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' , '...
Yateesh Kumar's user avatar
0 votes
1 answer
951 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/...
user142100's 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-...
Tina Shahani's user avatar
-1 votes
1 answer
241 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 ...
esmitex's user avatar
  • 114
3 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 ...
crmpicco's user avatar
  • 821
0 votes
1 answer
2k 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 ...
robbie's user avatar
  • 1
0 votes
1 answer
25 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 ...
Alison Neathey's 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():...
Benmay's user avatar
  • 361
1 vote
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 ...
Enzo's user avatar
  • 51
0 votes
2 answers
561 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.
HeroWeb512's user avatar
0 votes
1 answer
62 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(&$...
Monika's user avatar
  • 1
0 votes
1 answer
217 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: ...
Flimm's user avatar
  • 683