FATAL ERROR: WP complains about redeclaration [closed]

Wrap your function with !function_exists() to avoid a redeclare error. if( ! function_exists(‘FAvideoid’) ) : function FAvideoid() { return $wpdb->get_var( “SELECT ‘video_id’ FROM $wpdb->ytvideos ORDER BY RAND() LIMIT 1;”); } endif; Or to reduce the code from being imported more than once: include_once “FA-db.php”; include_once “FA-admin.php”; include_once “FA-ad.php”; But probably the best route is to … Read more

Directing to functions.php the correct way

If you ‘have’ to do it this way, you should add the following line to the top of your above your include functions line: require(‘/path/to/yourdomain.com/httpdocs/wp-blog-header.php’); global $wpdb; // In case you need DB calls also @milo is correct though and you should think of a better way of doing this… Alternatively, you could look at … Read more

Why functions metaboxes is causing White Screen in Admin [closed]

Finally I found the solution in codex…. Interpreting the Error Message: If the error message states: Warning: Cannot modify header information – headers already sent by (output started at /path/blog/wp-config.php:34) in /path/blog/wp-login.php on line 42, then the problem is at line #34 of wp-config.php, not line #42 of wp-login.php. In this scenario, line #42 of … Read more

Fatal error: Call to undefined function wp_cache_get after update attempt

I think W3 Total Cache or any Cache related plugin is still activate in your site. Try to de-active all plugins manually. Using Database Open Phpmyadmin Database of the website. In the table wp_options, under the option_name column (field) find the active_plugins row. Change the option_value field to: a:0:{} Using FTP or SSH In case … Read more