Jump to:

23003 Posts in 11856 Topics by 2828 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: 4618 Views
  • robgreen
    Avatar
    Community Member
    11 Posts

    Re: Login Page Not Displaying Link to this post

    I don't really use any other forms tbh. This site is really basic.

    I have tried using the flush=1 on the login page, and clearing all my browser cache to no avail - really frustrating.

    Think i will try it locally like you suggest - never done that before - and upgrade if no different. Thanks for your help.

  • Double-A-Ron
    Avatar
    Community Member
    603 Posts

    Re: Login Page Not Displaying Link to this post

    Hi Rob,

    I'm as bamboozled as you.

    Here is a run through on installing on WAMP: http://doc.silverstripe.org/doku.php?id=installation-on-windows-wamp

    Good luck
    Aaron

  • robgreen
    Avatar
    Community Member
    11 Posts

    Re: Login Page Not Displaying Link to this post

    another weird thing - I just thought I try rebuilding the database to check that wasn't causing any problem @ http://www.phonic888fm.com/dev/build/?flush=1 and it is giving a 500 error. Now I think there is a problem with the DB.

    Any ideas?

  • Double-A-Ron
    Avatar
    Community Member
    603 Posts

    Re: Login Page Not Displaying Link to this post

    Try

    1. http://www.phonic888fm.com/dev/build

    Then

    2. http://www.phonic888fm.com/?flush=all

    I don't see a 500 error. If I do a /dev/build I get redirected to the security page. (which is a good thing )

  • robgreen
    Avatar
    Community Member
    11 Posts

    Re: Login Page Not Displaying Link to this post

    The dev/build/ take me to a formless security page too. The ?flush=all takes give me a blank page, that is returning a 500 error.

    Bit worried that this might be a serious problem with the DB tbh :-/

  • Double-A-Ron
    Avatar
    Community Member
    603 Posts

    Re: Login Page Not Displaying Link to this post

    Ofcourse, how stupid of me.

    Try putting your site into Dev mode. That will allow you to run /dev/build without logging in.

    in /mysite/_config.php, add this line:
    Director::set_environment_type("dev");

    Just make sure you remove when you are done, regardless of whether it fixes your issue. It would be wise to do a backup of your database before hand. You may not be able to log in, but at least the live site is viewable to your visitors.

    Aaron

  • hive.net.au
    Avatar
    Community Member
    40 Posts

    Re: Login Page Not Displaying Link to this post

    Hi Rob,

    Ignore my twitter message just found this thread with your problem.

    Do you have access to your domain error logs?

    Also if you put it into dev mode we can see how the templates are formating with the url string ?showtemplate=1 might give us some clues.

  • robgreen
    Avatar
    Community Member
    11 Posts

    Re: Login Page Not Displaying Link to this post

    @ Double-A-Ron: I get this when I put it into dev mode and go to /dev/build/ -

    [Warning] fopen(/tmp/silverstripe-cache-home-phonicfm-public_html/manifestClassParse-_home_phonicfm_public_html_cms_code_AssetAdmin.php) [function.fopen]: failed to open stream: Permission denied
    GET /dev/build/

    Line 398 in /home/phonicfm/public_html/sapphire/core/ManifestBuilder.php
    Source

    389       $parseCacheFile = TEMP_FOLDER . "/manifestClassParse-" . str_replace(array("/",":", "\\"),"_", realpath($filename));
    390       if(!file_exists($parseCacheFile) || filemtime($parseCacheFile) < filemtime($filename)) {
    391          $tokens = token_get_all($file);
    392          $classes = self::getClassDefParser()->findAll($tokens);
    393          $interfaces = self::getInterfaceDefParser()->findAll($tokens);
    394          
    395          $cacheContent = '<?php
    396             $classes = ' . var_export($classes,true) . ';
    397             $interfaces = ' . var_export($interfaces,true) . ';';
    398          if($fh = fopen($parseCacheFile,'w')) {
    399             fwrite($fh, $cacheContent);
    400             fclose($fh);
    401          }
    402          
    403       } else {
    404          include($parseCacheFile);

    Trace

    * fopen(/tmp/silverstripe-cache-home-phonicfm-public_html/manifestClassParse-_home_phonicfm_public_html_cms_code_AssetAdmin.php,w)
    Line 398 of ManifestBuilder.php
    * ManifestBuilder::parse_file(/home/phonicfm/public_html/cms/code/AssetAdmin.php)
    Line 348 of ManifestBuilder.php
    * ManifestBuilder::allClasses(Array)
    Line 213 of ManifestBuilder.php
    * ManifestBuilder::get_manifest_info(/home/phonicfm/public_html,Array)
    Line 98 of ManifestBuilder.php
    * ManifestBuilder::create_manifest_file()
    Line 91 of DatabaseAdmin.php
    * DatabaseAdmin->build()
    Line 130 of DevelopmentAdmin.php
    * DevelopmentAdmin->build(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(dev/build/)
    Line 115 of main.php

    4618 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.