• how do i remove php warning on my wordpress site?
    i’ve tried searching on google but none of them working

    i’m using wordpress 4.5.3

    thanks

Viewing 7 replies - 1 through 7 (of 7 total)
  • How to remove it dpeneds entirely on what the warning actually is.

    So what does the warning say, or can you point us towards the page that shows the warning?

    Thread Starter jeffreytanuwidjaja

    (@jeffreytanuwidjaja)

    it is from plugin called insert pages
    Warning: Creating default object from empty value in /home/xxxx/public_html/wp-content/plugins/insert-pages/insert-pages.php on line 361

    In that case, you should either post in the support forum for that plugin so the author can see the issue:

    https://wordpress.org/support/plugin/insert-pages

    Or, you can disable the plugin and use soemthing else.

    Thread Starter jeffreytanuwidjaja

    (@jeffreytanuwidjaja)

    i understand, i’ve already reported to plugin author, but i want to hide the warning massage first until plugin author fix it somehow

    Borge

    (@joeborge0914)

    You can set in php.ini in home directory should you have any access to it.

    display_errors = Off

    Thread Starter jeffreytanuwidjaja

    (@jeffreytanuwidjaja)

    I don’t have access to php.ini
    Do you another solution?

    Borge

    (@joeborge0914)

    Do it with .htaccess in public_html

    # supress php errors
    php_flag display_startup_errors off
    php_flag display_errors off
    php_flag html_errors off
    php_value docref_root 0
    php_value docref_ext 0

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘how to disable PHP Warning in wordpress?’ is closed to new replies.