Forums

Class GApp3 not found (Problem with 'ChronoG3_Plg' plugin)

jmgroud 27 Jun, 2021
Anglais

Hello

I use very often and for a long time the extension "Module Anywhere" and other extensions from "Regular Labs".
I just installed "ChronoForms 7" and the button to add a module in an article available on JCE gives me the following error:
[mark]
Class 'GApp3' not found[/mark]

When I deactivate the "ChronoG3_Plg" plugin, the button works and when I activate it, I get the error message.
On the "Regular Labs" forum, the problem seems to be known with ChronoForms.
What's the problem?

Thanks in advance for your explanations.
Thank you in advance for your explanations.
Jean-Marie GROUD

Translated with www.DeepL.com/Translator (free version)


Français

Bonjour

J'utilise très souvent et depuis très longtemps l'extension "Module Anywhere" et d'autres extension de "Regular Labs".
Je viens d'installer "ChronoForms 7" et le bouton d'ajout d'un module dans un article disponible sur JCE me donne une erreur suivante :

Class 'GApp3' not found

Lorsque je désactive le plugin "ChronoG3_Plg", le bouton fonctionne et lorsque je l'active, j'ai le message d'erreur.
Sur le forum de "Regular Labs", le problème semble connu avec ChronoForms.
Que se passe-t-il ?

Merci d'avance pour vos explications.
Cordialement.[br]Jean-Marie GROUD
jmgroud 02 Jul, 2021
English
Hello
I'm still stuck with the "ChronoChronoG3_Plg" plugin.
What exactly is it for and why does activating/deactivating it generate errors in other extensions?
In fact, what is the exact use of this plugin and if I leave it disabled what are the consequences?
Jean-Marie

Français
Bonjour
Je suis toujours bloqué avec le plugin "ChronoChronoG3_Plg".
A quoi sert-il exactement et pourquoi son activation/désactivation génère des erreurs dans d'autres extensions ?
En fait, quel est l'utilité exact de ce plugin et si je le laisser désactivé quelles sont les conséquences ?
Jean-Marie
jmgroud 02 Jul, 2021
English
And here is the response from the developer of the "Regular labs" extensions (I asked his permission before copying his response here in this post).

[mark]The error tells me that there is a from chronoforms being loaded/triggered that needs the GApp3 class which isn't loaded in yet.
That is an issue in whatever file does that. Nothing I can do about that.
I recommend you switch on debugging on your website. Then you can see the stacktrace of the error (what file triggers the issue, and what files before it lead to that file being loaded).[br]If you cannot get any support from the chronoforms devs on errors caused by their extension, then you should question whether you want to be using something like that your website relies on. [/mark]

I would like to have a real technical solution and have extensions that are totally independent of each other and possibly use common resources but do not change the configurations of common resources.[br]I don't know if this is the case but ChronoForms seems to modify some of the resources used by other extensions... Am I wrong?

