PHP Fatal error: Call to undefined function download_url()
You have to include /path/to/wordpress/wp-admin/includes/file.php this file also, as the media.php uses the function download_url() from that file.
You have to include /path/to/wordpress/wp-admin/includes/file.php this file also, as the media.php uses the function download_url() from that file.
The error isn’t actually caused by your PHP version (PHP 4 constructors won’t be removed until PHP 7) – it’s a warning produced by WordPress in preparation for this. Each repetition of the error represents a plugin using the outdated code. Until your plugins’ authors update them, you can run the following shell command on … Read more
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. And you should probably not … Read more
Line 58 as the error indicates is this line: $parent_term = get_term_by(‘ID’,$term_id, $taxonomy); $term_parents = $delimiter.”<a href=\””.get_term_link($parent_term->slug,$taxonomy).”\” title=\””. $parent_term->name .”\” >”. $parent_term->name .”</a>” .$child_terms; And our error is: Object of class WP_Error could not be converted to string Which means that one of those things being appended is not a “string”, but actually a WP_Error … Read more
I’ve had this problem. I contacted my hosting provider and they told me it happened because I exceeded maximum queries per hour limit and therefore access to the database was temporarily locked, so WP couldn’t read from it.
“Technically” it’s just a PHP warning and not an error, and you should not have warnings enabled on production servers. You can disable PHP from logging warnings and it will still log errors to the error log file. You can disable PHP warnings by setting it in a custom php.ini file on the server (all … Read more
I don’t know how to move the notices to the bottom or if that’s possible at all. To disable the debug mode in wp-admin write in wp-config.php: define( ‘WP_DEBUG’, FALSE === strpos( $_SERVER[‘REQUEST_URI’], ‘/wp-admin/’ ) ); Untested: You could try to enable warnings in admin with: // happens early in wp-admin/admin.php add_filter( ‘secure_auth_redirect’, ‘wpse_67728_error_warnings’ ); … Read more
it might me entirely different solution that i am providing but it solved the problem for me. I followed these steps: Open the user that is getting error. (WordPress admin menu > users > your profile) Changed the setting of “Disable the visual editor when writing” and saved the settings Again disabled this feature and … Read more
335 is not an error message or code, it is the new post’s ID that is retuned, so in short, the new post you have inserted was given the ID of 335 UPDATE wp_insert_post() already returns a WP_Error object on failure, so simply var_dump( $result ); would give you a specific error message on failure … Read more
I have the same problem before. I put WP_POST_REVISIONS in the end of wp-config.php file and it didn’t work correctly. You should put your codes before defining ABSPATH and before this line: /* That’s all, stop editing! Happy blogging. */ it must be something like in the following: define( ‘WP_POST_REVISIONS’, 6 ); /* That’s all, … Read more