Title: php warning in function.php
Last modified: October 26, 2023

---

# php warning in function.php

 *  Resolved [Ali Hafizi](https://wordpress.org/support/users/powerelec/)
 * (@powerelec)
 * [2 years, 7 months ago](https://wordpress.org/support/topic/php-warning-in-function-php/)
 * 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](https://wordpress.org/support/users/macmanx/)
 * (@macmanx)
 * [2 years, 7 months ago](https://wordpress.org/support/topic/php-warning-in-function-php/#post-17154305)
 * 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](https://wordpress.org/plugins/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](https://wordpress.org/support/article/faq-troubleshooting/#how-to-deactivate-all-plugins-when-not-able-to-access-the-administrative-menus)(
   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](https://wordpress.org/support/article/ftp-clients/),
   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](https://wordpress.org/support/users/powerelec/)
 * (@powerelec)
 * [2 years, 7 months ago](https://wordpress.org/support/topic/php-warning-in-function-php/#post-17155090)
 * Hi [@macmanx](https://wordpress.org/support/users/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.

## Tags

 * [function](https://wordpress.org/support/topic-tag/function/)
 * [warning](https://wordpress.org/support/topic-tag/warning/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 2 replies
 * 2 participants
 * Last reply from: [Ali Hafizi](https://wordpress.org/support/users/powerelec/)
 * Last activity: [2 years, 7 months ago](https://wordpress.org/support/topic/php-warning-in-function-php/#post-17155090)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
