1. PROMO Upgrade to Pro Membership @ $99 / Lifetime & access all our 16+ premium Divi extensions: Divi Block, 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.
Learn More About Divi BlockFree Version ~ 340+ Free Blocks

Divi Visual Builder doesn't save a page while using custom code

Discussion in 'Free Divi Community Forum' started by PixelPunch, Apr 14, 2025.

  1. PixelPunch

    PixelPunch New Member

    Hi
    I am using the following custom code to redirect a logged in user (with editing rights) after editing a page.

    The redirect is to the MemberPress account page. The code works as the user is redirected to the MemberPress account page and not the default WP account page. But when the user tries to save an edit on the page, then he gets the standard 'can't save' message.
    If I disable the code snippet, then the save is successful.
    I have validated the code and there are no syntax errors.
    So, obviously this code is the issue. I looked at the browser console and found an error, but this looks more like a generic issue than something related to this code snippet. All screenshots attached.
    It will be great if someone can help with a solution. browser console error.png php code for redirection.png save failed message.png
     
    1. PRO MEMBER PERKS Divi Ultimate Header Plugin - Custom Divi Builder header on desktop + default slide in / fullscreen menu on mobile:Learn More