View Issue Details

IDProjectCategoryView StatusLast Update
0000243Bacula-Webbug-phppublic2018-03-22 09:23
ReporterDonnaHofmeisterAssigned Todavide 
Status resolvedResolutionno change required 
PlatformvmwareOScentosOS Version7
Product Version8.0.0-rc2 
Target VersionFixed in Version 
Summary0000243: PHP Parse error
Descriptionthis is a brand new bacula-web installation. i believe i've got all the bits-n-pieces properly installed. (btw, the documentation should be updated to reflect changes for rh/centos/fedora 7)

when i try to do the test, i did:
. http://yourserveroripaddress/bacula-web/test.php <--- is wrong (documentation needs fixing)
. http://yourserveroripaddress/bacula-web/index.php <--- is wrong (just a guess on my part)
. http://yourserveroripaddress/bacula-web/index.php?page=test <--- correct, i think per what i found in 'bugs'

guessing that the last example is correct, i get the following error on my web screen: currently unable to handle this request.

checking the httpd error log, i find:
[Fri Mar 16 12:12:14.750755 2018] [:error] [pid 5514] [client] PHP Parse error: syntax error, unexpected '{' in /var/www/html/bacula-web/core/app/webapplication.class.php on line 111

looking at webapplication.class.php, this appears to be the relevant bit of code:

    102 public function run() {
    103 try{
    104 $this->setup();
    105 $this->init();
    106 $this->view->prepare();
    107 }catch( Exception $e) {
    108 // Display application error here
    109 CErrorHandler::displayError($e);
    110 // Render the view
>>111 }finally {
    112 $this->view->render();
    113 }
    114 }
    115 }

i'm stuck at this point.
TagsNo tags attached.



2018-03-20 12:20

manager   ~0000758


About documentation for rhel 7 / fedora / etc., what's wrong or out of date ?

About test page, the link mentioned in the documentation is correct (doc link below)

Ony in version 7.4.0, the test page was reachable using http://server/bacula-web/test.php

For your error, which version of PHP are you using ?

Thanks for your feedback


2018-03-20 16:07

reporter   ~0000759

[root@bacula /]# php -v
PHP 5.4.16 (cli) (built: Mar 7 2018 13:34:47)
Copyright (c) 1997-2013 The PHP Group
Zend Engine v2.4.0, Copyright (c) 1998-2013 Zend Technologies
[root@bacula /]# yum list install|grep php
Error: No matching Packages to list
[root@bacula /]# yum list installed|grep php
php.x86_64 5.4.16-43.el7_4.1 @updates
php-bcmath.x86_64 5.4.16-43.el7_4.1 @updates
php-cli.x86_64 5.4.16-43.el7_4.1 @updates
php-common.x86_64 5.4.16-43.el7_4.1 @updates
php-gd.x86_64 5.4.16-43.el7_4.1 @updates
php-mbstring.x86_64 5.4.16-43.el7_4.1 @updates
php-mysqlnd.x86_64 5.4.16-43.el7_4.1 @updates
php-pdo.x86_64 5.4.16-43.el7_4.1 @updates
php-pear.noarch 1:1.9.4-21.el7 @base
php-pgsql.x86_64 5.4.16-43.el7_4.1 @updates
php-process.x86_64 5.4.16-43.el7_4.1 @updates
php-xml.x86_64 5.4.16-43.el7_4.1 @updates


2018-03-20 16:21

manager   ~0000760

Last edited: 2018-03-22 09:21

View 2 revisions

php 5.4.16 is far too old and will not work with Bacula-Web

You need at least php version 5.6.

See requirements below


2018-03-22 09:23

manager   ~0000761

PHP version you're using is too old (PHP 5.4.x).

If you have any other issue with documentation, please open another detailed Mantis report with documentation category.
Mentioning page/chapter would be helpful,

Thanks for your bug report


Issue History

Date Modified Username Field Change
2018-03-19 16:50 DonnaHofmeister New Issue
2018-03-20 12:20 davide Assigned To => davide
2018-03-20 12:20 davide Status new => feedback
2018-03-20 12:20 davide Note Added: 0000758
2018-03-20 16:07 DonnaHofmeister Note Added: 0000759
2018-03-20 16:07 DonnaHofmeister Status feedback => assigned
2018-03-20 16:21 davide Note Added: 0000760
2018-03-22 09:21 davide Note Edited: 0000760 View Revisions
2018-03-22 09:23 davide Status assigned => resolved
2018-03-22 09:23 davide Resolution open => no change required
2018-03-22 09:23 davide Note Added: 0000761