Bug #5381
closed
syntax error, unexpected ';' in /usr/local/www/wizard.php(156) : eval()'d code on line 3
Added by Chris Buechler about 9 years ago.
Updated over 8 years ago.
Description
Go through the setup wizard, set the hostname and timezone, leave rest at defaults. Go back to the dashboard at the end and you'll have a crash report.
PHP Errors:
[07-Nov-2015 06:53:46 Etc/UTC] PHP Parse error: syntax error, unexpected ';' in /usr/local/www/wizard.php(156) : eval()'d code on line 3
[07-Nov-2015 06:53:46 Etc/UTC] PHP Stack trace:
[07-Nov-2015 06:53:46 Etc/UTC] PHP 1. {main}() /usr/local/www/wizard.php:0
- Status changed from Confirmed to Feedback
- Assignee set to Chris Buechler
I'm guessing this is the culprit: (line 3 of the PHP)
<stepsubmitphpaction>
if($_POST['adminpassword'] != "") {
if($_POST['adminpassword'] == $_POST['adminpasswordagain']) {
$admin_user =& getUserEntryByUID(0);
local_user_set_password($admin_user, $_POST['adminpassword']);
local_user_set($admin_user);
write_config();
} else {
print_info_box_np("Passwords do not match! Please press back in your browser window and correct.");
die;
}
}
</stepsubmitphpaction>
Its the same in 2.2.4 though. Was it always that way?
And in general, all that entity crap in that file (like descriptions) would benefit from the same. Completely unreadable.
Sure, but it's interesting that this problem has been in there since RELENG_2.0
php corrected and wrapped in <![CDATA[ ]]>
- % Done changed from 0 to 100
- Status changed from Feedback to Resolved
- Affected Version changed from 2.3 to All
Not sure how that never generated a crash report before. Works, thanks!
- Affected Version changed from All to 2.3
Also available in: Atom
PDF