Tag Info

Hot answers tagged

5

It means that the declaration of the start_lvl method in wp_bootstrap_navwalker should match the declaration of the method in Walker_Nav_Menu. It doesn't. function start_lvl( &$output, $depth ) { VS. function start_lvl( &$output, $depth = 0, $args = array() ) { Make the arguments match exactly and you should be fine.


3

prepare() takes at least 2 parameters. Most of your calls to prepare() are not needed. For example: $blogids = $wpdb->get_col($wpdb->prepare("SELECT blog_id FROM $wpdb->blogs")); In this code, if the call to $wpdb->prepare() were valid, it wouldn't do anything. The function doesn't do anything to the first parameter. It manipulates the values ...


3

You need to match the $priority you used to hook the action: remove_action( 'save_post', array( $this, 'save_box' ), 20 /* Same as add_action call */ ); http://codex.wordpress.org/Function_Reference/remove_action Make sure you take the $post_id argument in your save_box method too: function save_box( $post_id ) { ... }


3

This is a variable scope, an pure PHP, problem at heart. I didn't close it because I am assuming that mistake is in turn due to a misunderstanding of the init hook, or hooks in general perhaps, which is WordPress specific. In PHP, a global must be declared global before the first time it is used. The init hook fires very early in page load, long before ...


2

The code you posted has a major flaw*: it mixes HTML and PHP without properly setting them apart. This code chunk has a PHP function call followed by an HTML string, but since there's nothing telling the file that it should be treated as HTML, the parser says "Hey, <form isn't anything I recognize. I'm outta here!" * That nearly everyone gets hit by at ...


2

