PDA

View Full Version : White screen forum - HELP


Jonm
05-17-2016, 06:07 PM
Right then,

when viewing the following URL - www.staffs-vw.co.uk all I see is a white screen, but when I view this URL www.staffs-vw.co.uk/forum.php I see the site.

Can anyone tell me why? I'm stuck.....

Dave
05-17-2016, 06:43 PM
Review the settings at AdminCP > Settings > Navigation Manager.
Everything correctly set at that page?

Bought a 2010 VW Jetta yesterday, amazing car. :D

Jonm
05-17-2016, 07:01 PM
seems ok

https://vborg.vbsupport.ru/external/2016/05/15.png

--------------- Added 1463519011 at 1463519011 ---------------

expanded view

https://vborg.vbsupport.ru/external/2016/05/16.png

squidsk
05-17-2016, 07:29 PM
Check to see that you have an index.php in the folder.

Jonm
05-17-2016, 07:33 PM
Check to see that you have an index.php in the folder.


it's there and this is what it looks like

<?php
/*================================================= =====================*\
|| ################################################## ################## ||
|| # vBulletin 4.2.0 Patch Level 3 - Licence Number XXXX
|| # ---------------------------------------------------------------- # ||
|| # Copyright �2000-2012 vBulletin Solutions Inc. All Rights Reserved. ||
|| # This file may not be redistributed in whole or significant part. # ||
|| # ---------------- VBULLETIN IS NOT FREE SOFTWARE ---------------- # ||
|| # http://www.vbulletin.com | http://www.vbulletin.com/license.html # ||
|| ################################################## ################## ||
\*================================================ ======================*/

/* Tell forum.php to redirect
to the default url as defined
in the navigation manager */
define('VB_REDIRECT', true);

/**
* If you want to move this file to the root of your website, change the
* line below to your vBulletin directory and uncomment it (delete the //).
*
* For example, if vBulletin is installed in '/forum' the line should
* state: define('VB_RELATIVE_PATH', 'forums');
*
* Note: You may need to change the cookie path of your vBulletin
* installation to enable your users to log in at the root of your website.
* If you move this file to the root of your website then you should ensure
* the cookie path is set to '/'.
*
* See 'Admin Control Panel
* ->Cookies and HTTP Header Options
* ->Path to Save Cookies
*/

//define('VB_RELATIVE_PATH', 'forums');

// Do not edit anything below //
if (defined('VB_RELATIVE_PATH'))
{
chdir('./' . VB_RELATIVE_PATH);
}

require('forum.php');


/*================================================= =====================*\
|| ################################################## ##################
|| # Downloaded: 10:46, Fri Dec 7th 2012
|| # CVS: $RCSfile$ - $Revision: 60957 $
|| ################################################## ##################

TheLastSuperman
05-17-2016, 07:37 PM
If an index.html file exists on the server, temporarily rename it and then check.


Any recent changes to .htacess?
Any recent changes to mods? (new installs or uninstalls)
Has your host recently updated the server? (PHP version etc)
I see vBSEO listed at top left in the drop-downs, is it still installed? If yes it could be hacked (it's vulnerable now, the company and product is gone and it's not supported or secure) you need to consider replacing it with DBSEO or uninstalling and going with mod rewrite friendly url structure.


Edit: http://www.staffs-vw.co.uk/forum.php is loading fine, I bet it's a index.html file loading before index.php as the server is defaulted to that load order.

Jonm
05-17-2016, 07:41 PM
If an index.html file exists on the server, temporarily rename it and then check.


Any recent changes to .htacess?
Any recent changes to mods? (new installs or uninstalls)
Has your host recently updated the server? (PHP version etc)



No changes to htacess, no new mods, I did delete the garage mod a while back and no new php that I know of.

renamed and I still see white

https://vborg.vbsupport.ru/external/2016/05/13.png

by viewing url/forum.php i see this

https://vborg.vbsupport.ru/external/2016/05/14.png

squidsk
05-17-2016, 08:33 PM
TheLastSuperman meant rename/copy your index.php to testme.php (or something similar) and point your browser to testme.php and see what happens.

Is there anything in the logs?

Jonm
05-18-2016, 09:57 AM
Edit: http://www.staffs-vw.co.uk/forum.php is loading fine, I bet it's a index.html file loading before index.php as the server is defaulted to that load order.

I'm new to all this and still learning, any help with what to do would be great thanks :up:

--------------- Added 1463573233 at 1463573233 ---------------

TheLastSuperman meant rename/copy your index.php to testme.php (or something similar) and point your browser to testme.php and see what happens.

Is there anything in the logs?

Where would I find the logs?

--------------- Added 1463612713 at 1463612713 ---------------

anyone?

--------------- Added 1463658798 at 1463658798 ---------------

Had another look around the web last night for ideas and still nothing to help..

Jonm
05-19-2016, 05:25 PM
turns out I had index.html and index.php in the folder so I deleted the html file and it works again.

TheLastSuperman
05-19-2016, 05:51 PM
TheLastSuperman meant rename/copy your index.php to testme.php (or something similar) and point your browser to testme.php and see what happens.

Is there anything in the logs?

Ohh, well I actually meant that I thought he had both an index.html and index.php and the server was simply loading index.html first because of directory index.

Reference: http://stackoverflow.com/questions/7873634/why-does-index-html-have-priority-over-index-php

turns out I had index.html and index.php in the folder so I deleted the html file and it works again.

Ahh so it was that! Well I'm not so useless after all lol, glad you have it sorted now :cool:. *Also Jonm, quite a bit to take in when running a site, you're doing just fine - take your time and all the pieces will fall into place as you go :D.