Solved the HTTP 500 server crash
Turned out that even the fact that the 500 error after new GJ group creation could be stopped by turning off the CB Auto Action with the 4 line's code, the actual error was in another at the same time triggered CB AutoAction. These two turned on together, causes the 500.
In the second CB AutoAction PHP code, I had defined a function like:
Code:
function clean($string) {
$string = str_replace(' ', '-', $string);
$string = preg_replace('/[^A-Za-z0-9\-]/', '', $string);
return preg_replace('/-+/', '-', $string);
}
According to the error, there must be another script having also a function called "clean". Looks like that, (maybe a GJ) code is called at the moment other AutoAction with the code below is executed at the same time?
Code:
$group = $variables['var1'];
$group->params()->set( 'about_content', 'TEST');
$group->set( 'params', $group->params()->asJson() );
$group->store();
Removing that function from the code and adding the <?php ?> around the remaining code of that CB AutoAction - PHP solved the crash problem.
Still not having the default logo magic from
forge.joomlapolis.com/issues/9370
. I will first take some more time to investigate, or that is a GJ Template, CBprivacy, configuration or other issue and then add an update to this ticket.