Erreurs lors du passage en corbeille des éléments

More
1 year 1 week ago - 1 year 6 days 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: 1 year 6 days ago by ggppdk.

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

More
1 year 1 week 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 review. Thanks!

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

More
1 year 1 week 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
1 year 6 days ago - 1 year 6 days ago #68278 by ggppdk
Hello

I have made a fix for this

But 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);
            }
        }
    }


-- 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 review. Thanks!
Last edit: 1 year 6 days ago by ggppdk.

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

More
1 year 6 days 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
1 year 6 days 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:
$result = $dispatcher->trigger($this->event_change_state, array('com_content.article', (array) $id, $jm_state));

and --before-- the above line add:
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 review. Thanks!

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

More
1 year 6 days ago #68290 by pharweb
Sorry .... fix not fonctionnal in 3.1.1

Same things after applied fix !

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

More
1 year 6 days ago #68291 by ggppdk
Hello

then try patching the bogus JFBConnect plugin:

Replacing
JModelLegacy::addIncludePath(JPATH_SITE . '/components/com_content/models');
with
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 review. Thanks!

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

More
1 year 6 days ago #68293 by pharweb
Sorry, it still does not work !

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

Moderators: vistamediajoomlacornerggppdk
© 2018 Flexicontent. All Rights Reserved.