kali php problem [closed]

The use of curly braces ({}) in accessing an array index or string offset was deprecated in PHP 7.4 and later versions. You need to use square brackets ([]) instead. Update the code on line 82 (or there about) in call.php to fix the offending use of {}.

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