Have a running 8.0.0 rc2 site running under domain A. When I simply rename the site's file directory such that it responds at domain B I get the following:
Parse error: syntax error, unexpected 'class' (T_CLASS), expecting identifier (T_STRING) or variable (T_VARIABLE) or '{' or '$' in /example/core/lib/Drupal/Core/Controller/ControllerResolver.php on line 151
No modules installed, all page caching disabled. No flushing of cache seems to help, and I don't see the domain in the site config as it was in D7, and nothing that links to a domain in the settings.php file. So I wonder how something can be "latching on" to the original domain where it was installed?
If I switch the folder back to respond on the first domain it works again. But under the second domain I can't access /user or any other page. If I try to access /update I get the following error:
Parse error: syntax error, unexpected 'CLASS' (T_CLASS), expecting identifier (T_STRING) or variable (T_VARIABLE) or '{' or '$' in /example/core/lib/Drupal/Core/Extension/ModuleInstaller.php on line 226
I find it pretty strange that it's a syntax error of all things.
Doing all of the above with multiple Drupal7 sites works fine. Any ideas?
Comments
OOOPS! As usual, it was me.
OOOPS! As usual, it was me.
For those that might be in the same boat: My hosting provider sets PHP versions per-domain. I got the warning to upgrade to latest PHP on install, but when flipping directories I unexpectedly switcharoo'ed the site back down to an older version of PHP.
Whew.