Empty Needl?

Empty Needl?
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #25200
    Reply to: Blackoot Lite Support
    finstudios
    Participant

    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.

    Thanks
    Christian

    Attachments:
    You must be logged in to view attached files.
    #25203
    Reply to: Empty Needl?
    iceable
    Keymaster
    Support
    Happy with my help?
    Buy me a beer!

    Hi,

    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
    (ref: https://wordpress.org/support/article/debugging-in-wordpress/)
    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.

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.

256 bit SSL. 100% secure transactions and data encryption
PayPal Verified
Secured by PayPal
Secure Credit Card payments powered by Stripe