1. PROMO Subscribe our All Access Pass @ 75% OFF & access all our 16+ premium Divi extensions: Divi Block Pro, Carousel Toolkit, etc.LEARN MORE
Dismiss Notice
NEW Divi.Help Pro Carousel AI Toolkit - Magically turn your Divi design into carousel, simply by using our online toolkit. No plugins needed. Now it works with Divi 5 as well!Try our carousel AI toolkit
BEST Divi Block - A revolutionary drag & drop tool to easily mix & match 960+ premade blocks (Light & Dark) to kick start your Divi site design. Special module designs are included as well. Also newly added AI generator & color. Now it works with Divi 5 as well!
Learn More About Divi BlockFree Version ~ 340+ Free Blocks

Error in DIVI THEME: se of undefined constant ‘WP_POST_REVISIONS’ - assumed '‘WP_POST_REVISIONS’' (

Discussion in 'Free Divi Community Forum' started by Roberto Sandulli, Sep 6, 2021.

  1. Roberto Sandulli

    Roberto Sandulli New Member

    Hello!
    I was not able to log in Wordpress due to an error in DIVI theme.
    I got this message when log in: Cookies are blocked due to unexpected output.

    I changed the name of file theme and was able to log in. so the error is somewhere in the Theme.
    The error log is:
    HP Warning: Use of undefined constant ‘WP_POST_REVISIONS’ - assumed '‘WP_POST_REVISIONS’' (this will throw an Error in a future version of PHP) in /vvccv/wew/public_html/wp-content/themes/Divi-child/functions.php on line 616

    With this error the main page gets blank... I don't know how to fix it...

    I tried to change quotes from curve to straight. and I looked at the code trying to find a space before <?php
    (as other users said in other forums...)

    But nothing of these actions worked...

    Any ideas or suggestions?
    Thanks in advance for the support
     
    1. PRO MEMBER PERKS Divi Block Pro - Premade card carousel design for your Divi site without using any plugins:View Demo
  2. Divi.Help

    Divi.Help Administrator
    Staff Member

    It seems like you're using child theme & the error is coming from your child theme functions.php.

    To confirm, try to switch back to parent Divi theme & see if it works.

    If it works, then you will need to look for line 616 at your child theme functions.php as per what you mentioned & remove the the problematic code.