The tag has no usage guidance.

learn more… | top users | synonyms

0
votes
1answer
15 views

Theme Check errors of theme code

We are receiving these errors while we check out theme using ThemeCheck. We never seen this before and note sure what they mean or how to solve them. Can anyone so kind to tell us about these and some ...
2
votes
0answers
55 views

Showing WP_Error message with admin_notice action hook

I have just get an answer to one of my question but the problem is I want to print an error when every user will insert tags of more than two words through post-new.php with admin_notice action hook. ...
0
votes
0answers
27 views

PHP errors are logged but not displayed

On my local development server, PHP errors are logged to the file wp-content/debug.log, but they don't display on the page or halt execution. This problem seems confined to the administrative ...
1
vote
1answer
354 views

Why $wpdb->show_errors() and print_error() is showing an output even if the query output is correct?

In order of figuring out the following issue, see Sanitize a working query string by using $wpdb->prepare() fails with MySQL DB error "right syntax to use near '3' at line 1" i ...
0
votes
0answers
122 views

How to pass error message from plugin function to admin_notices

I am creating a WordPress plugin that uses the save_post action hook, and need to output any error messages to the screen (I am using the admin_notices hook). The setup is like this: function ...
-3
votes
1answer
65 views

How can i get rid of warning messages [closed]

URL:http://www.gazettevandetroit.com/ Error: Warning: Invalid argument supplied for foreach() in /home/gazettev/public_html/wp-content/themes/exquisite-wp/template-home.php on line 118 Code File: ...
0
votes
0answers
155 views

I can't upload files/images to my wordpess wp-admin

I am working on a domain but my problem is after I install wordpress theme as I try to upload images for the slider and logo this error show - The uploaded file could not be moved to ...
0
votes
1answer
72 views

Disable Debug Log Programmatically

I'm trying to disable WP_DEBUG_LOG if and only if debug.log exists. I'd like to hook into wp_footer and test if the file exists and if so disable my debug log. All I've found though is that ...
0
votes
1answer
284 views

(updated) How to add AJAX error handling to a (fully) custom registration form?

Update 2.1: Okay, after messing around with this some more I remembered that I hadn't included the JS file which was causing the white screen, OOPS! ;) Now the form does not submit the data nor send ...
0
votes
2answers
2k views

How to show an error message after publishing a post?

I'm using the transition_post_status hook to perform some operations after publishing a post. In some conditions I would like to show an error message in a red box under "Edit Post" and above "Post ...
1
vote
1answer
100 views

php console log speed [closed]

How do I log speed benchmarks to a console in php? I don't want to echo the results for the user to see, but just in some kind of log. I know that I can get the time elapsed with this: $first = ...
1
vote
1answer
669 views

Handling duplicates with wp_insert_term()

I'm using wp_insert_term which works quite well Now I want some error handler for when using the same name. $term_id = wp_insert_term( $term, 'wpsc_product_category', $args ); if($term_id) {//my ...
0
votes
1answer
40 views

Returning error upon comment being flagged as spam

Hello Im using a custom filter that hooks to pre_comment_approved to look for bad words in a custom way. Now when the comment gets flagged it returns spam. How could I post back an error to the ...
0
votes
2answers
173 views

customize wordpress database error page

UPDATE Initially I suspected this was related to the Wordpress framework I'm using (Genesis) or to my child theme functionality, but turns out that's not the case as I was able to get this to work in ...
0
votes
0answers
15 views

How to handle a “Error establishing a database connection”? [duplicate]

For a little project i am using WP by loading require( '../site/wp-load.php'); When the local msyql server is running everything works great. But in certain situations the local mysql server isn't ...
3
votes
1answer
629 views

Wordpress PHP error handling and reporting in production environment

I'm trying to find a solution on how to handle the displaying and logging of errors in a PHP (Wordpress) production environment. Is it possible to do the following (alternative suggestions welcome): ...
4
votes
3answers
884 views

How to log mysql errors from wordpress core?

I am developing a wordpress site and I would like to be able to log and handle mysql errors from wordpress core. My site has a mix of wordpress pages and posts + a few php pages that run under the ...
-2
votes
1answer
310 views

How to get an error message if a form is empty (plugin: Post for site) [closed]

I wonder if you intelligent friends can detect the problem in this code. I want the form to display an error message if it's empty. Now it just goes to my completed form page. <?php /* * * * ...
0
votes
1answer
1k views

Contact Form 7 - Debugging email send failres [closed]

I am getting the red failed error when trying to send a message. I referred to the FAQ and this is the extent of help available: "There are really various reasons for server side problems, so I ...
0
votes
0answers
510 views

Stop saving process when metabox is invalid [duplicate]

Possible Duplicate: Prevent post from being published if custom fields not filled Check before publishing, if already exist post with current custom field value I am trying to add some ...
0
votes
1answer
477 views

Form validation on user profile edit

I have added a custom field to user profiles in bbPress however I am unsure how to do form validation other than javascript. I would like to do some PHP validation however the few things I have tried ...
1
vote
1answer
198 views

How to make my plugin code die gracefully

I've set up a class for my function, and I'd like to implement some form of error handling. But I'm new to this error handling lark. Can I set_error_handler to only show certain messages (and can ...
0
votes
1answer
545 views

Alphanumeric usernames and error message for it

I'm facing a problem where I haven't seen proper answer anywhere. What I need help with is this: How can I prevent my users registering non-alphanumeric usernames? To be exact, I could prevent it by ...
1
vote
2answers
797 views

Auto-detect javascript errors and warn theme user

This may sound simple, but it's not :) What I want, and most likely many theme developers do (themes that use javascript / jquery), is to warn the theme user that his site has javascript errors. In ...