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
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
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 ?
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!
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 ?
Max, please, respond to my emails too🙂 and send me the link for the newest packages.
Sincerely,
Elita
Hi Max,
Will the CF6 with php-8 support work in Joomla4?
Thanks
Ronn
it does
Max
ChronoForms developer...
Did you try ChronoMyAdmin for managing your Joomla database tables ?
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!
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.
Thank you so much @webbusteruk! Man, I really appreciate you replying so fast -- I'll get right on this!
@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!!!