Français
Voici la réponse du développeur des extensions de "Regular Labs" (je lui ai demandé l'autorisation de poster son avis sur ce forum)

L'erreur m'indique que le chargement/déclenchement de Chronoforms nécessite la classe GApp3 qui n'est pas encore chargée.
C'est un problème dans le fichier qui fait cela. Je ne peux rien y faire.
Je vous recommande d'activer le débogage sur votre site web. Vous pourrez alors voir la trace de l'erreur (quel fichier déclenche le problème, et quels fichiers avant lui conduisent au chargement de ce fichier).
Si vous ne pouvez pas obtenir de support de la part des développeurs de chronoforms sur les erreurs causées par leur extension, alors vous devriez vous demander si vous voulez utiliser quelque chose comme cela sur lequel votre site web repose.


J'aimerai une véritable solution technique et avoir des extensions totalement indépendantes les unes des autres qui utilisent éventuellement des ressources communes mais qui ne modifient pas les configurations des ressources communes.[br]Je ne sais pas si c'est le cas mais ChronoForms semble modifier une partie des ressources utilisées par d'autres extensions... Je me trompe ?
NickOg 09 Jul, 2021
Max - I am having the same problem. an answer really is needed.

Nck
jmgroud 10 Jul, 2021
English
Thanks Nick

For the moment, the only solution is to open a tab in my Internet browser on the plugin settings and to put it "On" or "Off" depending on the operations I perform in development in the other browser tabs:

Plugin "OFF": When I work in the edition of articles or modules with "JCE" (use of buttons).
Plugin "ON": When I want to test and see the results of the ChronoForms7 forms and lists.

Solution that works but really not pleasant.
Jean-Marie

Français
Merci Nick

Pour l'instant, la seule solution est d'ouvrir un onglet dans mon navigateur Internet sur le paramétrage du plugin et de le mettre "On" ou "Off" suivant les opérations que j'effectue en développement dans les autres onglets du navigateur :

Plugin "OFF" : Lorsque je travaille dans l'édition des articles ou des modules avec "JCE" (utilisation des boutons).
Plugin "ON" : Lorsque je désire tester et voir afficher les résultats des formulaires et listes de ChronoForms7.

Solution qui fonctionne mais vraiment pas agréable.
Jean-Marie
NickOg 10 Jul, 2021
Thanks Jean-Marie - I shall try that work round. but as you say not pleasant.

Nick
hirata 23 Jul, 2021
I am also running into the same problem.

I bought chronoform7.
After installing chronoforms 7 on Joomla, "Regular Labs --Extension Sourcerer" gives the following error and it stops working.

Error message: "Class 'GApp3' not found"

The cause seems to be the plugin "ChronoG3_Plg".
If I disable the plugin "ChronoG3_Plg", "Regular Labs --Extension Sourcerer" works fine.

I posted in the forum on March 07 2021. Please refer to the following URL.
https://bit.ly/3kNFioc
However, there is still no solution available.

I have been using "Extension Sourcerer" so far, so after all, I cannot use the purchased chronoform7.

I need a solution.
jmgroud 23 Jul, 2021
English

Hello hirata

What's strange is to have no response from the ChronoForms7 developers when the problem seems to have been known for quite some time by "Regular Labs".
When installing extensions, common resources should not be modified by the installations, right? This does not seem to be the case with ChronoForms7 but I may be wrong...
We are waiting for answers, explanations, and of course a SOLUTION!
We have a temporary solution by disabling the plugin during development but this hides a deeper problem in the programming and use of common resources.
If it's a bug, there's no problem, I accept this explanation but leaving us without any answer is weird. Why this silence?

Translated with www.DeepL.com/Translator (free version)

Français

Bonjour hirata

Ce qui est bizarre c'est de ne pas avoir de réponse de la part des développeurs de ChronoForms7 alors que le problème à l'air d'être connu depuis pas mal de temps par "Regular Labs".
Lorsqu'on installe des extensions, les ressources communes ne devraient pas être modifiées par les installations non ? Ceci ne semble pas être le cas avec ChronoForms7 mais je me trompe peut-être...
Nous attendons des réponses, des explications, et bien entendu UNE SOLUTION !
Nous avons une solution temporaire en désactivant le plugin pendant les développements mais ceci cache un problème plus profond dans la programmation et l'utilisation des ressources communes.
Si c'est un bug, il n'y a pas de problème, j'accepte cette explication mais nous laisser sans aucune réponse reste bizarre. Pourquoi ce mutisme ?
hirata 23 Jul, 2021
Hi, jmgroud.
Thanks for your solusion.

There are many forms. If I disable the plugin "ChronoG3_Plg" during development , these forms are not work.This is a serious problem.
Therefore, chronoform7 cannot be used.

There are other bugs in chronoform7 that I have posted on the forums, but the developers of chronoform7 haven't answered anything.

Perhaps for some reason, improvements and development of chronoforms have stopped.

I'm giving up halfway.
jmgroud 24 Jul, 2021
Anglais
​Yes, I have this problem too. Unanswered questions...
I'm starting to look into other CCKs with more support.
It would be a real shame, with a lot of time spent understanding the principles of creating lists and forms only to give up due to lack of support!

Français

Oui, j'ai aussi ce problème. Des questions sans réponse...
Je commence à me renseigner pour d'autres CCK avec une assistance plus importante.
Ce serait vraiment dommage, avec beaucoup de temps passé à comprendre les principes de création des listes et formulaires pour ensuite abandonner faute de support !
hirata 26 Jul, 2021
Hi jmgroud.

Creating input forms is not difficult, but it can be tedious, as you use basic code.
Therefore, I use such extension software.

But spending time on bugs is ridiculous.

---
After investigating this bug, it seems that there is probably a problem with the following program.

/plugins/system/chronog3_plg/chronog3_plg.php

If you change the "onAfterRender ()" of this program as follows, the error display will disappear.

/ * original code
public function onAfterRender () {
$ app = JFactory :: getApplication ();
$ doc = \ GApp3 :: document ();

$ html = $ app-> getBody ();
.
$ html = str_replace ('', $ doc-> buildMediaOutput ().'', $ html);
$ app-> setBody ($ html);
}
* /

// chaged 20210726
public function onAfterRender () {
if (class_exists ('GApp3')) {
$ app = JFactory :: getApplication ();
$ doc = \ GApp3 :: document ();
.
$ html = $ app-> getBody ();
.
$ html = str_replace ('', $ doc-> buildMediaOutput ().'', $ html);
$ app-> setBody ($ html);
}
}
//
jmgroud 26 Jul, 2021
Hello hirata

English
Yes indeed, you are right.
After this change, the error disappeared.
I don't know why and I hope this doesn't bring instability to ChronoForms...
It's a pity that it's a customer like you who has to search for an unlocking solution.
If the administrator comes on this subject, I hope he can at least validate this solution and tell us if there is a risk or not...
Thanks a lot for this solution.

Français
Oui en effet tu as raison.
Après cette modification, l'erreur a disparu.
Je ne sais pas pourquoi et j'espère que ceci n'apporte pas une instabilité au niveau de ChronoForms...
Il est dommage que ce soit un client comme toi qui soit obligé de lancer des recherches pour avoir une solution de déblocage.
Si l'administrateur vient sur ce sujet, j'espère qu'il pourra au moins valider cette solution et nous dire si il y a un risque ou pas...
Merci beaucoup pour cette solution.
hirata 10 Dec, 2021
Hi jmgroud.

This fix is a temporary fix.

There are still many bugs in chronoforms besides this issue.

Since the development of chronoforms has stopped, we cannot expect the release of a new fixed version by the developer.
The prospect of being available for Joomla4 is also hopeless.

So I looked for an extension to replace chronoforms.
As a result, I found Convert Forms.
It is already compatible with Joomla4.

I decided to migrate the forms created by chronoforms to Convert Forms.
jmgroud 10 Dec, 2021
Hello Hirata

The development of Chronoforms has stopped ? Really ? Since When ?
ChronoConnectivity too ?
😫
GreyHead 10 Dec, 2021
Hi jmgroud,

Max released a new version of CFv7 for Joomla 4 a few days ago - please see his post in News.

Bob
jmgroud 10 Dec, 2021
Hello Hirata

Yout say "I decided to migrate the forms..."
"MIGRATE" ? How ?
Thanks a lot for your response.
hirata 11 Dec, 2021
Hi GreyHead.

Thank you for the latest information.

I have purchased chronoforms7 and installed it on my site.However, the version is still 7.0.0 (May 2020) downloaded at the time of purchase and cannot be updated after that.There seems to be a bug in the update function of chronoform7 or the update server, and it is not working properly.

When I check the XML code of the update server, it says "<version>7.0.8 </version>", so it seems that the version has been updated to 7.0.8 .
I downloaded it from the update server and installed it.
I confirmed that the bug in the "ChronoG3_Plg" plugin has been fixed.

So far, chronoform7 has a lot of bugs and I haven't used it for live sites.
For the time being, I'll test it with this version.I downloaded it from the update server and installed it.
hirata 11 Dec, 2021
Hi jmgroud.

After I bought chronoform7, it wasn't available for some of my live sites due to a lot of bugs in chronoform7.
Also, as you know, chronoform6 was not available due to many bugs and frequent updates.
So now my live sites have more than 40 forms using chronoform5.
Chronoform5 has a bug and does not work as it is, but I am using it by fixing the bug.

Chronoform can embed php, Javascript, html, css in the form. This is a great feature of chronoform. I used cronoform because of this function.

Over 40 forms on my live sites incorporate my own code such as php and javascript.
There are input forms such as membership registration with multiple attributes, photo posting that requires deletion of EXIF information, and environmental household account book.

Chronoform 5 cannot be expected to be updated to Joomla 4.
Therefore, I was expecting chronoform7.
However, when I posted a bug report on the forum, there was no developer response and it was left unattended for a long time.

To overcome this situation, I searched for an extension software to replace chronoform and found ConvertForm.
This extension can incorporate php, javascript, html, css.
It's also neatly organized to make it easier to embed code.
Many examples are also available.

I heard that the latest version of Chronoform 7 was released a few days ago,so I investigated and found that the bug in the "ChronoG3_Plg" plugin was fixed.
There was no response from the developer that the bug in this post was fixed.
I'm still worried that Chronoform7 may have bugs.

Whether to move from Chronoform 5 to 7 or to ConvertForm is an annoying problem.
In any case, the transition from chronoform 5 to 7 requires a complete rewrite.
I have already purchased ConvertForm and started migrating to ConvertForm with Joomla4, so I have no intention of changing it.
GreyHead 11 Dec, 2021
Hi Hirata,

CFv7 does include an importer for CFv5 forms - though I expect that some work would be required to modify custom code, etc.

Bob
hirata 11 Dec, 2021
Hi GreyHead.

Thank you for the useful information.

Certainly, when I "restore" the backup of the form created by CFv5 to CFv7, the input fields and labels were imported.

But the style has changed.
The php code is necessary to rewrite everything.

The version of chronoform has been updated to 5,6,7 in 6 years.
One version has a short lifetime.
Each time it is updated, the form must be completely changed.
It's already been a year since the release of CFv7.
Do you know when CFv8 will be released?
Max_admin 25 Dec, 2021
Hi,

v7 does not work the same way as v5, but the PHP action is there and you can just copy paste the code, actually a php action in v5 should be imported to v7

v8 is not expected anytime soon
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
Hasan 26 Jul, 2023
Hello Max,

I was trying to convert my add resume file from Chronoform5 to Chronoform7 and it seems the following two lines are giving error :
$app = JFactory::getApplication();
$jinput = $app->input;

Following is my total code (I am trying to convert a file to blog using C7's file field):

<?php
    $app = JFactory::getApplication();
    $jinput = $app->input;    
    $fa = $jinput->files->get('filename', [], 'ARRAY');    
    $file = $this->files['filename']['path'];
    $this->data['file_name'] = $fa['name'];
    $this->data['file_type']  = $fa['type'];
    $this->data['resume'] = ""; 
    $this->data['file_data'] = file_get_contents($file);
?>

Please Help.
Thanks from Hasan
Max_admin 28 Jul, 2023
what error do you get ? and why did not you start a new topic for this ?
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
Hasan 28 Jul, 2023
Sorry, I did not mean to start a new topic just tried replying.

There shows no error just a red dot inside a bar ( i think the error message did not show up ).

Thanks.
Max_admin 30 Jul, 2023
do you have the latest v7 update installed ?
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
Hasan 01 Aug, 2023
Hello,
We had to move our site so the latest one is not installing. Please advise us on what to change for it. Also wondering if upgrading to joomla 4 would mean more changing of stuffs (is it recommended or not?).
Thanks.
Max_admin 01 Aug, 2023
you can upgrade to Joomla4 and run Chronoforms 8, that should run your code just fine and it's better than v5 or 7
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
Hasan 04 Aug, 2023
Hello Max,
Thank you very much for all your advise.
Thanks.
You need to login to be able to post a reply.