Frontend Editor Not Saving My Changes - Question | JoomShaper
Black Friday sale is live with flat 50% OFF. Sale ends soon! Grab your deal now!

Frontend Editor Not Saving My Changes

DD

Deborah A Diamanti

SP Page Builder 2 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.

0
4 Answers
RS
Robert Stelle
Accepted Answer
2 years ago #115387

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

0
DD
Deborah A Diamanti
Accepted Answer
2 years ago #115500

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
0
RS
Robert Stelle
Accepted Answer
2 years ago #115567

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

0
Mehtaz Afsana Borsha
Mehtaz Afsana Borsha
Accepted Answer
Support Agent 2 years ago #115845

Hi

Thanks for contacting us. Is this working now?

-Regards.

0