Error 1146

More
3 years 9 months ago #79081 by Toots
Replied by Toots on topic Error 1146
For your information, i select artcile and use change status.
When i do it for multiple articles, i've same error and it delete on artcile only.

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

More
3 years 9 months ago #79082 by ggppdk
Replied by ggppdk on topic Error 1146
Hello

The failure is inside the "opengraph" content plugin.

When we change state we trigger the event:
onContentChangeState

And the "opengraph" content plugin on "receiving" the event onContentChangeState is loading
- the frontend Joomla article model instead of loading the backend model, so it fails to execute properly.

I am looking at this some more
I will post back again


-- 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
3 years 9 months ago #79083 by ggppdk
Replied by ggppdk on topic Error 1146
Code:
public function onContentChangeState($context, $pks, $value) { if($context == 'com_content.article') { JModelLegacy::addIncludePath(JPATH_SITE . '/components/com_content/models'); $contentModel = JModelLegacy::getInstance('Article', 'ContentModel'); foreach($pks as $pk) { $article = $contentModel->getItem($pk); $this->tryAutoPublish($article, $value); } }

The plugin is indeed loading the frontend article model
which seems wrong to do in backend,
because Joomla frontend article model is designed to work only in frontend.


-- 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
3 years 9 months ago #79084 by ggppdk
Replied by ggppdk on topic Error 1146
Hello

i have disabled the specific plugin
and changing state works now

you can contact the author of the plugin with the text of my previous 2 answers
if author of the plugin has a suggestion i would like to hear it

Regards


-- 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
3 years 9 months ago #79085 by Toots
Replied by Toots on topic Error 1146
Your response and quick actions are highly pleasurable. Thank you, I await your second feedback.

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

More
3 years 9 months ago #79086 by Toots
Replied by Toots on topic Error 1146
I didn't even have time to answer :) Thank you;)

Ok, opengraph must have been installed by another extension but i don't know which spas yet. I will take a closer look.

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

Moderators: vistamediajoomlacornerggppdk
Time to create page: 0.278 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