Tag Info

Hot answers tagged

6

The JavaScript function wp_attempt_focus is causing this issue. The function fires shortly after page load, clears the form and focuses on it, forcing users to manually enter their login information. Chrome is filling in the username and password automatically, just milliseconds before the JS function clears the field. Chrome does not properly pick up the ...


4

This is a known bug As far as I'm concerned, you can easily fix it by replacing if ( SCRIPT_DEBUG ) { with if ( defined('SCRIPT_DEBUG') && SCRIPT_DEBUG ) { That should suppress the error for now. When Wordpress is updated again, this error may be overwritten, but I believe it will be fixed in the next update. UPDATE Fixed at build 32482.


3

If you don't wish to modify your core wordpress files to fix the issue, you can simply add the missing definition into your wp.config.php file. Something like: define('SCRIPT_DEBUG', true); Would remove the error. There is already a WP_DEBUG definition in there already so I would suggest putting it close to that.


3

You can use admin_notices hook http://codex.wordpress.org/Plugin_API/Action_Reference/admin_notices For example: function ravs_admin_notice() { ?> <div class="error"> <p><?php _e( 'Article with this title is not found!', 'my-text-domain' ); ?></p> </div> <?php } on ...


2

The output that you posted above is expected behaviour for $wpdb->print_error() if the following is true - You are running a single site, not multisite $wpdb->suppress_errors is set to false $wpdb->show_errors is set to false From the looks of your code, you meet all those conditions. Note also that, unless you have turned them off previously, ...


2

Upon successful login wp_signon() sets a cookie in the http response header. Hence it has to be called before any HTML output is sent to the browser. Otherwise the "headers already sent" error will occur. After a successfull login you should redirect your user. Otherwise the login information will not present when the page HTML is rendered. A very ...


2

First of all, never use query_posts. Rather use WP_Query to construct your custom query which is the prefered way You are also using the category_name parameter wrong. If you look at the WP_Query documentation, it states category_name (string) - use category slug (NOT name). Go and have a look at the examples given in the docomentation under the ...


2

Try to disable the plugins via the database running this query in your MySQL: UPDATE wp_options SET option_value = 'a:0:{}' WHERE option_name = 'active_plugins'; Also, try to enable error debugging in your wp-config.php file adding this line: define( 'WP_DEBUG', true ); Also, could you paste a copy of your .htaccess file?


2

The notice is easy to set via the hook admin_notices. You can set on each page a message via this hook. function my_admin_notice() { ?> <div class="updated"> <p><?php _e( 'Updated!', 'my-text-domain' ); ?></p> </div> <?php } add_action( 'admin_notices', 'my_admin_notice' ); Ping this hook on your ...


2

