\chronoforms7\chronog3\admin\extensions\chronofc\__shared\behaviors_list.php Line 210 $category not exists

Resolve a PHP error in ChronoForms where a variable is not defined.

Overview

The error occurs because the `$category` variable is null or empty at a specific line in the code, causing the page to fail.
Check and ensure the `$category` variable is properly defined and not empty before using it in the affected file. The fix will be included in a future CF update.

Co Collie-IT 26 Jul, 2020
1 Likes
Dear support,
​
I got the error that \chronoforms7\chronog3\admin\extensions\chronofc\__shared\behaviors_list.php Line 210 $category not exists in Wordpress.
​
$category semes to be null or empty.
​
Out of this reson the page faild working with xdebug.
​
I could fixed this with
​
if(isset( $category) &&  $category !=""){
    echo $category;
} 
Max_admin Max_admin 26 Jul, 2020
Answer
Yes, thank you for reporting, it should be fixed in the next WordPress installer update!πŸ™‚
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
Co Collie-IT 27 Jul, 2020
1 Likes
Update: in Line 118 there is an secound $category missing. I have same code was called.
It seeams to be that the
$category
is missing or a copy arthefact.
​
Because on line 44 stands
​
// foreach($cats as $category => $behaviors){
Best reagarts
Collie-IT
Max_admin Max_admin 28 Jul, 2020
thank you!πŸ™‚
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
This topic is locked and no more replies can be posted.