WordPress: Getting Error in Function PHP After Debut set true

Code with C | Programming: Projects & Source Codes Forums PHP WordPress WordPress: Getting Error in Function PHP After Debut set true

This topic contains 3 replies, has 1 voice, and was last updated by  SapnaVishwas 2 years, 7 months ago.

  • Author
    Posts
  • #10769

    I’m getting error in my theme after set debug true can any body help me to resolve them

    Here is my function.php from line 386 to 419

  • #10770

    ShikhaTan
    Member

    You should try to buffer output first. as being a wp theme, headers are already sent, more exactly when u use update_option function.

    try:

    still, I didn’t understood what you want to achieve with this function. GL.

  • #10771

    Abhey
    Member

    well, this is quite simple to explain :

    in this section :

    you have a header() function , which is being called at some point in the script , the problem here is :

    a header has already been sent, hence the warning …

    If you want to clear the errors, either suppress them , or move the code to the top of the php file BEFORE any output is generated

  • #10772

    SapnaVishwas
    Member

    Script and html not allow in admin panel that because of sanitization
    here is script to work

You must be logged in to reply to this topic.