Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

Upgrading SilverStripe /

Ask questions about upgrading SilverStripe to the latest version.

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo, swaiba

Upgrade to 3.5.0 broke my website


Go to End


4 Posts   1827 Views

Avatar
SCarpentier

Community Member, 4 Posts

30 November 2016 at 6:57am

I just saw there was an upgrade to version 3.5.0, so I gave it a try. Now my website doesn't have a proper working theme anymore. The fields show up and in the right order, so I guess Silverstripe has access to the database and uses the SS files I made, but nothing is formatted. It's as if I didn't have a CSS file anymore. I think with the upgrade, my Page.php file's controller "Requirements" lines giving the CSS files got broken. Did "ThemeDir()" change?
Thank you for your help,

Avatar
SCarpentier

Community Member, 4 Posts

30 November 2016 at 7:12am

Despite trying a "dev/build" and also "?flush=1", nothing changed. I finally managed to fix it up, though. As I posted before, I suspected the main controller giving the requirements lines to be broken, so I opened the Page.php file, just switched the order of two of my requirements lines to fake a change in the file and saved it, so next time I ran "?flush" Silverstripe saw a change in the file and reloaded it. Now everything's fine (as far as I know).

Avatar
SCarpentier

Community Member, 4 Posts

5 December 2016 at 2:53pm

Here are some updates. As I was working on my new website I just realized my extension to SiteConfig I made last week doesn't work anymore. I had made one just like in the tutorial which would give me an extra tab called "Social" that would contain all my social networks links. It used to work last week, but since the upgrade the tab I made doesn't appear anymore. Anybody knows why?

Avatar
SCarpentier

Community Member, 4 Posts

6 December 2016 at 10:57am

I just discovered the problem. After the upgrade, it seems the file config.yml gets overwritten by the original version of it, so the line that specifies the custom theme changes back to the original theme and my last line that specified my extension to SiteConfig got erased. I also noticed these 2 new lines and wonder if I should keep them:

Debug:
  friendly_error_httpcode: true