Your problem is that you're using Reserved Terms. error is a reserved term, you can't use it. To get around this, you could intercept the request early, and do a redirect, changing the query parameters in the process. For example, handling a link get parameter: add_action( 'wp' , 'reserved_term_intercept' ); function reserved_term_intercept(){ global ...


1

You should use wp_enqueue_script to add the script. The documentation contains information about the function and how it should be used and some helpful examples. Basically, you will need to add something like this to the functions.php file: function myextension_enqueue_scripts() { wp_enqueue_script( 'myextension-angular', plugins_url( ...


1

The function is_wp_error checks if the given var is an instance of WP_Error class (soruce code as WP 4.2.2): function is_wp_error( $thing ) { return ( $thing instanceof WP_Error ); } As you can see, if the given variable is a instance of WP_Error class, the function returns true, even if the object is empty. Your $error variable is a WP_Error ...


1

The root of the problem is that isset expects a variable to be passed to it. Also, I'm assuming that you expect the get_post_meta() to return a scalar value and not an array, so I added the third parameter set to true. // 3rd param: $single. Value of true means get scalar value, not an array. $ytlink = get_post_meta( get_the_ID(), ...


1

First thing i see that needs to be changed is your assigining unchecked values to your input fields. Try wrapping isset round the variable before echoing, this will stop errors if they are not assigned or empty. Second thing as you have passed a post id to get_post_custom() you dont need the second array. function basin_manager_meta_options(){ global ...


1

The first issue is your hosting company fault. The underlying library that performs the authentication that you are actually connecting to wordpress.org is probably missing some related configuration to be able to complete correctly the authentication. The solution they gave you is not secure and while I don't believe anything bad will happen because of ...


1

Using a tool to monitor itself is always a problematic idea, if wordpress has errors how do you know that those errors do not impact your integration code in a way which prevents them from being reported upstream? Your best option is probably to setup error reporting levels in php and if applicable in wordpress, and have an external tool to monitor the file ...


1

This is a PHP variable scope issue, there is no $wpdb defined in your function. Add global $wpdb; before trying to use the $wpdb object.


1

I found the problem. I didn't realize this was a generic message for pretty much all errors. I stripped everything out of the activation routine (similar to above) and ran it... got no errors. Started adding "stuff" back. And it appears a call to flush() at the end of the activation function trying to force the /wp-content/debug.log to be flushed to disk was ...


1

Update for everyone visiting this thread (2015) jwplayer_tag_callback() does not work anymore, you'll get a fatal error telling you the function is not defined. Instead insert a player programmatically like this: echo JWP6_Shortcode::the_content_filter( '[jwplayer file="'. $videoUrl .'"]' ); (Found here.)


1

Your child theme's functions.php file should be an empty file to which you can add code specific to your child theme. It appears you have copied the functions.php file from the parent theme instead. See this note about functions.php in Child Themes: Unlike style.css, the functions.php of a child theme does not override its counterpart from the parent. ...


1

I've had the same problem and found it was due to the upload file size set for the server (in my case 2mb). There is another setting which escapes me at this point, but is basically a limit on the amount of space that can be used to process uploaded images...which WordPress does when it re-sizes the images on upload. Unfortunately, unless you have root ...


1

get_term_link() will return a WP_Error object on error. You can't print an object or array or you will get messages similar to what you are getting. Use var_dump() instead or print_r() and you should see what is occuring. Your error even tells you that WP_Error is the object involved. You are getting errors when the term you are looking for is not found. ...


1

Found the problem. It was a problem with my host, in the path the ID3 folder name was uppercase, while on the server for some reason it was lowercase, this is why it didn't find it.


1

Look at your .htaccess file in your public_html folder for your WordPress installation. It seems that when with GoDaddy hosted on the windows package, you need the following inheritance set for rewrite in your .htaccess file: RewriteOptions inherit RewriteEngine on That solved my problem on index.php.


1

Whoever wrote your theme didn't bother to verify the existence of array keys before using them. The error is happening because the key album_tracks_metabox_nonce doesn't exist in the $_POST array. The line likely should be: if ( !isset($_POST['album_tracks_metabox_nonce']) || !wp_verify_nonce($_POST['album_tracks_metabox_nonce'], ...


1

Although the actual question is off topic, I would make a few alterations to the code to make it more reliable and a bit faster and less resource intensive: Add $content = ''; right at the top of the function, this will take care off the Notice: Undefined variable notice Only get the term id's from wp_get_post_terms(). This will make this function faster ...


1

You should contact the plugin author, because plugin support is generally off topic on this site. But ... I got curious, peeked into the plugin code and found this line: add_action( 'wp_head', array('dc_jqverticalmegamenu', 'header') ); where the header() method is assumed static, but it's not: function header(){ // ... } That's why this strict ...


1

You can disable a plugin from the database as a last resort, here is a link to an article that will help if your familiar with MySQL http://perishablepress.com/quickly-disable-or-enable-all-wordpress-plugins-via-the-database/ If you are not familiar with MySQL, then I suggest you use a tool such as Sequel Pro for OS X or PHPMyAdmin to look for the ...


1

That is a seriously wonky plugin, my friend. Prologue Before we actually start, trash this conditional - it does absolutely nothing: if($_REQUEST['s'] != '') { } But really, more than likely, the original plugin developer had intended this conditional to actually do something by bailing out of the function if $_REQUEST['s'] is not set (seeings as ...


1

The problem doesn't actually occur with IE only, it only breaks page in IE. Your pages have circular 301 redirect between shortlink and permalink URLs — http://kyl.fi/ajankohtaista/ sends browser to http://kyl.fi/?p=16, which sends browser to ttp://kyl.fi/ajankohtaista/ and the circle have closed. Other browsers just decide to ignore this, ditch stupid ...



Only top voted, non community-wiki answers of a minimum length are eligible