Just don’t set WP_DEBUG to TRUE. The error level is set in wp_debug_mode(), which is called in wp-settings.php before any plugins are loaded. If you leave the default values WordPress will set it to: error_reporting( E_CORE_ERROR | E_CORE_WARNING | E_COMPILE_ERROR | E_ERROR | E_WARNING | E_PARSE | E_USER_ERROR | ...


2

Deactivate flash album gallery plugin then try again may be this plugin version not match to wordpress latest version. This plugin may not be compatible with wordpress 3.8, you must wait for the new release. Nonetheless, they are just notices you can simply hide these notices by going wp-config.php and toggle WP_DEBUG to false.


2

I get this error when there are no menus defined or no menus set for the location at Appearance->Menus. When that occurs wp_nav_menu uses a page walker fallback. The fallback (default) for wp_nav_menu is wp_walker_page which uses wp_page_menu which uses wp_list_pages which uses walk_page_tree which uses Walker_Page not Walker_Nav_Menu. And apparently ...


1

If you look at the source of the page you will see this around line 122: <div class="nav-collapse collapse"> <br /> <b>Warning</b>: session_start() [<a href='function.session-start'>function.session-start</a>]: Cannot send session cookie - headers already sent by (output started at ...


1

It's not a very good practice to echo html code. Also you have errors with quotes. Correct way to do this would be: <a href="mailto:type%20email%20address%20here?subject=I%20wanted%20to%20share%20this%20post%20with%20you%20from%20<?php echo rawurlencode(get_bloginfo('name')); ?>&body=<?php echo rawurlencode(get_the_title()); ...


1

I don't know the URL of an extension-less image to test this but I'd think that the server would have to pass a content-type header. If that is the case, you should be able to look at $get['headers']['content-type'], find out what kind of image it is, and tack the appropriate extension onto $image_file_name before sending it to wp_upload_bits. You've ...


1

Check the docs. file_get_contents() and wp_remote_get() are not equivalent. file_get_contents() returns a string. wp_remote_get() returns either an array or a WP_Error object. You need to look at wp_remote_post() to see the format of that array: Array ( [headers] => Array ( [date] => Thu, 30 Sep 2010 15:16:36 GMT ...


1

One way to do this is to use the status_header filter. Adding the following to the functions.php file or your theme (or an appropriate plugin file) would do the trick: add_filter( 'status_header', 'your_status_header_function', 10, 2 ); /** * Substitutes a 202 Accepted header for 404s. * * @param string $status_header The complete status header string ...


1

so you need to correct your nonce field add a second pram nonce name, more information on WordPress codex here // wp nonce field wp_nonce_field( $action, $name, $referer, $echo ); // replace yours with below wp_nonce_field( 'ind_pricing_table_box_nonce', 'ind_pricing_nonce' ); now verify your nonce, more info here wp_verify_nonce( $nonce, $action ); // ...


1

Sounds like a server configuration problem, not a WordPress thing. You said you were using Rackspace? I don't have personal experience with Rackspace but it appears that they have some known issues with the default PHP mail() function. See: http://feedback.rackspace.com/forums/71021-product-feedback/suggestions/1873281-fully-support-php-mail-function- ...


1

use single quotes outside of the following statement, why you are getting this error because you are using double quotes for class attribute "</span><span class="meta-sep">|</span>" and also wrapping it in double quotes. replace this "</span><span class="meta-sep">|</span>" with '</span><span ...


1

Check your WooCommerce System Status to make sure there are no red entries, especially in the Pages section Test your checkout process with the console active Check your server error logs for any entries that relate to the pay page How to use the Google Chrome console : https://developers.google.com/chrome-developer-tools/docs/console How to use ...


1

isnt' it good practise to never be current with latest build, but rather one release behind, that way the plugins are more likely to be compatible (it takes time for developers to catch up with the latest WP builds)? This has been my practise, to minimize compatibility (with plugins) issues which is where 90% of your site issues will reside. If you just go ...


1

How often should Wordpress be updated? WP should always be kept up to date. You should update it as soon as possible after an update is released. What is the best way to do it? Always have a current backup - and know how to restore it if you have to (or have someone handy who can). Do you make an income from the site? If so, you can set up an exact ...


1

When $ticket_details['assigned_to']->display_name is not set, get_user_by() has returned not an object but FALSE. First test if you got an object: $user = get_user_by('id', get_post_meta( $post_id, '_responsible', true)); if ( ! is_object( $user ) ) return; $ticket_details['assigned_to'] = $user; display_name is always set if there is an user ...


1

I have encountered the same kind of issue before, as you have already noted down the problem boiled down to mysql not accepting too many connections, The solution we implemented was to apply proper caching (check how often the cache is invalidated and other caching settings) and upgrade the mysql server. As a quick fix, you could flush the connections on ...


1

Generally this happens when someone has mistakenly put index.php from a theme in the WP install folder, where it overwrites the index.php that is the main WordPress file. Download WordPress again, and take the one file, index.php from its root folder, replacing the file you now have as index.php source


1

After trying many things with permissions, I found my problem. I uses a plugin called Duplicator to move WordPress installs around from server to server, it handles changing URLS's and Paths. So in settings => Media => Store uploads in this folder it was setting the Full Filepath to my Uploads folder. I changed it to be relative wp-content/uploads ...


1

It is likely a callback function for something. My guess is that somewhere something is trying to use a function named mytheme_admin_bar_render as a callback but that function has not been defined. Something like... add_filter('something','mytheme_admin_bar_render'); ... possibly but there are many, many possibilities. grep your wp-content folder for ...


1

You were right Toscho, it is a plugin called 'better WP-Security' I did a search for '418' as suggested in the files I had backed up via ftp and found this: $bwpsmemlimit = (int) ini_get( 'memory_limit' ) //if they're locked out or banned die if ( ( $bwpsoptions['id_enabled'] == 1 ||$bwpsoptions['ll_enabled'] == 1 ) && $this->checklock( ...


1

I figured it out. Turns out that using the field name was the culprit. It appears that name and other field names like attachment, attachment_id, etc will cause WordPress to produce a 404 error. There's a whole list of reserved terms in the Codex.


1

That is the response it gives when it you have the "Intrusion Detection" or the "Login Limits" features enabled, and the plugin has intentionally blocked you. It can block you by either username or by IP address. The plugin can be configured to email somebody when a lockout occurs with the reason for that lockout. I suggest that you use this feature to ...


1

Replace that line with the following: if(!is_object($val) && !is_array($val)){ $this->p->$c = trim(stripslashes($val)); } else { $this->p->$c = $val; } This is just a temporary solution so the error will go away. All this does is check the variable to see if it's an object or an array. If it is the variable just gets saved to ...


1

Since you cannot access the WordPress Dashboard with your user account you will need to use FTP or SSH to access the wp-content/plugins directory for your site and rename the plugin folder for wp-customer-reviews. Example: wp-content/plugins/wp-customer-reviews becomes wp-content/plugins/wp-customer-reviews-broken This will disable the plugin and allow ...


1

This question was most likely down voted because the answer is in the plugin support forum. As stated by others in the comments, set default permalinks and save settings. Clear cache. Set permalink structure to what you want and save. Also, feel free to look in the database. where is permalink info stored in database?



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