- This topic has 1 reply, 2 voices, and was last updated 4 months ago by .
- You must be logged in to reply to this topic.
For some reason i am suddenly getting this error message that points at the functions.php …
Warning: strpos(): Empty needle in /home/hdpbnl10z7ez/public_html/wp-content/themes/blackoot-lite/functions.php on line 249
Any idea on how to rid my site of this? You can see it mid way down on the homepage.
If this just started to show up and you haven’t made any change, I would suspect your host made some change to your PHP configuration (maybe updated to a new version of PHP?).
This is a PHP warning, not quite a critical error, but something to draw developpers attention to double check their code in case something may be wrong. We will have a closer look at this function in the theme and see if it needs additional validation.
The bigger issue here however is that it shows on the front-end of your site, which should never happen.
This is usually due to PHP settings on your server. PHP may be set to send such message warning to logs, or suppress them completely, or display them this way on the front end (but the later option should never be used on a production server!)
In some cases, you can also control this with the WP_DEBUG constant in wp-config.php
WP_DEBUG should usually be set to false on a production site. If there is a good reason to set it to true, then WP_DEBUG_DISPLAY should be false.
I suggest you review this and/or your php config if you know how and have access to it.
If you don’t, you should contact your hosting support and ask them to either disable PHP error_reporting or at least to direct it to logs instead of the front end.
IceableThemes has been crafting, supporting and updating Premium WordPress Themes since 2013.
We're here to help you get the best our of your site, not to make a quick sale. Our themes were built to last and we're here to stay in the long run.
Any question? Contact us and we'll be glad to help. Need assistance using one of our themes? Hit our support forums and we'll get your issue sorted in no time.