Questions tagged [errors]

Not all errors one encounters while working with WordPress are actually caused by WP. When asking about errors be as specific as possible. Just telling which error you get, is usually not enough to help you tracking it down.

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

ActivityPub plugin when Letsencrypt present

I am trying to make ActivityPub plugin to work with my site https://codecorner.galanter.net. It expect webfinger endpoint https://codecorner.galanter.net/.well-known/webfinger?resource=acct:yuriy@...
2 votes
1 answer
52 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 ...
1 vote
1 answer
55 views

Can't create new pages in wordpress

I have ran a php code to remove some pages of the database, the code worked fine and i have left with the optmised pages i needed. However, now i can’t create new pages at all. This happened with 2 ...
0 votes
0 answers
6 views

Website system files appearing in 404 error list [closed]

I am using a the 'Redirection' plugin (documentation can be found at https://redirection.me). For many of the 404 errors it generates it is obvious to me as to why they have been generated and to ...
  • 1
0 votes
2 answers
36 views

How do I turn off WordPress errors and just have regular old php errors?

If I use the constants, I still get the WP errors. I don’t want WP shadowed box and custom messages and all that. Just plain old PHP errors. In wp-config.php I have this: define('WP_DEBUG', false); ...
0 votes
1 answer
63 views

Customizing login message

I’m trying to change this error “The username [username here] is not registered on this site. If you are unsure of your username, try your email address instead.” I’ve tried various methods and can’t ...
0 votes
0 answers
8 views

I can't log into my website , it says "Error: Cookies are blocked due to unexpected output"

I have seen others with this same problem but when I google it it resolves it in a lingo I don't understand. I need a simple answer.
0 votes
0 answers
17 views

Browser Caching .htaccess

I must be missing something. Here is the excerpt from my 'htaccess file'; <IfModule mod_expires.c> ExpiresActive On # Images ExpiresByType image/jpeg "access plus 1 year" ...
0 votes
0 answers
18 views

Error when loading Dashboard

When I login, I see a white page with the Error report: TypeError thrown array_pop(): Argument #1 ($array) must be of type array, null given I think that is sicne I updated PHP to version 8. The error ...
0 votes
1 answer
64 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 ...
9 votes
1 answer
1k views

WordPress 6.1.1 shows deprecated errors with PHP 8.1 & 8.2

Is it related to my server or it is WordPress's error with PHP8.1 and PHP8.2? I see same error for both versions. Should I ignore the errors by setting wp-config.php as: define( 'WP_DEBUG_DISPLAY', ...
0 votes
0 answers
16 views

Apache error log lots of connection_refused

I have wordpress on a Debian 11 VPS running Apache. The error log of my wordpress has lots of php:notice Connection refused. Ex. [Thu Jan 19 07:18:05.037217 2023] [php:notice] [pid 62966] [client ip....
0 votes
0 answers
87 views

Unable to log in: "Cannot serve directory www/wordpress/wp-includes/ No matching DirectoryIndex"

I was trying to log into my Wordpress website. The main website is fine, but when I access http://[domain]/admin, I get: Firefox - a blank website Brave - In-browser error message "[domain] is ...
  • 101
0 votes
1 answer
57 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 ...
  • 3
0 votes
1 answer
45 views

Admin notice on wp_insert_post

I am trying to display some error messages in case some conditions are not met when using wp_insert_post. However, it the admin_notice doesn't seem to trigger. Here's the example I have: ...
0 votes
1 answer
29 views

Logout redirect via page template without confirmation?

I'm trying to redirect users when they visit my page template template-logout.php, but I keep getting the Wordpress "Do you really want to logout?" question despite wpnonce being generated. ...
  • 1,422
0 votes
1 answer
155 views

Use of undefined constant issue

I have the following warning notice from my functions.php file: Warning: Use of undefined constant ENVIRONMENT - assumed 'ENVIRONMENT' (this will throw an Error in a future version of PHP) This is ...
0 votes
0 answers
53 views

Error code 499 on specific cron job

I am getting error code 499 in my website's access logs. The site is built with WordPress. The logs are mostly coming from bg.googleusercontent.com which is I think google's analytics tool or some ...
0 votes
1 answer
13 views

How can I resolve an error on Wordpress after PHP update

Am having an issue with my website after the new php update it was at first with plugin which I removed via the Control panel but it's still showing an error. See attached picture
-1 votes
1 answer
69 views

syntax error, unexpected '=>' (T_DOUBLE_ARROW) [closed]

I don't know how to use this, I'm trying to fix the codes, but I can't fix this one. Someone could please help me? public $is_success = true; public $messages = ( 'success' => [], ...
0 votes
1 answer
45 views

Change Registration Error Message

I would like to change the error message: "Invalid login details" into "This username or email already exists." I am using a plugin called Login Customizer and even if I deactivate ...
0 votes
0 answers
108 views

How to fix Notice: unserialize(): Error at offset 12620 of 12651 bytes error?

I get this PHP error notice in Query Monitor. I tried disabling all plugins and applying a default theme like TwentyThenty, but the error doesn't go away. I also replaced wp-admin and wp-includes with ...
0 votes
0 answers
159 views

PHP warning: Undefined array key 2 in feed.php

I'm trying to resolve "PHP warning: Undefined array key 2 in ... feed.php". I was looking online, and it seems that when there is an undefined array, I can resolve the issue with an if(isset(...
0 votes
1 answer
37 views

Wordpress Customizer not loading

I am trying to switch my Wordpress site to a new theme. I could reproduce the initial issue on my live site as well but did all the following testing in my local staging environment. Issue: As long as ...
0 votes
0 answers
160 views

PHP warning $post->ID is null

I've been having some difficulty with the following error, and my PHP skills are pretty non-existent. Whenever I try to create a new page, I get the following error: PHP Warning: Attempt to read ...
0 votes
1 answer
32 views

How can I send api calls from my plugin?

I have a collection of REST APIs that our android app uses. We use POSTMAN to send requests and troubleshoot them. Now, I am working on a plugin where I am trying to send API calls to all the ...
0 votes
0 answers
15 views

All pages duplicated like a mirror with critical errors

My website is showing all pages twice and gives me critical errors when trying to edit anything or duplicate pages. Here are some key remarks: The pages counter of the pages list is wrong, showing 72 ...
0 votes
1 answer
37 views

Fatal error trace not shown in development setup

I recently re-did my local dev setup and have been seeing these types of fatal error warnings: There has been a critical error on this website. Please check your site admin email inbox for ...
  • 133
0 votes
1 answer
36 views

How to fix enqueue_styles error for a twenty-seventeen childtheme

I have searched your site but cannot find and fix this error I get: Notice: Function wp_enqueue_style was called <strong>incorrectly</strong>. Scripts and styles should not be registered ...
0 votes
1 answer
9 views

Error Message - Cannot login to Wordpress

I am getting this error message and cannot log in to wordpress anymore. Can someone please help: Warning: Cannot modify header information - headers already sent by (output started at /home/customer/...
  • 1
0 votes
1 answer
31 views

Console errors after Wordpress Update 6.1

I am using Soledad theme with Woocommerce and after updating to version 6.1 I get these errors. Failed to load resource: the server responded with a status of 500 () post.php:1 Failed to load ...
  • 101
0 votes
1 answer
173 views

Fatal error: Uncaught Error: trim(): Argument #1 ($string) at \wp-includes\class-wp-query.php

I am using a form to submit table inserted values using <input name=[]> as $_POST to a PHP page. It's a template page of wordpress and I am getting an error. <?php /* Template Name: table ...
  • 3
0 votes
1 answer
19 views

kali php problem [closed]

hello everyone I download a php script and when I try to run it kali show me this message: PHP Fatal error: Array and string offset access syntax with curly braces is no longer supported in /home/...
0 votes
0 answers
18 views

Is it possible to empty debug.log programmatically?

Is it possible to empty/delete wp-content/debug.log through WordPress? Sometimes things get messy so I wish I could empty it on page init so I have only fresh data to analyze. I write to it using a ...
  • 577
0 votes
0 answers
50 views

File doesn't exist! in wordpress function.php file while creating new post or page

i have been working on wordpress website, from past two days i am not able to add new posts/pages while i click add new page or post, below image shows the error cant able to create new post cant ...
1 vote
0 answers
37 views

Only specific users timing out

First-time asker here. Grateful for any help! I have a user who is timing out every time they try to edit a page in the Divi builder. Here is what I know: My user and other users are not timing out, ...
  • 11
0 votes
0 answers
36 views

Why when I click on a link into the WP admin panel I am redirected to a link that doesn't contains wp-admin prefix, so I obtain 404 error

I have installed a WordPress instance and I a facing the following problem. After that I access my admin panel via the URL: https://MY-DOMAIN/wp-admin I am correctly redirected to the admin panel. The ...
0 votes
0 answers
40 views

Wordpress error

Hell, I have an error: Fatal error: Uncaught Error: Call to undefined function apply_filters() in /home4/smakolyk/public_html/pcwordpress/wp-content/plugins/woocommerce/includes/admin/importers/...
0 votes
1 answer
40 views

Other pages fine but wp-admin showing ERR_TOO_MANY_REDIRECTS Error

wp-admin showing ERR_TOO_MANY_REDIRECTS Error and can't let me login into dashboard but Other pages loading fine. FIXED
0 votes
0 answers
16 views

Comment turned Invisible

Please help me with this problem. People can comment, and the database shows the commented data. but the website is not displaying them. They are just showing blank space. (Just the username of the ...
0 votes
0 answers
18 views

Blog suddenly shows Archive instead of index page

I've searched all over the Net but this doesn't seem to be a common problem My blog https://wholeearthmama.com suddenly is showing Archive Posts images, not sure if this is a PHP problem or something ...
0 votes
0 answers
12 views

What are the issues using the Test Cookie Fix?

While login, I was getting this error: Cookies are blocked or not supported by your browser. You must enable cookies to use WordPress If I try again to log in, then I can log in! When I searched for ...
0 votes
0 answers
79 views

Too many errors on log

My shared hosting go to 100% CPU i check error_log and appears too many errors [23-Aug-2022 22:15:05 UTC] PHP Fatal error: require(): Failed opening required '/home/mywebsite/mywebsite.com/wp-...
  • 1
0 votes
0 answers
20 views

Programmatically revert to backup .htaccess a possibility?

This may be impossible, but I am wondering if anyone knows if there is a way to try loading an .htaccess file, and if it causes issues on the site then revert to a backup .htaccess file? Same goes for ...
0 votes
2 answers
51 views

Prevent post from being published and show error

I'm trying to prevent a post from being published if it contains certain words using the folowing: function jhnppWord($content) { global $post; $content = $post->post_content; $...
0 votes
1 answer
218 views

Need help with Deprecated: Non-static error when update PHP 7.4 -> 8.1 with Dyad 2 theme

I have two Wordpress sites with theme Dyad 2 https://wordpress.com/theme/dyad-2 I need to upgrade from PHP 7.4 to 8.1, but when I try I got four "Deprecated: Non-static" errors. I managed to ...
  • 3
0 votes
0 answers
18 views

Media dint apper in wordpress media library after uploaded through file manager

I tried to upload a 400mb file to wordpress site through media library, but it show this error message 'Unexpected response from the server. The file may have been uploaded successfully. Check in the ...
0 votes
0 answers
39 views

Failed to import "File name": Invalid post type jetpack-portfolio

I'm importing all my content from wordpress.com to wordpress.org but keep getting the error Failed to import “Post Name”: Invalid post type jetpack-portfolio. I need to transfer all my portfolio and ...
  • 1
0 votes
1 answer
36 views

Can't find image to remove

I noticed when debugging my first ever Wordpress site that I was getting an error Access to image at 'http://192.168.1.250/wordpress/wp-content/uploads/2018/11/bg-10-free-img.jpg' from origin 'http://...
  • 101
1 vote
2 answers
823 views

Why does this code snippet create a critical error on my site? [closed]

This snippet used to work fine but with the update to PHP 8.0 it now breaks the site when a WC order is switched to this custom status //Add custom bulk action in dropdown add_filter( 'bulk_actions-...
  • 113

1
2 3 4 5
24