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.

General Questions /

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

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

Login Page Not Displaying


Go to End


21 Posts   7662 Views

Avatar
robgreen

Community Member, 11 Posts

4 December 2009 at 2:48am

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.

Avatar
Double-A-Ron

Community Member, 607 Posts

4 December 2009 at 8:01am

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

Avatar
robgreen

Community Member, 11 Posts

4 December 2009 at 10:15pm

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?

Avatar
Double-A-Ron

Community Member, 607 Posts

4 December 2009 at 11:34pm

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 :-))

Avatar
robgreen

Community Member, 11 Posts

4 December 2009 at 11:51pm

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 :-/

Avatar
Double-A-Ron

Community Member, 607 Posts

5 December 2009 at 3:25pm

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

Avatar
hive.net.au

Community Member, 40 Posts

5 December 2009 at 7:57pm

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.

Avatar
robgreen

Community Member, 11 Posts

16 December 2009 at 2:34am

@ 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