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
-1
votes
1answer
16 views

Add clickable function in functions.php - parse error [closed]

I'm trying to add onclick event to a div. But Wordpress keep saying that my function is undefined. Uncaught ReferenceError: thfull is not defined function thfull() { echo "document....
0
votes
0answers
24 views

Deferring Script wp-i18n causes a console error 'wp is not defined' - Gravityforms

I am deferring JS scripts in order to optimize page load times and SEO. My code to defer scripts is something like: add_filter( 'script_loader_tag', // Filters the HTML script tag of an enqueued ...
1
vote
1answer
2k views

Uploading .mp3 files http error - 2 “exact” files one successful other fails

I have 2 equal .mp3 files - technically different files but both exported from Audacity using the same settings and the same original audio. Exactly the same size, same content (albeit processed ...
0
votes
0answers
13 views

I have website, that is base on PHP but there is a undefined error occur automatic or may update a PHP latest version

I have Hotel website, Hotel in manali in mall road, after updating a PHP version code there is undefined error occur automatic, I don't know why this error occur and I have a big problem because this ...
0
votes
0answers
20 views

How to fix these errors? [closed]

Warning: call_user_func_array() expects parameter 1 to be a valid callback, function 'wp_enable_block_templates' not found or invalid function name in /home/vol2_6/unaux.com/unaux_29191198/htdocs/wp-...
0
votes
1answer
11 views

Can not login to wordpress site after resolving white screen of death

I had a white screen of death that I was somewhat able to resolve. I updated PHP from 7.0 to 7.3.2, removed BOM from wp-config.php, and deleted wp super cache plugin. From looking at others issues ...
1
vote
3answers
9k views

wp-admin 302 redirects

I have a new install of WordPress on my Mac mini server. The site uses SSL and has a valid up to date certificate from StartCom. The site loads, but with no CSS or theme. Mainly, I can't get into ...
0
votes
0answers
16 views

Warning: call_user_func_array() expects parameter 1 to be a valid callback, function 'wp_ob_end_flush_all' not … class-wp-hook.php on line 292

I have the following error, but have tried everything to resolve it. Can someone please assist me? Warning: call_user_func_array() expects parameter 1 to be a valid callback, function '...
0
votes
1answer
584 views

Object of class stdClass could not be converted to string in

I am having a problem , I am getting this error, Object of class stdClass could not be converted to string global $wpdb; $poster_id = $wpdb ->get_results("SELECT ID from wp_posts WHERE ...
0
votes
0answers
20 views

Fatal error: Uncaught Error: Call to undefined function add_action()

I'm working with WP Engine and added their geotarget add on and my redirect is working when I use my VPN in anywhere outside the U.S. which is what I want. However, when I test within the U.S. I get......
0
votes
1answer
2k views

Fatal error: Cannot declare class WP_User_Request, because the name is already in use?

Suddenly I am getting the following error on my website, I don't know why, these are the following errors shown on my website: 1)Fatal error: Cannot declare class WP_User_Request, because the name ...
1
vote
1answer
2k views

A non-numeric value encountered in /wp-includes/functions.php on line 68

We recently updated our shared hosting to use PHP 7.3 (problem still existed in PHP 7.2 as well) - website is throwing the error in the title. the function in question is: function current_time( $...
0
votes
0answers
18 views

Plugin pages on admin page are broken. Problem with permalinks. Getting “Invalid post type” error and “You are not allowed to access this page.” [closed]

Okay let me try to explain what is happening. Lets say Im trying to open orders page in woocommerce plugin by pressing "orders" in the menu. The link its opening is https://example.com/wp-...
0
votes
0answers
27 views

Unable to edit with Elementor

After installing Wordpress multisite configuration it is impossible to enter the Elementor edit environment, the following message shows: "the preview could not be loaded...", Unfortunately ...
3
votes
1answer
596 views

Too many datadabse connections - upper ceiling mysql

We run a high traffic blog with around 500 real-time users and 10000 posts. We are hosted by self on VPS - 16gb, 4 core with separate mysql DB server - 4gb, 2 core; both SSD. No problem with hosting ...
0
votes
1answer
2k views

One page is showing the “Index of /” error

What could be the cause for this? I re-installed WordPress and that didn't fix it, I switched to a default theme, same problem. This is just for one page, all other pages work okay! Please advise :)
2
votes
2answers
685 views

Sodium compat error

Yesterday, looking into error_log file I've found this error: [15-Oct-2019 08:23:34 UTC] PHP Fatal error: Uncaught Error: Undefined constant 'CRYPTO_AEAD_XCHACHA20POLY1305_IETF_KEYBYTES' in /home/...
0
votes
1answer
1k views

Custom form validation

I have created a basic form which can be POST to admin-post.php and also submitted via an AJAX call to admin-ajax.php. Both submissions work correctly, use the nonce for a little extra security, and I ...
0
votes
0answers
111 views

Critical error but refresh fixes it

I'm experiencing an intermittent issue where the "critical error" page is displayed but once you refresh the page it's working like normal. There is no information displayed when I have debug turned ...
0
votes
1answer
699 views

How to solve the error “Oops! That page can’t be found” when access Portfolio

My website is being on https://ahamedia.vn. It shows the error "Oops! That page can’t be found" when access any Portfolio item at this links: https://ahamedia.vn/hau-truong/ Describe: I use ...
0
votes
2answers
584 views

Weird Cron Error

So my wordpress site keeps going down from a 500 error, about once a day now. The entire site, including the wp-admin, will go down and stop responding to all requests with a 500 error. If I enable ...
1
vote
1answer
4k views

What do these “Failed to import” errors mean and how do I fix it?

Do I need to fix it if the web page displays correctly? Please advise. The demo import has finished. Please check your front page and make sure that everything has imported correctly. If it did, you ...
0
votes
0answers
15 views

I am having errors with checkout on wordpress

Notice: tax_class was called incorrectly. Product properties should not be accessed directly. Backtrace: require('wp-blog-header.php'), require_once('wp-load.php'), require_once('wp-config.php'), ...
2
votes
2answers
929 views

Redirect “Sorry, you are not allowed to access this page.” to Home

how to redirect the error message page "Sorry, you are not allowed to access this page." to the Home page?
1
vote
1answer
725 views

Odd error on top of my dashboard. How do I fix it?

This error is popping up 5 times on the top of my dashboard saying: Notice: WP_Scripts::localize was called incorrectly. The $l10n parameter must be an array. To pass arbitrary data to scripts, use ...
0
votes
1answer
718 views

custom error message or redirect to custom page if any error occurs

I want to create custom message when site got any error or broken or it is also be helpful if I can redirect site url to my custom page when site got error for example "www.demo.com" to "www.demo.com/...
0
votes
1answer
658 views

I imported an restore an database and It shows #1067 - Invalid default value for 'user_registered'

My database tables become corrupted so for fixing them I restored data and It shows an error #1067 - Invalid default value for 'user_registered' how can I fix it.
0
votes
2answers
34 views

Wordpress Plugins Error

I get this message when I go to add a new Plugin. Do you know a way to solve this? An unexpected error occurred. Something may be wrong with WordPress.org or this server’s configuration. If you ...
7
votes
2answers
5k views

Validation error: Extending Gutenberg gallery block

I am trying to extend the Gutenberg core/gallery block to add some new functionality to my image gallery on the frontend. I have created a separate plugin to handle this task. I have registered my ...
1
vote
0answers
25 views

Warning: call_user_func_array()

I have a website that when I open it i get some errors : Warning: call_user_func_array() expects parameter 1 to be a valid callback, function 'wp_schedule_https_detection' not found or invalid ...
5
votes
5answers
12k views

Troubleshooting a “You do not have sufficient permissions to access this page” error

I have a multisite installation running WP 3.5. My main site and a few other blogs on the network work fine. However, if I register a new user and site, that user gets the "You do not have sufficient ...
0
votes
3answers
2k views

Fatal error: Call to undefined function wp_raise_memory_limit()

I got this error when I tried to open my dashboard after doing an automatic Wordpress update. My website is still showing up normally; I just can't access the dashboard to work on it. Previous answers ...
0
votes
1answer
920 views

Wordpress error: Options page Setting_ not found in the allowed options list

I don't really know what to do now. :/ I tryed this: add_action( 'admin_init', 'Setting_' ); And this is my strings and form setup: function Setting_() { register_setting( 'options', '...
0
votes
0answers
30 views

why would ABSPATH not get defined

Last week I got an error in my logs on a standard WP install - Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in /wp-settings.php on line ...
1
vote
1answer
1k views

Wordpress shows error related to allow_url_fopen

I just installed wordpress with plugins, everything works find except on a 'contact me' page, where I can see an error like this. Warning: getimagesize(): php_network_getaddresses: getaddrinfo ...
4
votes
1answer
1k views

WordPress “Link has expired” error on updating posts

I'm maintaining a WordPress site on GoDaddy for a client and they started to get the "this link has expired error" when they saved a post. It does not happen when I upload a file. However, I am ...
0
votes
0answers
14 views

Error with fix_post_counts

My goal is to hide from all users posts from new authors. When i create a new author i notice that at the dashboard post are displaying posts from all users too. I found a code that it hides all ...
2
votes
1answer
655 views

How can I display an error message after post has been saved?

I'm writing a plugin, and I was wondering how I can display an error message after the meta fields have been updated and the page is reloaded. I have to check if the ID field is unique, and if it isn'...
0
votes
1answer
610 views

Ajax Response Error

I am going to be mad. I wasted 4 hours due this error but I can't solve it. When I want to create a category, wordpress give this error. I deleted each file in my theme, but I can't found where is ...
0
votes
1answer
940 views

PHP is_embed error showing up

I can't seem to find what's causing the error to show up when I enabled the debug mode on my WordPress website that is installed locally. Notice: is_embed was called incorrectly. Conditional query ...
1
vote
0answers
17 views

Current working folder path added to file access requests? [closed]

I've migrated a wordpress site to a Plesk IIS server (yes windows) runnign PHP 7.2 (also tried 8.0 with no change to this issue). A new Wordpress install (5.7.2) and moved content and media via a ...
0
votes
1answer
1k views

Getting error when using wp_insert_post()

When I use wp_insert_post() I get a white page that says "Are you sure you want to do this?". I get no PHP errors. I am using this outside of wordpress and have wp-load.php as well as /wp-admin/...
0
votes
1answer
49 views

Why can I not execute php files under the wp-includes folder?

I am tweaking WordPress to understand it better, play with it. For personal purposes. But loading custom files from the /wp-includes folder won't work. I tried to add a info.php file under /wp-...
1
vote
0answers
36 views

Call to undefined function wp_embed_register_handler()

I have a Wordpress website that is still under development. I was working on this website till end of Feb, 2021 and hold all works due to COVID crises. Till that date, website was working. Now I have ...
3
votes
1answer
5k views

Error: MySQL shutdown unexpectedly. XAMPP local conf running WordPress

I have a xampp configurated locally to run wordpress. I must have done something wrong when fixing some issues 'cuz at the end, I got stuck with the following log from mysql database. 2015-11-10 15:...
0
votes
0answers
31 views

WordPress Error Message

I am getting below error message in debug.log file. [19-Jun-2021 14:12:52 UTC] PHP Warning: An unexpected error occurred. Something may be wrong with WordPress.org or this server’s ...
3
votes
3answers
13k views

What causes the “max_user_connections” warning on WordPress frontend?

I'm currently getting this error in the front-end only (not inside /wp-admin): Warning: mysqli_real_connect(): (HY000/1203): User xxx already has more than 'max_user_connections' active connections in ...
1
vote
1answer
108 views

Corrupt .htaccess file

My site was running well last summer. But today when I tried to make updates in the wp-admin section, I got lots of 403 errors on all PHP files: load-styles, load-scripts, edit.php, media-new.php, etc....
3
votes
4answers
17k views

How to fix ob_end_flush() error?

At the bottom of my WP-admin pages I get this: ob_end_flush(): failed to send buffer of zlib output compression (1) in C:\Users\anticaking\Desktop\Website\wordpress\wp-includes\functions.php on line ...
5
votes
1answer
1k views

WSOD but WP_DEBUG not giving any errors

I am running Wordpress on a WAMP stack and I'm trying to debug a WSOD error, which I think is a PHP error, as I have tried disabling all my plugins and themes and they don't seem to be the problem. I'...

1
2 3 4 5
23