ChronoEngine.com homepage

Forums

Please write a review for the extension you are using on the Joomla extensions directory before posting a new question as we are being spammed by many negative reviews.

Thank you for your support!

ChronoForms6 (CF6) works now with PHP 8

K
kgw posted Feb 14, 2023 at 14:26
Hello!
I have now managed to get Chronoforms6 (CF6) working under PHP8.
For this I have changed 2 files:
libraries\cegcore2\libs\helper.php
libraries\cegcore2\gcloader.php

In the file libraries\cegcore2\libs\helper.php I changed the following:
in the function __construct...:
&$this->view = $view; changed to $this->view = $view;
&$this->_vars = $view->_vars; changed to $this->_vars = $view->_vars;
&$this->data = $view->data; modified to $this->data = $view->data;


In the libraries\cegcore2\gcloader.php file, I changed the following:
// if(get_magic_quotes_gpc()){ // commented out
function stripslashes_gpc(&$value){
$value = stripslashes($value);
}
array_walk_recursive($_GET, 'stripslashes_gpc');
array_walk_recursive($_POST, 'stripslashes_gpc');
array_walk_recursive($_COOKIE, 'stripslashes_gpc');
array_walk_recursive($_REQUEST, 'stripslashes_gpc');
// } // commented out


I don't know if this introduces a security risk, though. Maybe the PHP professionals here could give their opinion on this, please.

Thanks a lot
G
gix.vax posted Feb 17, 2023 at 23:37
Ask Max that have a working CF6 version (second release i think)
Finisched that give us CC6 too

read this
https://www.chronoengine.com/forums/topics/view/109805/roadmap-to-cf6-cc6-in-jooomla-4-and-php-8

here the cf6
(not for production!)
https://www.chronoengine.com/packages2.zip
Max_admin posted Feb 18, 2023 at 16:18
Answer
We have a more recent update, please use the contact page to get the link
Max
ChronoForms developer...
Did you try ChronoMyAdmin for managing your Joomla database tables ?
L
LegendsDigital posted Mar 23, 2023 at 16:42
Hey there, Max

First, we're so very glad that you've been working so hard on this -- thank you!
Not sure if you saw it or received it, but we messaged you via the contact page to get the link (for ChronoForms6 that works with PHP 8). We yet haven't gotten a response, so posting here to see if there's another way we can get the file(s).

(Will also send another message via the contact page, just to be sure)

Have a GREAT day, and hope to hear from you soon!
Max_admin posted Mar 26, 2023 at 15:06
Hi, I have replied to your message with a link to the installer!
Max
ChronoForms developer...
Did you try ChronoMyAdmin for managing your Joomla database tables ?
E
Elita posted Mar 27, 2023 at 06:38
Max, please, respond to my emails too🙂 and send me the link for the newest packages.
Sincerely,
Elita
R
Ronn posted Mar 27, 2023 at 11:49
Hi Max,

Will the CF6 with php-8 support work in Joomla4?

Thanks
Ronn
Max_admin posted Apr 2, 2023 at 20:19
it does
Max
ChronoForms developer...
Did you try ChronoMyAdmin for managing your Joomla database tables ?
W
webbusteruk posted Apr 14, 2023 at 17:05
Just to keep a track here of the current errors we are having with the new CC6 (J4/PHP8 version).


    - Some connections are now throwing this error: 0 Call to undefined function rl() when trying to access it in the backend.

    - Dynamic actions (eg reload dropdown field after selecting another dropdown field) does not work.

    - Task buttons are directing to ?chronoform=alias instead of ?conn=alias, which results in "Form not published" error.

    - If CF6 is not enabled, CC6 will direct to www.domain.com/component/chronoforms6/ which results in Component Not Found error.

Btw Max, just to let you know we can't seem to create a new topic in this forum.
L
LegendsDigital posted Apr 16, 2023 at 22:44
Hey there, Max! Just wanted to chime in since I'm testing CC6 this weekend on a staging site/test migration from Joomla 3 to Joomla 4.
I installed the latest version that you emailed to us.

First, I've tested this both ways, upgrading prior to migration to J4 and after.
In each case, I've gotten multiple 500 errors, and I've isolated it down to CC6. So, the extension we love is currently (temporarily) holding the site hostage.
(Lol -- I'm sure this is a simple fix, but I don't know how to do it myself.)

Here is the message (in both Firefox and Chrome):

Attempted to call an undefined method named "isAdmin" of class "Joomla\CMS\Application\SiteApplication".
(Firefox message)

Call to undefined method Joomla\CMS\Application\SiteApplication::isAdmin()
(Chrome message)


The file that triggering these errors is:
/plugins/system/chronoengine_gcore2/chronoengine_gcore2.php


So far, the errors have pointed out Line 17 and Line 30 in that file. I could get past the first error (Line 17) by changing

if ($JApplication->isAdmin()) {

to

if ($JApplication->isClient(‘admin’)) {


but Line 30 is different. I'm not a hard-core coder, so I don't want to do any major tweaking on your great product. Also, there may be more places that will/would trigger this error, but we haven't been able to proceed past this point.

Any help or guidance you can provide would be greatly appreciated!
W
webbusteruk posted Apr 16, 2023 at 23:19
2 Likes
The error 500s are because the old CC6 is still enabled, and you've just installed the new CC6 over the old one.

You need to uninstall/disable the old CC6 for it to work (ChronoengineGcore2 is the one that you need to disable, but there's no point keeping the old CC6). Go to Extensions > Manage > Manage. Type "chrono" in the search box. Disable/uninstall any of the plugins that are older than 2020. You should only have "ChronoConnectivity6" (Jan 2023), "ChronoForms6" (Dec 2022), and "ChronoForms6.2 Package" (Jan 2023) enabled. Anything else can be disabled/uninstalled.

Beware though, if you uninstall the old CC6 before you install the new CC6 (ie leaving you with no CC6 at that point), you will lose ALL your existing connections. Make sure to make a backup first before uninstalling the old CC6.
L
LegendsDigital posted Apr 16, 2023 at 23:56
Thank you so much @webbusteruk! Man, I really appreciate you replying so fast -- I'll get right on this!
L
LegendsDigital posted Apr 17, 2023 at 01:38
@webbusteruk That worked and I just had to come back to say THANK YOU again! I deeply appreciate you taking the time to reach out like you did. You have a really great, generous spirit, and you honestly made my entire weekend and upcoming week. I sincerely hope that all the good you put out there comes back to you multiplied a million times over...!

I already told Max how much we appreciate his hard work, and between the both of you -- *whew* -- you all are just the BEST! Have an awesome week!!!
You need to login to be able to post a reply.

2Checkout.com

2CheckOut.com Inc. (Ohio, USA) is an authorized retailer for goods and services provided by ChronoEngine.com