Forums

Got systax error "suddenly" - why?

mikikado 08 Jul, 2019
Using J!3.9.8 Stable, php7.4.0alpha2, DB mysql / 5.5.5-10.3.11-MariaDB-1:10.3.11+maria~bionic

I do not know since when I have this problem. because haven't used for more than 6 month. Yesterday I wanted to create a new form. but no chance.
I tried a solution explained in one of topics: Line 152 $tot = [] changed in $tot = array()...

but I have still error:

"0syntax error, unexpected 'Fn' (T_FN), expecting identifier (T_STRING) "

Anyone who can help?

Thank you in advance.

Michael
healyhatman 08 Jul, 2019
Turn up your site's error reporting, and maybe even enable your site's debug, to show which file and line the error is coming from.
mikikado 08 Jul, 2019
Here hardcopy of the mentioned error:

(http://prntscr.com/oc5y7r)



JROOT/administrator/components/com_chronoforms5/chronoforms/events/fn/fn.php:9 :


9 namespace GCore\Admin\Extensions\Chronoforms\Events\Fn;


JROOT/administrator/components/com_chronoforms5/chronoforms/views/edit.php:1453
1453  $jseoptions[$type] = $class::$title;
JROOT/libraries/cegcore/libs/view.php:76
 76 include($action_file);
JROOT/libraries/cegcore/libs/app_j.php:257
 257 $view->renderView($this->action);
JROOT/libraries/cegcore/libs/app_j.php:444
 444 $x_app->dispatch(true);
JROOT/libraries/cegcore/joomla_gcloader.php:104
 104 echo \GCore\Libs\AppJ::call($area, $extension, $controller, $action, $cont_vars);

JROOT/administrator/components/com_chronoforms5/chronoforms5.php:17
17 $output = new JoomlaGCLoader('admin', 'chronoforms5', 'chronoforms');
JROOT/libraries/src/Component/ComponentHelper.php:402
 402 require_once $path;
JROOT/libraries/src/Component/ComponentHelper.php:377
 377 $contents = static::executeComponent($path);
JROOT/libraries/src/Application/AdministratorApplication.php:101
101 $contents = ComponentHelper::renderComponent($component);
JROOT/libraries/src/Application/AdministratorApplication.php:159
 159 $this->dispatch();
JROOT/libraries/src/Application/CMSApplication.php:196
 196 $this->doExecute();
JROOT/administrator/index.php:51
51 $app->execute();
GreyHead 08 Jul, 2019
Hi MIchael,

Please try dropping your PHP version back from 7.4 alpha to the current stable release of 7.3.7 and see if that resolves the error. I suspect that something has changed in 7.4 (but I can't see what that is).

Bob
kaeser49 24 Feb, 2020
Hi,

I upgraded from 7.3 to 7.4 and get the same error message. I have two instances. One in Joomla and one in WP. Only Joomla breaks. The form works on the customer side but not on the backend in Joomla.

Werner
This topic is locked and no more replies can be posted.