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.
Please tell me how to resolve.
Joomla version 3.9.25
PHP version 7.4.13
Bump - seeing this behavior as well. Any fix on the horizon?
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);
}
}
//
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.
Hi
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!
Hi hirata,
Max released a Joomla 4 version of CFv7 a few days ago - please check his post in News.
Bob
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 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.
Hi Colnem.
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.