Editing articles from frontend causes "0 __clone method called on non-object " error

More
5 years 3 months ago #76958 by TietoMajakka
Hello,

We updated a lot of parts on our website recently. One of these parts was updating flexicontent from version 3.2.1.12 to 3.3.1.5. This however led to the error in question when trying to save an article after editing it in the frontend. Creating a new article works fine, and editing works in the backend. Here's what Joomla's debugger has to say about the error:

0 __clone method called on non-object
/home/kehitys/public_html/plugins/system/flexisystem/flexisystem.php:2099

Call stack
# Function Location
1 () JROOT/plugins/system/flexisystem/flexisystem.php:2099
2 plgSystemFlexisystem->onContentPrepareForm() JROOT/libraries/joomla/event/event.php:70
3 JEvent->update() JROOT/libraries/joomla/event/dispatcher.php:160
4 JEventDispatcher->trigger() JROOT/libraries/src/MVC/Model/FormModel.php:321
5 Joomla\CMS\MVC\Model\FormModel->preprocessForm() JROOT/administrator/components/com_content/models/article.php:847
6 ContentModelArticle->preprocessForm() JROOT/components/com_content/models/form.php:215
7 ContentModelForm->preprocessForm() JROOT/libraries/src/MVC/Model/FormModel.php:242
8 Joomla\CMS\MVC\Model\FormModel->loadForm() JROOT/administrator/components/com_content/models/article.php:377
9 ContentModelArticle->getForm() JROOT/libraries/src/MVC/Controller/FormController.php:695
10 Joomla\CMS\MVC\Controller\FormController->save() JROOT/components/com_content/controllers/article.php:355
11 ContentControllerArticle->save() JROOT/libraries/src/MVC/Controller/BaseController.php:710
12 Joomla\CMS\MVC\Controller\BaseController->execute() JROOT/components/com_content/content.php:43
13 require_once() JROOT/libraries/src/Component/ComponentHelper.php:402
14 Joomla\CMS\Component\ComponentHelper::executeComponent() JROOT/libraries/src/Component/ComponentHelper.php:377
15 Joomla\CMS\Component\ComponentHelper::renderComponent() JROOT/libraries/src/Application/SiteApplication.php:194
16 Joomla\CMS\Application\SiteApplication->dispatch() JROOT/libraries/src/Application/SiteApplication.php:233
17 Joomla\CMS\Application\SiteApplication->doExecute() JROOT/libraries/src/Application/CMSApplication.php:196
18 Joomla\CMS\Application\CMSApplication->execute() JROOT/index.php:49

We are not the original developers of the site, and are still very much new to Joomla and Flexicontent. We would greatly appreciate any help in this matter.

Please Log in or Create an account to join the conversation.

More
5 years 3 months ago #76959 by ggppdk
Hello

i think i remember fixing this

here is 3.3.1.6-hotfix branch, please use install via URL to apply it
github.com/FLEXIcontent/flexicontent-cck/archive/3.3.1.x.zip


List of changes in it
github.com/FLEXIcontent/flexicontent-cck...e/v3.3.1.5...3.3.1.x


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star...

Please Log in or Create an account to join the conversation.

More
5 years 3 months ago #76960 by TietoMajakka
Hey,

Thanks for the help. Unfortunately this didn't fix our problem. We still get the same error, although now the error is in a different line:

0 __clone method called on non-object
/home/kehitys/public_html/plugins/system/flexisystem/flexisystem.php:2103

Rest of the error message is same.

Please Log in or Create an account to join the conversation.

More
5 years 3 months ago #76961 by ggppdk
Hello

ok this error, would occur if loading the item fails

does the frontend editor have permission to view the item ?
are you trying to edit the item via Joomla article form , or via Flexicontent edit form ?


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star...

Please Log in or Create an account to join the conversation.

More
5 years 3 months ago #76962 by TietoMajakka
Hello,

The frontend editor should have the right permissions. At least it has worked before. We are trying to edit using Joomla article form. Where would we find the option to change it to the flexicontent form to test it with that?

Please Log in or Create an account to join the conversation.

More
5 years 3 months ago - 5 years 3 months ago #76967 by ggppdk
Hello

in any case this is a bug
i am asking if user has the view access level for the item, so that i can fix it locally without asking access to the website

but it seems i will need access to the website to be able to fix this (super admin)
and plus a frontend account (username and password) that shows the issue

(you may send me a PM (private message) with access)


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star...
Last edit: 5 years 3 months ago by ggppdk.

Please Log in or Create an account to join the conversation.

Moderators: vistamediajoomlacornerggppdk
Time to create page: 0.373 seconds
Save
Cookies user preferences
We use cookies to ensure you to get the best experience on our website. If you decline the use of cookies, this website may not function as expected.
Accept all
Decline all
Essential
These cookies are needed to make the website work correctly. You can not disable them.
Display
Accept
Analytics
Tools used to analyze the data to measure the effectiveness of a website and to understand how it works.
Google Analytics
Accept
Decline