0

My newly migrated live site can only be accessed one the homepage and /admin - i'm not able to login.

I have tried to do /dev/build og the ?flush=1. Didn't help.

My site is a subdomain, so I don't know if this plays some role in failing to access all the other pages?

I have set the SS_ENVIRONMENT_TYPE to live and I there's DB connection.

So my question is: what am I missing since I can only access homepage and /admin?

mikemols
  • 824
  • 10
  • 17
  • try SS_ENVIRONMENT_TYPE dev and see if there is some error logged. Do you see a menu? What error is shown when you try to access something else? – wmk Feb 01 '17 at 21:14
  • I don't see any other errors than HTTP's 500. I don't get any debug errors when changing the environment type to dev. Am I missing something? – mikemols Feb 01 '17 at 21:23
  • 1
    a 500 can be pretty anything. Enable [php error reporting](http://stackoverflow.com/a/5438125/4137738) and check apache error log or php log. – wmk Feb 01 '17 at 21:38
  • Fatal error: Cannot use 'Int' as class name as it is reserved in /var/www/molsmedia.com/public_html/framework/model/fieldtypes/Int.php on line 8 – mikemols Feb 01 '17 at 23:03

1 Answers1

4

SilverStripe 3.6 and up supports PHP7.

See: https://docs.silverstripe.org/en/3/changelogs/3.6.0/

Outdated:

Silverstripe 3.X does not support PHP7 officially.

However, this module will patch your code to avoid the 'Int' class name reserved error and whatnot. Just be aware that other third party modules might not work.

In addition it has been blogged about here for more detail.

SilbinaryWolf
  • 461
  • 4
  • 9
  • 1
    When switching a site from 5.x to 7 be sure to delete the cache. Had once a timeout with that patch in production. Other projects run fine with it. Disclaimer: I wrote that module (not the patch, see the above linked blog post) – wmk Feb 02 '17 at 04:41