1

I'm using wordpress 4.0, and I get the following php warnings in my log:

PHP Warning: call_user_func_array() expects parameter 1 to be a valid callback, function 'et_add_viewport_meta' not found or invalid function name in /var/www/vhosts/mydomain.com/httpdocs/blog/wp-includes/plugin.php on line 505

I checked the plugin.php line 505, and found this line:

call_user_func_array($the_['function'], array_slice($args, 0, (int) $the_['accepted_args']));

How can I fix this, what can be the problem?

1 Answer 1

1

Check your wordpress functions.php under ~/wp-content/themes/YOURTHEMENAME/ directory.

There should be this function defined:

function et_add_viewport_meta(){
     echo '<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0" />';
}
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.