Frontend Editor not saving my changes - Forum | JoomShaper
Staff replied SP Page Builder

Frontend Editor not saving my changes

Asked by Deborah A Diamanti 3 years ago Last activity 3 years ago

Hi,
The frontend editor is not saving my changes. I press Save and it says Page Successfully Saved, but when I look at the page in the main editor it is not saved. This has been happening to me all of the time now.

Can you pls help me with a fix for this?

Thank you.

4 replies

Robert Stelle

Hi Deborah,
i had the same problems with pagebuilder 3.8.9 after updating to Joomla 4.3.0.

Here's a quick fix until maybe an update comes along:

Open the file: /administrator/components/com_sppagebuilder/models/page.php

On line 121 add:

if(empty($data["catid"])) $data["catid"] = 0;

Save the file and replace it on your server.

Regards, Robert

Deborah A Diamanti Asked this

Hi, I did this but now get this error

syntax error, unexpected token "if", expecting "function" or "const"

So I uploaded the original page.php file back.

Can you figure out what I did wrong? Maybe I inserted it in the wrong place. In my html editor this is what is on line 117 to 121. Line 121 only has } so I inserted the code right after that.

$data['created_by'] = $this->checkExistingUser($data['created_by']);

    parent::save($data);

    return true;
}

    Thanks so much for your help. Looking forward to hearing back from you.

    Deb
Robert Stelle

Hi Deb,
im using SP Pagebuilder 3.8.9 due to the missing backend editor.
Can it be that you are using SP Pagebuilder 4.x ? I tested saving in 4.0.10 for you. Everything works fine here.
(my configuration for the test was -> SP Pagebuilder 4.0.10 / Joomla 4.3.1 / PHP 8.1.4)

this is the original code of 3.8.9:

   if (!$data['id']) {
        $data['created_by'] = $this->checkExistingUser($data['created_by']);
    }

----> insert here

         parent::save($data);

    return true;
}

Above of "parent::save($data);"

Regards, Robert

Mehtaz Afsana Borsha Staff

Hi

Thanks for contacting us. Is this working now?

-Regards.

Log in to reply.