The errors tag has no wiki summary.
3
votes
1answer
365 views
$wpdb->prepare() warning in WordPress 3.5
I am receiving this warning when I try to run a database query:
Warning: Missing argument 2 for wpdb::prepare()
The offending query is:
$result = $wpdb->get_var(
$wpdb->prepare(
...
4
votes
3answers
841 views
How should one implement add_settings_error on custom menu pages?
The Professional WordPress Plugin Development book explains in detail how to properly use the Settings API, and it also demonstrates how to add Menus and Submenus, but unfortunately it doesn't provide ...
0
votes
1answer
547 views
Error 310 too many redirects after switching domains
I'm at a loss here. My site is http://www.kgstiles.com and about 70% of my pages now result in a 310 error. There doesn't seem to be any pattern to the error, but one thing I thought was interesting: ...
15
votes
6answers
5k views
Add validation and error handling when saving custom fields?
I have a function that defines a custom field on a post type. Say the field is "subhead".
When the post is saved, I want to do some validation on the input, and display an error message on the post ...
5
votes
2answers
224 views
Is there a plugin that will override the “Error establishing a database connection” message?
My provider's database server recently had some downtime and my site was displaying the classic "Error establishing a database connection" message for about an hour.
I knew what the problem was but ...
4
votes
2answers
825 views
How to use WP_Error $data argument?
The Call
$error = new WP_Error( $code, $message, $data );
The Output
Say I added three messages (msg A, msg B, msg C) to the code my_code and with the last message I added "Data" as $data, which ...
1
vote
3answers
1k views
Page output in strange characters
Apparently a lot of people complain that they only see random letters and characters:
My biggest problem is that I can't reproduce the problem on ANY of my devices!
Not on my Windows XP laptop, not ...
5
votes
1answer
3k views
Change login error messages
took a look at the questions but I couldn`t find a similar one.
I need to change the custom error messages that are displayed when user tries to login with a wrong username or password.
Like, change ...
4
votes
5answers
3k views
How to eliminate weird 404 errors in wp-admin?
I run a WordPress site with about 70 active plugins.
Every so often, I'll get a random error page ("Not Found", though I haven't checked the headers to see if it's a 404) on a /wp-admin/ page that ...
2
votes
1answer
90 views
Seaweed Plugin not working
I have installed the Seaweed (Wordpress Plugin).
I have successfully installed it and I can able to edit the content. But the save function is not functioning popularly. when I clicked on the "save ...
1
vote
2answers
275 views
Allowed Memory Size Error in WordPress
My WordPress is always down. I contacted my host and they said that the server is fine. My WordPress site has some basic plugins which are
all in one seo
seo search tagging
google xml
robots.txt
...
0
votes
0answers
146 views
Wordpress couldnt find database error [closed]
pleevi.com is my website. i get this error and i dont know what to do
couldn't connect to database server.Couldn't find database jqueryc_db.An unexpected problem has occured with the application.
...
-1
votes
1answer
289 views
Wordpress Plugin: Demon Image Annotation
I've been having issues with this plugin.
What it does is that as long as an image in your blog post has an "id", then every commenter can hover over the image and leave a note directly in the ...
5
votes
6answers
7k views
Cannot access non-wordpress subdirectories as wordpress overrides them with a 404 error
I refer to this question previously asked and not suitably answered:
Wordpress overriding actual subdirectories
and also
Non "Wordpress" pages/code getting 404 error.
I have the same ...
6
votes
2answers
2k views
How to display admin error notice if settings saved succesfully?
Title sounds counter-intuitive but bear with me. :)
I have options page, made with Settings API. When user enters invalid data I want to display error notice with add_settings_error() call.
But! To ...
2
votes
1answer
148 views
Displaying oEmbed errors?
Sometimes embedding an item via oEmbed is not possible, for example when a YouTube video has embedding disabled. The oEmbed service will return a 401 Unauthorized, and the code will not be converted.
...
0
votes
1answer
935 views
Receiving “This content cannot be displayed in a frame” error on login page
I am using a new domain for my WordPress directory in different server. When I click the meta links such "Login" or "register", I get this page:
This content cannot be displayed in a frame
To ...
6
votes
3answers
332 views
What are the best practices for updating?
Don't want to do anything to take down my blog. Here are some upgrade-related questions:
How often should Wordpress be updated?
What is the best way to do it?
How to know if there is a problem with ...
2
votes
1answer
538 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 ...
2
votes
3answers
772 views
wp-admin seems to be redirecting
I'm having a strange problem with my w-admin login. This has only started since I upgraded to 3.0
When I go to wp-admin, the login form appears as normal, but when I enter my username and pass, I am ...
1
vote
2answers
279 views
Fatal error: Allowed memory size of 146800640 bytes exhausted (tried to allocate 57 bytes) in public_html/wp-includes/rewrite.php on line 1561
I dont know how/why this happened. I was working on my site over the weekend and it was fine. When I came into the office this morning, I went to the site and got this:
Fatal error: Allowed memory ...
1
vote
3answers
832 views
An Unexpected HTTP Error occurred during the API request
I just did a clean install of Wordpress. But I have a problem when I install or use the WordPress API. So send me a sign
An Unexpected HTTP Error occurred during the API request.
The strange ...
1
vote
2answers
461 views
“Apache HTTP Service has stopped working” with WP Query in WordPress 2.9.2
When my script runs the 4th line below in WP 2.9.2, its causing my web app to throw an "Apache HTTP Service has stopped working" error
$cat=get_cat_ID('top-menu');
$catHidden=get_cat_ID('hidden');
...
0
votes
1answer
229 views
Jetpack could not contact wordpress
I recently created a site and installed Jetpack and activated it, but it gives me the following error:
Jetpack could not contact WordPress.com: register_http_request_failed. This usually means ...
0
votes
1answer
121 views
Force plugin to fail activation
I'm writing a plugin that will be using custom fields added by a theme.
Because of this, it would be ideal if my plugin not be able to activate should these fields not exist.
How do I go about ...