Jump to:

22976 Posts in 11493 Topics by 2824 members

General Questions

SilverStripe Forums » General Questions » Login Page Not Displaying

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 2 3
Go to End
Author Topic: 4589 Views
  • robgreen
    Avatar
    Community Member
    11 Posts

    Re: Login Page Not Displaying Link to this post

    @hive.net.au - I get this when i visit /security/login/ in dev mode -

    [Warning] fopen(/tmp/silverstripe-cache-home-phonicfm-public_html/.cache.home.phonicfm.public_html.sapphire.templates.Includes.Form.ss) [function.fopen]: failed to open stream: Permission denied
    GET /Security/login

    Line 323 in /home/phonicfm/public_html/sapphire/core/SSViewer.php
    Source

    314
    315       $lastEdited = filemtime($template);
    316
    317       if(!file_exists($cacheFile) || filemtime($cacheFile) < $lastEdited || isset($_GET['flush'])) {
    318          if(isset($_GET['debug_profile'])) Profiler::mark("SSViewer::process - compile", " for $template");
    319          
    320          $content = file_get_contents($template);
    321          $content = SSViewer::parseTemplateContent($content, $template);
    322          
    323          $fh = fopen($cacheFile,'w');
    324          fwrite($fh, $content);
    325          fclose($fh);
    326
    327          if(isset($_GET['debug_profile'])) Profiler::unmark("SSViewer::process - compile", " for $template");
    328       }
    329    

    Trace

    * fopen(/tmp/silverstripe-cache-home-phonicfm-public_html/.cache.home.phonicfm.public_html.sapphire.templates.Includes.Form.ss,w)
    Line 323 of SSViewer.php
    * SSViewer->process(MemberLoginForm)
    Line 774 of ViewableData.php
    * ViewableData->renderWith(Array)
    Line 946 of Form.php
    * Form->forTemplate()
    Line 339 of Security.php
    * Security->login(HTTPRequest)
    Line 162 of Controller.php
    * Controller->handleAction(HTTPRequest)
    Line 107 of RequestHandler.php
    * RequestHandler->handleRequest(HTTPRequest)
    Line 122 of Controller.php
    * Controller->handleRequest(HTTPRequest)
    Line 277 of Director.php
    * Director::handleRequest(HTTPRequest,Session)
    Line 121 of Director.php
    * Director::direct(Security/login)
    Line 115 of main.php

  • hive.net.au
    Avatar
    Community Member
    40 Posts

    Re: Login Page Not Displaying Link to this post

    Hi RobGreen

    In the root of your site create a folder called silverstripe-cache and chmod as 755 This only will work on versions 2.3.2+ i think

    This should get over the problem.. let me know.

  • robgreen
    Avatar
    Community Member
    11 Posts

    Re: Login Page Not Displaying Link to this post

    Just tried to upgrade to CMS so I could do that, and now the site doesn't work at all.

    Looks like a rebuild from scratch. no idea anymore.

  • hive.net.au
    Avatar
    Community Member
    40 Posts

    Re: Login Page Not Displaying Link to this post

    The Folder would have to be there before the upgrade. As for some reason you no longer have permission to the temp folder. As per the error above. Or the other thing you could do is ask your hosting provider to clear the temp folder.

  • robgreen
    Avatar
    Community Member
    11 Posts

    Re: Login Page Not Displaying Link to this post

    Thanks for your help, but i have scrapped and rebuilt with a CMS I am a lot more comfortable with; Wordpress.

    4589 Views
Page: 1 2 3
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.