Forums

Chronoforms with Jooomla4 and PHP8

Elita- 16 Sep, 2021
Hi, to the Great CF developers!
Thank you again for this excellent product you have created!

My question is - when we can expect CF version for Joomla 4? and PHP 8? Do you have any schedule ahead?

Joomla 4 has been released for a several of weeks already - and all my Joomla pages have an announcement for that.

For now none of the CF products working on the Joomla 4.

Can I continue working with CF6 and CC6 or CF7 on Joomla 3.xx.x hoping that issues with Joomla 4 will be fixed soon?
If not, what do you suggest to do?

Regards,
Elita
Elita- 09 Oct, 2021
1 Likes
hello to ALL Chronoforms community!

It seems that Max, as far sa I know - the only developer of Chronoforms has dissapeared for almost 5 months now... Last time I heard from him was May.
So far for that there is Joomla4 and PHP8 already introduced; I would suggest all the community to join hands and help Chronoforms to live further till Max will be able to take over.
Many of Chronoengine.com members have huge (including me) projects realized with Chronoforms that is still the most poverful, user - friendly tool. I must admit that last couple of months I have been searching for similar tool - and did not find any - there is not such tool available!!!
So - my suggestion is - lets everybody make an effort to give Chronoforms to live further.

Here are my findings so far:

1. There are some minor changes (code hacks) needed (at least I found so far; still testing) to switch to PHP 8; that I will describe later;
2. Joomla 3.10.x versions are transitions from Joomla 3 to Joomla 4 - that means that it contains BOTH new and depreciated code AND will be supported for 2 more years (August 17, 2023). Til then, hope, Max will be back.
3. Joomla 4 have many major changes and needs further investigation of CF code to make it work; still hope that Max will soon take over; till then any knowledge of the CF community would be appreciated; We can post here or make another post to share our findings.

About the hacks to continue CF working on PHP8:

1. the error "Call to undefined function get_magic_quotes_gpc() "

locate folder /libraries/cegcore2

open gcloader.php

comment block (line 63-71): [pre]

if(get_magic_quotes_gpc()){
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');
}[/pre]

2. then you'll get the error "Attempt to modify property "_vars" on null"

open /libraries/cegcore2/libs/helper.php

find and comment two lines:


$this->_vars = &$view->_vars;
$this->data = &$view->data;

replace with:

$this->_vars = "";
if(isset($view->_vars ) && $view->_vars != ""){
$this->_vars = &$view->_vars;
}
$this->data = "";
if(isset($view->data ) && $view->data != ""){
$this->data = &$view->data;
}

Unfortunately after installing Connectivity you will have to perform same actions again;


3. to minimize error on view form "Attempt to modify property "_vars" on null"

open /libraries/cegcore2/libs/composer.php

find and comment line
$this->_vars = &$app->_vars;


replace with:


$this->_vars = "";
if(isset($app->_vars ) && $app->_vars != ""){
$this->_vars = &$app->_vars;

That is all i found by now.

Let you know if there is something else. [br] [br] NB! this is for CF6 and CCv6 only; however I do believe this will work for Cf7 too. [br] The only difference is that cegcore2 there is called chronog3 and is located in /plugins/system/chronog3_plg/chronog3/libs[br] [br] Please, correct me and add your findings.[br] [br] Still hope Max will join us soon!!![br] [br] Elita[br]
dsimonse 20 Sep, 2022
Hi Elita,
I'm using v5 of ChronoForm and ChornoConnectivity, so it seems as if it a bit different for me when upgrading to php8.
The first step took me a step further so I can see the form at frontend.
The second step is not available
The third step likewise not available.
I get
"Call to undefined function GCore\Helpers\create_function() /storage/content/25/4000325/biljett.rojteatern.nu/public_html/libraries/cegcore/helpers/html.php:59"
when openinh ChronoForm v5 at backend
The lines there read:[pre]public static function styles($styles = array()){
if(is_string($styles)){[br] return $styles;[br] }[br] return implode('; ', array_map(create_function('$k,$v', 'return $k.":".$v;'), array_keys($styles), array_values($styles)));[br] }[/pre]
Regards[br]Dennis
You need to login to be able to post a reply.