Tag Info

Hot answers tagged

5

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 ...


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

Did you also add wp_enqueue_script('media-upload') in functions.php ? I tried this and it's working: function load_admin_things() { wp_enqueue_script('media-upload'); wp_enqueue_script('thickbox'); wp_enqueue_style('thickbox'); } add_action( 'admin_enqueue_scripts', 'load_admin_things' );


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 ...


1

A scalar value is something you can put on a scale: an integer or float value (4 or 5.5) or a string. That means WPBMap::getParam('vc_row', 'el_class'); doesn’t return an array, but a number or a string, so you cannot treat $param as an array with $param ['description']. Find out why you don’t get an array.


1

Since you've used the true argument for get_post_meta, $blogimages will be a single array, not a multidimensional one. So instead of $blogimages[0]['blog-image-inside'], just use $blogimages['blog-image-inside']. For absolute sanity, you might also want to check $blogimages before you use it: 'exclude' => [ $thumb_ID, isset( ...


1

http://stackoverflow.com/questions/22813970/typeerror-window-tinymce-execinstancecommand-is-not-a-function Thanks to Scott B In Wordpress 3.9, the TinyMCE is updated to version 4, and in TinyMCE 4, the method "execInstanceCommand" has been replaced by the method "execCommand". For compatibility issue (with old versions of WP), you must be check the ...


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 ...


1

When we are outside the Sample namespace, we should call the function by \Sample\sp_activate(), so please try the following: <?php /** * Plugin Name: Sample Plugin * Version: 0.0.2 */ namespace Sample; \register_activation_hook( __FILE__, '\Sample\sp_activate' ); function sp_activate() { } If something is printed out during the plugin ...


1

Look towards the end of your wp-config.php file, you should have the definition for ABSPATH looking something like: /** Absolute path to the WordPress directory. */ if ( !defined('ABSPATH') ) define('ABSPATH', dirname(__FILE__) . '/'); If it's a static path instead of the code above, then this might not correspond to your current path. Either change ...


1

Issue was resolved by commenting the code that was requesting the jquery file from www.jquerye.com site. But as that site is expired the jquery link too which was giving 403 Forbidden error. I found that piece of code in themes/themename/framework/functions/init.php file with cURL requests. I have commented the last line which was adding to wp_head ...


1

It's probably due to an unclosed curly brace somewhere. Can include more code? The line numbers in the error message are not always where the actual issue is.


1

Your path have an extra _ in between widget-plugin.php and /js/upload.js. BTW, your path should just be plugins_url( '/js/upload.js' , __FILE__ ), Go and check the following wp_enqueu_scripts wp_enqueue_script wp_register_script admin_enqueue_scripts


1

First, you need to to find out what your current version of MYSQL... WordPress requires MySQL 5.0 or greater Since its a VPS, I'm assuming its a linux installation. Just type mysql -V on the command line and it will return your MYSQL version. If the version is compatible with wordpress, this message may be a "plugin/theme related" message. Look at your ...


1

wp-login is the file used to send user passwords e.g. new user registrations user lost passwords It might be you're getting a lot of registration spam? Is registration turned off on your install (settings > general)?


1

This is a lazy low quality list generate by your hosting. It is hard to understand it without more context but basically it is just lists the files in which there is a "mail" string and it has very little to do with the actual place which send mail. This kind of list are rarely useful in practice as they flood you with so much details it becomes hard to ...


1

For those who stumble upon this later, use either option 1 or 2 found here: https://core.trac.wordpress.org/ticket/19373. “For other developers who run into this and need to work around it, either of these 2 options work: call wp_set_post_terms() to add your taxonomies after calling wp_insert_post() set up a "current user" in your script before calling ...


1

Is the site still working/displaying properly , other than this error on the front end? It looks to me like your new hosting environment has warning and notice reporting ON. Consider looking in your wp-config.php file for WP_DEBUG and make sure it's set to false. Depending on how much control you have on your hosting environment, you should contact your ...


1

There are couple issues I see with your code that are probably contributing to your overall problem. Try fix the issues below and see if you can move forward with it. Syntax error: // Syntax here would cause error $q = new WP_Query( array('posts_per_page' => 'posts_per_page,'post_type'=>array($post_type),'category_name'=>$category)); Fix to ...


1

EDIT I have rewritten your complete shortcode. I've tested the code from my original answer, and with your code combined, the output was a bit unexpected. Major modifications I've removed category and replaced it with a tax_query (see WP_Query). The reason is, a tax_query can be used for build-in categories and for custom taxonomies, and custom ...


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 ...



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