Hi,
I've a bug within your component and flexicontent
Please correct this !!
Unable to delete correctly articles in flexicontent
The dev of Flexicontent says that its error in 3rd party plugin:
plugins/opengraph/content/content.php
The deletion is a changing of state so we trigger the change event
Please report this bug to JFBConnect (we have made a workaround but they should fix this)
In file
plugins/opengraph/content/content.php
JPATH_SITE is used instead of correct JPATH_BASE
thus - IF- the backend folder has not been added already to the search path
then the frontend Article model will be loaded at backend
see in the following code that JPATH_SITE is used even when we are at BACKEND
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);
}
}
}