Jump to:

22970 Posts in 11572 Topics by 2823 members

General Questions

SilverStripe Forums » General Questions » 2.4 Upgrade problem [Solved]

General questions about getting started with SilverStripe that don't fit in any of the categories above.

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

Page: 1
Go to End
Author Topic: 571 Views
  • Harley
    Avatar
    Community Member
    153 Posts

    2.4 Upgrade problem [Solved] Link to this post

    Good morning!

    I have a strange problem here. Last night I was upgrading a site to 2.4. I removed the cms and saphire folders and then uploaded the 2.4 'cms' and 'saphire'.

    Everything seemed ok but then all of a sudden I hit this message on the screen:

    Parse error: syntax error, unexpected T_STRING in /var/tmp/silverstripe-cache-nfs-c06-h05-mnt-92173-domains-xxxxx.co.uk-html/.cache.nfs.c06.h05.mnt.92173.domains.xxxxx.co.uk.html.themes.hub.templates.Page.ss on line 56

    I checked my template and nothing was wrong there, in fact I had not even edited or uploaded this anyway. I deleted the silverstripe-cache and still no joy.

    Then this morning I thought that if I uploaded the blackcandy theme, edited the config file on the server to use this theme and reloaded the page that I would then atleast be able to see something...

    The pain in the ass is, I can't log in either to do dev/build/?flush=1 because I'm being redirected to the security login page which uses Page.ss where I'm having a problem.

    I'm running out of ideas about why this is happening and what to do.

    Anyone got any ideas or ever experienced anything like this?

    Thanks

    Harley

  • Martijn
    Avatar
    Community Member
    271 Posts

    Re: 2.4 Upgrade problem [Solved] Link to this post

    Because of the redirection to the login page, I think you have set your site in live mode?

    Maybe unnecessary to mention, but make sure you are working in dev mode so you can run dev/build?flush=all, without being loggedin:

    _config.php:

    Director::set_environment_type("dev");

    Also try to recreate the silverstripe-cache folder, so SS is not using the webservers tmp folder..

    Hope this helps.

  • Harley
    Avatar
    Community Member
    153 Posts

    Re: 2.4 Upgrade problem [Solved] Link to this post

    Thank you so much,

    I got it all straightened out. I think it did require some poking around the .ss templates and the corresponding php files to get it completely working.

    Cheers

    Harley

    571 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.