• Resolved Ali Hafizi

    (@powerelec)


    Hi,

    i recieve many warnings with this subject:

    PHP Warning: explode() expects parameter 2 to be string, object given in /home/amjadk/public_html/wp-includes/functions.php on line 1162

    PHP Warning: strstr() expects parameter 1 to be string, object given in /home/amjadk/public_html/wp-includes/functions.php on line 1144

    PHP Warning: stripos() expects parameter 1 to be string, object given in /home/amjadk/public_html/wp-includes/functions.php on line 1151

    PHP Warning: stripos() expects parameter 1 to be string, object given in /home/amjadk/public_html/wp-includes/functions.php on line 1154

    PHP Warning: strpos() expects parameter 1 to be string, object given in /home/amjadk/public_html/wp-includes/compat.php on line 441

    i dont know how to resolve it.
    the warnings are very lot.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Moderator James Huff

    (@macmanx)

    This problem may be a plugin or theme conflict. Please attempt to deactivate all plugins and switch to the default Twenty Twenty-Two theme. If the problem goes away, re-activate them one by one to identify the source of the problem.

    If you can install plugins, install Health Check. On the troubleshooting tab, you can click the button to deactivate all plugins and change the theme for you while you’re still logged in without affecting normal visitors to your site.

    If you can’t access your Dashboard, try manually resetting your plugins (no Dashboard access required). If that resolves the issue, reactivate each one individually until you find the cause.

    If that does not resolve the issue, access your server via SFTP or FTP, or a file manager in your hosting account’s control panel (consult your hosting provider’s documentation for specifics on these), navigate to /wp-content/themes/ and rename the directory of your currently active theme. Hopefully, this will force the default theme to activate and rule out a theme-specific issue (theme functions can interfere like plugins).

    Thread Starter Ali Hafizi

    (@powerelec)

    Hi @macmanx

    thanks for reply. ??
    the problem was from Lite Speed Cache plugin and after select minify css and js plugin try to minify all plugin and because it use host source a lot.

    problem resolved.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘php warning in function.php’ is closed to new replies.