Failed to install Concrete 5.7.4RC1 on sub-sub-domain like foo.bar.devsystem.local

Permalink
Hello,

I have a problem with the installation of Concrete5 5.7.4RC1. Our host environment for developing uses Apache 2.4 with dynamic host configuration. The structure of a URL is "sub-projekt.branch.developer-pc.dev".

When installed Concrete5 5.7.4RC1 into "cms.trunk_storm.it-15.dev" the following php exception is thrown:

[Tue Apr 21 11:13:33.935379 2015] [authz_core:debug] [pid 16174] mod_authz_core.c(802): [client 127.0.0.1:55804] AH01626: authorization result of Require all granted: granted
[Tue Apr 21 11:13:33.935425 2015] [authz_core:debug] [pid 16174] mod_authz_core.c(802): [client 127.0.0.1:55804] AH01626: authorization result of <RequireAny>: granted
[Tue Apr 21 11:13:33.935581 2015] [authz_core:debug] [pid 16174] mod_authz_core.c(802): [client 127.0.0.1:55804] AH01626: authorization result of Require all granted: granted
[Tue Apr 21 11:13:33.935601 2015] [authz_core:debug] [pid 16174] mod_authz_core.c(802): [client 127.0.0.1:55804] AH01626: authorization result of <RequireAny>: granted
[Tue Apr 21 11:13:33.963932 2015] [:error] [pid 16174] [client 127.0.0.1:55804] PHP Fatal error:  Uncaught exception 'Whoops\\Exception\\ErrorException' with message 'Argument 1 passed to Concrete\\Core\\Asset\\AssetGroup::addGroup() must be an instance of Concrete\\Core\\Asset\\AssetGroup, null given, called in /var/www/trunk_storm/instances/concrete5/concrete/src/Http/ResponseAssetGroup.php on line 183 and defined' in /var/www/trunk_storm/instances/concrete5/concrete/src/Asset/AssetGroup.php:33\nStack trace:\n#0 /var/www/trunk_storm/instances/concrete5/concrete/src/Asset/AssetGroup.php(33): Whoops\\Run->handleError(4096, 'Argument 1 pass...', '/var/www/trunk_...', 33, Array)\n#1 /var/www/trunk_storm/instances/concrete5/concrete/src/Http/ResponseAssetGroup.php(183): Concrete\\Core\\Asset\\AssetGroup->addGroup(NULL)\n#2 /var/www/trunk_storm/instances/concrete5/concrete/src/View/AbstractView.php(75): Concrete\\Core\\Http\\ResponseAssetGroup->requireAsset('core/app', false)\n#3 /var/www/trunk_storm/instances/concrete5/concrete/themes/core/error.php(8): Concrete\\Core\\View\\AbstractView->requireAsset('core/app')\n#4 /var/www/trunk in /var/www/trunk_storm/instances/concrete5/concrete/src/Asset/AssetGroup.php on line 33
[Tue Apr 21 11:13:33.964765 2015] [:error] [pid 16174] [client 127.0.0.1:55804] PHP Catchable fatal error:  Argument 1 passed to Concrete\\Core\\Asset\\AssetGroup::addGroup() must be an instance of Concrete\\Core\\Asset\\AssetGroup, null given, called in /var/www/trunk_storm/instances/concrete5/concrete/src/Http/ResponseAssetGroup.php on line 183 and defined in /var/www/trunk_storm/instances/concrete5/concrete/src/Asset/AssetGroup.php on line 33
[Tue Apr 21 11:13:33.964783 2015] [:error] [pid 16174] [client 127.0.0.1:55804] PHP Stack trace:
[Tue Apr 21 11:13:33.964796 2015] [:error] [pid 16174] [client 127.0.0.1:55804] PHP   1. Whoops\\Run->handleShutdown() /var/www/trunk_storm/instances/concrete5/concrete/vendor/filp/whoops/src/Whoops/Run.php:0
[Tue Apr 21 11:13:33.964807 2015] [:error] [pid 16174] [client 127.0.0.1:55804] PHP   2. Whoops\\Run->handleError() /var/www/trunk_storm/instances/concrete5/concrete/vendor/filp/whoops/src/Whoops/Run.php:339
[Tue Apr 21 11:13:33.964817 2015] [:error] [pid 16174] [client 127.0.0.1:55804] PHP   3. Whoops\\Run->handleException() /var/www/trunk_storm/instances/concrete5/concrete/vendor/filp/whoops/src/Whoops/Run.php:315
[Tue Apr 21 11:13:33.964826 2015] [:error] [pid 16174] [client 127.0.0.1:55804] PHP   4. Concrete\\Core\\Error\\Handler\\ErrorHandler->handle() /var/www/trunk_storm/instances/concrete5/concrete/vendor/filp/whoops/src/Whoops/Run.php:248
[Tue Apr 21 11:13:33.964851 2015] [:error] [pid 16174] [client 127.0.0.1:55804] PHP   5. Concrete\\Core\\Application\\Service\\UserInterface->renderError() /var/www/trunk_storm/instances/concrete5/concrete/src/Error/Handler/ErrorHandler.php:39
[Tue Apr 21 11:13:33.964861 2015] [:error] [pid 16174] [client 127.0.0.1:55804] PHP   6. Concrete\\Core\\View\\AbstractView->render() /var/www/trunk_storm/instances/concrete5/concrete/src/Application/Service/UserInterface.php:320
[Tue Apr 21 11:13:33.964870 2015] [:error] [pid 16174] [client 127.0.0.1:55804] PHP   7. Concrete\\Core\\View\\View->renderViewContents() /var/www/trunk_storm/instances/concrete5/concrete/src/View/AbstractView.php:123
[Tue Apr 21 11:13:33.964878 2015] [:error] [pid 16174] [client 127.0.0.1:55804] PHP   8. include() /var/www/trunk_storm/instances/concrete5/concrete/src/View/View.php:189


Changing the host configuration to "cms.it-15.dev" (one "subdomain" fewer) all works perfectly.

What is the problem here? Can anyone help me out please?

elpado
 
mesuva replied on at Permalink Best Answer Reply
mesuva
I had this problem too, I initially thought it was the subdomain.

I worked out that it's the underscore in the URL.

There is a library in concrete5 now that checks for valid domains, with an underscore actually being invalid I believe. It worked in earlier versions as it wasn't being enforced and some servers will still work with an underscore. (I think that's the case at least)

I do think the error message needs to be better though, it should throw some sort of exception that relates to the problem, not this exception from a knock-on effect.

The moral of the story is that domains need to be valid.
elpado replied on at Permalink Reply
elpado
Making a symlink without underscore works, thank you!!!