3.1.5
Latest stable releasePatch release: on an already installed site /install answers 404, and the old installer only opens from the back office, behind login. Plus three fixes: the installer works on PHP 8, the /install route no longer drops the request into a fatal error (500, reported to Sentry), and a missing NoSQL store (MongoDB) no longer brings the page down when debug is on. DB schema unchanged (5): updates without touching the database.
Security 1 entry
/installclosed on installed sites. When the site is already configured, the old installer prefills its form with the configuration in use, database and SMTP passwords included, and accepts the form submission (frmAction=install). It was reachable from the public/installroute without any login. Now, on an installed site, the installer only opens from the back office (Configuration → Basic,/admin/configuration/install, where the CMS asks for login); any other address,/installin every variant included (/INSTALL,/install/,?setup), answers 404. The check sits at the top of the installer, so it holds whatever path leads there. (conf/gallery/install/index.php; manual 01)
Fixed 3 entries
- An unreachable store no longer takes the page down. With
DEBUG_MODEon, anisError()on an unconfigured storage — typically the page statistics on MongoDB, which a new installation doesn't have — printed the error sheet and closed the page in place of the requested page:/loginanswered with the CMS error and looked broken. Now that case writes a line incache/logs/…_storage_nosql.txtand the page carries on. With debug off the page was already served: the error used to go to…_error_critical.txt, now it goes to the storage log. The SQL branch stays as it was: a missing relational database must make itself heard (vendor/wolfgan/storage/Storage.php,controller_nosql). /installno longer answers 500. AGET /installon an already installed site — for example a crawler's scan — ended in anE_USER_ERROR(«Catrina: Percorso Riservato. Verificare perche entra qui»), hence in an error page and a report in Sentry.cmsRouter::regexp()expanded*to(.*)even inside a hand-written group, so the source^/install(.*)became^/install(.(.*))and no longer matched the short URL: the kernel recognised the page but not its route, and theservice/updatercase ofsystem_init_on_before_routing()fell through — because of a// no break— into theactexcase, which raises the fatal error. Same fate for/updater/check, whose page doesn't even have arouter. Now*becomes(.*)only outside groups, and if the page route doesn't close the request it carries on: the Content Manager router takes it, and a path that doesn't exist answers 404. (vendor/wolfgan/cms/services/router.php,library/gallery/system/init.php; manual 01 §2)- The installer opens on PHP 8. From the back office (Configuration → Basic) the page came out empty because of three cases that were warnings in PHP 7 and are fatal in PHP 8: the
ini_get("mysql.max_persistent")check (an ext/mysql directive, removed in PHP 7:ini_get()returnsfalse, the comparison with-1always fails and the installer declared itself critical, printing only «mysql.max_persistent must be Unlimited»);VG_SITE_ADMININSTALL, a constant nobody defines, read in the comparison;cm_getClassByFrameworkCss("", "link", null, "bootstrap"), which passes the framework name where the already resolved structure is needed. Also, the final branch redirected to/setup, a URL that doesn't exist on a JoeCMS site: now it redirects to the same URL with?setup. TheFTP_*constants, which only the oldconfig.updater.phpdefined, are read withdefined(): without credentials you see «FTP Path unavailable» instead of a fatal. (conf/gallery/install/index.php,conf/gallery/install/common.php,library/FF/common/framework-css.php)