Reputation: 1015
When I try to install SilverStripe on a server I received a few warnings and errors which were all related to the include_once problem.
I had to replace all include_once in framework/dev/install/DatabaseAdapterRegistry.php and framework/dev/install/install.php5 with include. Only then I could proceed with the installation.
This has never happened before (on other servers) so my question is this: how is it possible that include_once does not include the lib/file but include does?
Is this PHP problem? I have PHP 5.3 and running apache
I also noticed that require_once is not working and that I have to replace it with require... I have stopped with the code modification because there is obviously something very wrong here...
Upvotes: 0
Views: 221
Reputation: 400
I just tried with the newest SilverStripe (at this point 3.1.9) installer and PHP 5.3.3 and everything worked well. Requirements state that 5.3.2 should be enough but the installer recommended 5.3.4.
The problem is most likely the PHP installation. Also the fact that you have SilverStripe running on other servers points directly to server problems. Search for the differences between the PHP environments/configurations of the working servers and this server.
One thing to note is you shouldn't replace include_once
/require_once
without really making sure the files are included/required only once. They are _once
for a reason...
Could you specify the "include_once
problem" you are referring to? What error messages you get etc.
Upvotes: 1