View Issue Details

IDProjectCategoryView StatusLast Update
0000225Bacula-Webbugpublic2017-12-04 08:54
ReportermlmmilkywayAssigned Todavide 
PrioritynormalSeveritymajorReproducibilityalways
Status resolvedResolutionno change required 
Product Version8.0.0-rc1 
Target VersionFixed in Version 
Summary0000225: test.php page not working
Description/usr/bin/composer install --no-dev --prefer-source
Loading composer repositories with package information
Installing dependencies from lock file
  - Installing components/font-awesome (4.7.0)
    Cloning 885308b939369d147bec93174722786bc2c4eedd

  - Installing symfony/process (v3.3.10)
    Cloning fdf89e57a723a29baf536e288d6e232c059697b1

  - Installing kriswallsmith/assetic (v1.4.0)
    Cloning e911c437dbdf006a8f62c2f59b15b2d69a5e0aa1

  - Installing robloach/component-installer (0.2.3)
    Cloning 908a859aa7c4949ba9ad67091e67bac10b66d3d7

  - Installing moment/moment (2.18.1)
    Cloning b8a7fc310eb3625e83fc0c8f1ea2840fa83c7378

  - Installing components/jquery (3.2.1)
    Cloning e5534d4ab8e80c159553d507e358ed20a806d3bf

  - Installing eonasdan/bootstrap-datetimepicker (4.17.47)
    Cloning 25c11d79e614bc6463a87c3dd9cbf8280422e006

  - Installing mbostock/d3 (v3.5.17)
    Cloning 9cc9a875e636a1dcf36cc1e07bdf77e1ad6e2c74

  - Installing novus/nvd3 (v1.8.6)
    Cloning d273ea52d91b482d044f8cef1e921256f2bfddcd

  - Installing smarty-gettext/smarty-gettext (1.2.0)
    Cloning bc3978d07165c62cd9f6e1c41e9196e5b90166f2

  - Installing smarty/smarty (v2.6.28)
    Cloning 0ecdd6c41d0de08cba846087abd02a9adb5218e5

  - Installing twbs/bootstrap (v3.3.7)
    Cloning 0b9c4a4007c44201dce9a6cc1a38407005c26c86

Generating autoload files
> ComponentInstaller\Installer::postAutoloadDump
Compiling component files

Web page displays this:

Exception trace
File: /var/www/html/bacula-web/index.php on line 26 in function Bweb->__construct
Application error
File /var/www/html/bacula-web/core/bweb.class.php
Line 65
Exception code 0
Exception message The template cache folder /var/www/html/bacula-web/application/view/cache must be writable by Apache user
Have you tried to run the test page ?
Check the online documentation on Bacula-Web project site
Rebort a bug or suggest a new feature in the Bacula-Web\'s bugtracking tool



Yes www-data can write to /html/bacula-web/application/view/cache

PHP Fatal error: Smarty error: [in index.tpl line 5]: syntax error: unrecognized tag 't' (Smarty_Compiler.class.php, line 590) in /var/www/html/bacula-web/vendor/smarty/smarty/libs/Smarty.class.php on line 1094
Undefined index: catalog_id in /var/www/html/bacula-web/core/app/cmodel.class.php on line 34, referer: http://maux.sr.unh.edu/bacula-web/index.php
[Fri Oct 20 07:55:03.395710 2017] [:error] [pid 22979] [client 132.177.241.88:26819] PHP Notice: Undefined index: in /var/www/html/bacula-web/application/libs/fileconfig.class.php on line 100, referer: http://maux.sr.unh.edu/bacula-web/index.php
[Fri Oct 20 07:55:03.395849 2017] [:error] [pid 22979] [client 132.177.241.88:26819] PHP Fatal error: Uncaught Error: Call to a member function getAttribute() on null in /var/www/html/bacula-web/core/db/cdb.class.php:69\nStack trace:\n#0 /var/www/html/bacula-web/core/app/cmodel.class.php(100): CDB->getDriverName()\n#1 /var/www/html/bacula-web/core/app/cmodel.class.php(158): CModel->get_driver_name()\n#2 /var/www/html/bacula-web/test.php(63): CModel->getConnectionStatus()\n#3 {main}\n thrown in /var/www/html/bacula-web/core/db/cdb.class.php on line 69, referer: http://maux.sr.unh.edu/bacula-web/index.php
Steps To ReproduceUbuntu 16.04.1
bacula Version: 9.0.3
Additional Informationwas not aware I needed to run:

/usr/bin/composer install --no-dev --prefer-source after extracting from the tar ball
TagsNo tags attached.

Activities

davide

2017-10-20 17:28

manager   ~0000700

I see several problems here

1. Exception message The template cache folder /var/www/html/bacula-web/application/view/cache must be writable by Apache user
If you're sure this folder is writable by Apache user, check if SELinux is in enforcing mode.
I'm pretty sure this is the problem and the documentation provide a fix for this

2. PHP Fatal error: Smarty error: [in index.tpl line 5]: syntax error: unrecognized tag 't' (Smarty_Compiler.class.php, line 590) in /var/www/html/bacula-web/vendor/smarty/smarty/libs/Smarty.class.php on line 1094
This is caused a misconfigured or missing config.php file in application/config folder
But I need to improve this part of the code to make it more clear

3. Uncaught Error: Call to a member function getAttribute() on null in /var/www/html/bacula-web/core/db/cdb.class.php
Same problem as 0000002, the PDO class instance is not initialized correctly and/or, your db connection to Bacula catalog doesn't work.
But it could be also SELinux blocking the connection.

You can have a look at the documentation about SELinux here
http://docs.bacula-web.org/en/latest/02_install/requirements.html#install-requirements

If you still have the problem, get back to me with your version of config.php and Apache error log file
Hope it help

davide

2017-11-16 14:41

manager   ~0000706

Any news ?

davide

2017-12-04 08:54

manager   ~0000716

Got no feedback from you, closing this bug report.

Issue History

Date Modified Username Field Change
2017-10-20 14:10 mlmmilkyway New Issue
2017-10-20 17:28 davide Assigned To => davide
2017-10-20 17:28 davide Status new => feedback
2017-10-20 17:28 davide Note Added: 0000700
2017-11-16 14:41 davide Note Added: 0000706
2017-12-04 08:54 davide Status feedback => resolved
2017-12-04 08:54 davide Resolution open => no change required
2017-12-04 08:54 davide Note Added: 0000716