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.
Please tell me how to resolve.
Joomla version 3.9.25
PHP version 7.4.13
/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);
}
}
//
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.
Unfortunally, Convert Forms can't read, insert, update or delete records on your SQL tables. You have to use a personal PHP code to do that...
Good luck!
Max released a Joomla 4 version of CFv7 a few days ago - please check his post in News.
Bob
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 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.
As you pointed out, ConvertForms requires embedding php code to write to and read from database tables, but the Joomla API makes it easy to embed with php code.
ChronoForms does not require PHP to read or save data to database as ConvertForms does, also ChronoForms v8 is much easier to use than v7 and does not need any code fixes
