The tag has no wiki summary.

learn more… | top users | synonyms

-3
votes
1answer
20 views

How can i get rid of warning messages [on hold]

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
43 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
36 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
0answers
17 views

How to display an error message to the user in the Theme Customizer?

I am developing my own Theme Customizer Control, and I was wondering if it was possible to display an error message to the user. I use the WP_Customize_Image_Control, and I would like to prevent user ...
0
votes
1answer
192 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
0answers
13 views

Use admin notices to show errors [duplicate]

I'm using the transition_post_status hook to perform some operations after publishing a post. If an error occurs, I would like to use the admin notices to show a message to the user: ...
0
votes
2answers
983 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
60 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
437 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
38 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
1answer
112 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
431 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
2answers
405 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
263 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
826 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
319 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
409 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
172 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
431 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
674 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 ...