Erreurs lors du passage en corbeille des éléments

More
7 years 4 months ago - 7 years 4 months ago #68241 by pharweb
Bonjour,

Plusieurs soucis liés à l'effacement des articles , que ce soit en version 3.1.1, ou 3.2.0

Impossible de supprimer plusieurs éléments, en passant par les cases à cocher et le bouton corbeille en haut :
Une erreur s'est produite 0 Call to undefined method JApplicationAdministrator::getParams()

Et un seul article est supprimé, pas l'ensemble des articles cochés

Même erreur si sélection d'un seul article

De plus ces articles supprimés ne passent pas en corbeille, ils disparaissent directement ?

Et encore plus étrange, en frontend pour la personne qui les a créés, ils apparaissent toujours !!

Et si l'on utilise la case publication de l'article en lui même, avec la petite icone dans la colonne statut, erreur aussi :
Error status: 500 , Error text: Internal Server Error
Et une icône de chargement tourne sans cesse ... actualisation de la page..l’élément disparait dans le cas de la mise en corbeille

Mais idem, toujours là en front pour l'éditeur de l'élément , et n'apparait pas dans la corbeille, directement supprimé

Merci pour votre aide !
Last edit: 7 years 4 months ago by ggppdk.

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

More
7 years 4 months ago #68243 by ggppdk
Hello

please send me a PM with super admin access to the website that has v3.2.0 beta
and give me steps on how to replicate the issue


-- 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
7 years 4 months ago #68245 by pharweb
You have already access !!
Same site that other post for url redirection joomla/flexicontent ... :)

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

More
7 years 4 months ago - 7 years 4 months ago #68278 by ggppdk
Hello

I have made a fix for this

But its error in 3rd party plugin:
Code:
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
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); } } }


-- 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: 7 years 4 months ago by ggppdk.

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

More
7 years 4 months ago #68279 by pharweb
Thanks !

I open a post about this in forum of JFBConnect

Can you explain the fix, for my online site ? Or send me the modified file

Thanks for your great support ...

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

More
7 years 4 months ago #68280 by ggppdk
Hello

Yes, fix is easy to apply in FLEXIcontent v3.1.1
(not to way for v3.2.0 release)

edit file:
administrator/components/com_flexicontent/models/parentitemclass.php
find line:
Code:
$result = $dispatcher->trigger($this->event_change_state, array('com_content.article', (array) $id, $jm_state));

and --before-- the above line add:
Code:
JModelLegacy::addIncludePath(JPATH_BASE . '/components/com_content/models');


-- 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.

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