View Issue Details

IDProjectCategoryView StatusLast Update
0001298bareos-core[All Projects] webuipublic2021-04-29 10:58
ReporterDragonAssigned Tofrank 
PrioritynormalSeverityblockReproducibilityalways
Status assignedResolutionopen 
PlatformLinuxOSGenTooOS Version
Product Version20.0.0 
Fixed in Version 
Summary0001298: WebUI Login shows PHP-Notices then 404 (Dashboard)
DescriptionIn development mode various PHP warnings/notices are shown on the login page

Notice: compact(): Undefined variable: extras in <webroot>/admin/bareos-webui/vendor/zendframework/zend-view/src/Helper/HeadLink.php on line 403

Deprecated: array_key_exists(): Using array_key_exists() on objects is deprecated. Use isset() or property_exists() instead in <webroot>/admin/bareos-webui/vendor/zendframework/zend-i18n/src/Translator/Loader/Gettext.php on line 142

When logging in then ending up with 404 page not found. Looks like after login "<baseurl>/admin/bareos-webui/public/dashboard/" is attempted to be loaded and Apache returns 404. The file really does not exist. It seems as a PHP module so something is wrong.

Apache 2.4 contains this config (besides others):
"""
Alias /admin/bareos-webui <webroot>/admin/bareos-webui/public
<Directory <webroot>/admin/bareos-webui/public>
  AllowOverride None
  Options FollowSymLinks
  # ... authorization parameters for restricted internal access only ...
  RewriteEngine on
  RewriteBase /admin/bareos-webui
  RewriteCond %{REQUEST_FILENAME} -s [OR]
  RewriteCond %{REQUEST_FILENAME} -l [OR]
  RewriteCond %{REQUEST_FILENAME} -d
  RewriteRule ^.*$ - [NC,L]
  RewriteRule ^.*$ index.php [NC,L]
</Directory>
"""

WebUI is located under "<webroot>/admin/bareos-webui"

Apache logs:
XXX - xxx [04/Jan/2021:14:34:27 +0100] "GET /admin/bareos-webui/public/dashboard/ HTTP/1.1" 404 254
Steps To ReproduceFresh install
Tagswebui
bareos-master: impact
bareos-master: action
bareos-19.2: impact
bareos-19.2: action
bareos-18.2: impact
bareos-18.2: action
bareos-17.2: impact
bareos-17.2: action
bareos-16.2: impact
bareos-16.2: action
bareos-15.2: impact
bareos-15.2: action
bareos-14.2: impact
bareos-14.2: action
bareos-13.2: impact
bareos-13.2: action
bareos-12.4: impact
bareos-12.4: action

Activities

Skylord

Skylord

2021-02-25 10:09

reporter  

webui-update-dep.patch (2,388 bytes)
--- composer.json	2021-02-24 21:34:14.255172000 +0100
+++ composer.json	2021-02-24 21:55:09.112190000 +0100
@@ -15,29 +15,29 @@
    ],
    "require": {
       "php": ">=5.3.23",
-      "zendframework/zend-stdlib": "2.4.*",
-      "zendframework/zend-config": "2.4.*",
-      "zendframework/zend-eventmanager": "2.4.*",
-      "zendframework/zend-filter": "2.4.*",
-      "zendframework/zend-serializer": "2.4.*",
-      "zendframework/zend-servicemanager": "2.4.*",
-      "zendframework/zend-json": "2.4.*",
-      "zendframework/zend-i18n": "2.4.*",
-      "zendframework/zend-mvc": "2.4.*",
-      "zendframework/zend-view": "2.4.*",
-      "zendframework/zend-version": "2.4.*",
-      "zendframework/zend-session": "2.4.*",
-      "zendframework/zend-validator": "2.4.*",
-      "zendframework/zend-inputfilter": "2.4.*",
-      "zendframework/zend-form": "2.4.*",
-      "zendframework/zend-loader": "2.4.*",
-      "zendframework/zend-modulemanager": "2.4.*",
-      "zendframework/zend-cache": "2.4.*",
-      "zendframework/zend-log": "2.4.*",
-      "zendframework/zend-console": "2.4.*",
-      "zendframework/zend-http": "2.4.*",
-      "zendframework/zend-escaper": "2.4.*",
-      "zendframework/zend-uri": "2.4.*",
-      "zendframework/zend-navigation": "2.4.*"
+      "zendframework/zend-stdlib": "2.7.*",
+      "zendframework/zend-config": "2.6.*",
+      "zendframework/zend-eventmanager": "2.6.*",
+      "zendframework/zend-filter": "2.7.*",
+      "zendframework/zend-serializer": "2.9.*",
+      "zendframework/zend-servicemanager": "2.7.*",
+      "zendframework/zend-json": "2.6.*",
+      "zendframework/zend-i18n": "2.9.*",
+      "zendframework/zend-mvc": "2.6.*",
+      "zendframework/zend-view": "2.10.*",
+      "zendframework/zend-version": "2.5.*",
+      "zendframework/zend-session": "2.8.*",
+      "zendframework/zend-validator": "2.7.*",
+      "zendframework/zend-inputfilter": "2.7.*",
+      "zendframework/zend-form": "2.8.*",
+      "zendframework/zend-loader": "2.6.*",
+      "zendframework/zend-modulemanager": "2.8.*",
+      "zendframework/zend-cache": "2.8.*",
+      "zendframework/zend-log": "2.9.*",
+      "zendframework/zend-console": "2.7.*",
+      "zendframework/zend-http": "2.5.*",
+      "zendframework/zend-escaper": "2.6.*",
+      "zendframework/zend-uri": "2.5.*",
+      "zendframework/zend-navigation": "2.9.*"
    }
 }
webui-update-dep.patch (2,388 bytes)
Skylord

Skylord

2021-02-25 10:09

reporter   ~0004092

Got the same errors on php 7.4 - it seems that ZendFramework dependencies are too old. Have updated composer.json in webui root and run "composer install" - working fine now. There are few notices on some pages but not very annoying.

Issue History

Date Modified Username Field Change
2021-01-04 14:43 Dragon New Issue
2021-01-04 14:43 Dragon Tag Attached: webui
2021-02-25 10:09 Skylord File Added: webui-update-dep.patch
2021-02-25 10:09 Skylord Note Added: 0004092
2021-04-29 10:58 frank Assigned To => frank
2021-04-29 10:58 frank Status new => assigned