FsPassengers Forums
[Solved] FsPadmin script returns blank page. - Printable Version

+- FsPassengers Forums (http://www.fspassengers.com/forum)
+-- Forum: FsPassengers (http://www.fspassengers.com/forum/forumdisplay.php?fid=3)
+--- Forum: FsPassengers Support (http://www.fspassengers.com/forum/forumdisplay.php?fid=5)
+--- Thread: [Solved] FsPadmin script returns blank page. (/showthread.php?tid=8340)



[Solved] FsPadmin script returns blank page. - rudyz - 28-03-2010

I have downloaded the latest script for using the FSP on my VA.

I have IIS with php 5.2 installed. I can run test.php and see that php is working and modules are enabled.

However when I run index.php in the FsPadmin, I only get a blank page. When I view the source of the blank page, the below is
all that is
shown

<?
if(!defined("FSP")) return;
#
# common.php this file do the SQL database connexion
#
######### FOR CONFIGURATION SEE SETTING.PHP #########

//////////////////////////////////////////////////////////
// DATABASE CONNEXION
//////////////////////////////////////////////////////////
$databaseconnexion=true; // assume we will be connected
if($cfg['DebugTestonLocalHost']==false)
$db = @mysql_connect($cfg['mysql_server'],$cfg['user'],$cfg['passwordbase']);
else
$db = @mysql_connect("localhost","","");
if(!$db)
{
$databaseconnexion=false;
}
else if(!@mysql_select_db(($cfg['DebugTestonLocalHost'])? $cfg['databaselocalhost']:$cfg['database'],$db))
{
$databaseconnexion=false;
}
//////////////////////////////////////////////////////////
?>


I followed the instructions in the readme...although I didnt get very far as the first page doesnt display. Do I need to
change something
more in the script in order to run the first page?

Also, I should say that I created a blank Access database, which I expected to connect to through the admin script somewhow,
but I
havent gotten that far.

I also created a blank MySQL database too, although I would prefer to use Access. (But at this point I would be happy to get
it working
whether is MySQL or Access)


Is there anyone out there that can help me with this? I have PHP and MySql installed and working fine. I know this because I
am able to
create and delete databases via PHPMyAdmin. So I am sure there is nothing wrong with how my system is configured.

I have unzipped the FsPadmin script to the root of my website but when I browse to http://mysite/FsPadmin/index.php I get
nothing but a
blank white page.

Please if there is anyone who can help me troubleshoot this, I would be very grateful!



Post Edited ( 03-28-10 15:36 )

moderator edit:
Title edited to remove all caps
Whiskey-zulu



Re: FsPadmin script returns blank page! Help Please! - Joeflyer - 28-03-2010

Rudy, you never mentioned if you had searched within this forum for a similar issue, so I will start with one of many threads I searched by
using "FsP Admin script" in the search field :

http://www.fspassengers.com/forum/showthread.php?tid=8261

Keep in mind, this is just one I found. You can view through as many of them as you can find in order to find some resolution to the
problem. Since I am not an expert by any means regarding admin scripts, I cannot provide you with valuable assistance on this one right
away.




Re: FsPadmin script returns blank page! Help Please! - rudyz - 28-03-2010

Quote:Joeflyer wrote:
Rudy, you never mentioned if you had searched within this forum for a similar issue, so I will start with one of many threads I searched by
using &quot;FsP Admin script&quot; in the search field :

http://www.fspassengers.com/forum/showthread.php?tid=8261

Keep in mind, this is just one I found. You can view through as many of them as you can find in order to find some resolution to the
problem. Since I am not an expert by any means regarding admin scripts, I cannot provide you with valuable assistance on this one right
away.

Hi Joe Flyer,

I have searched the forum with no results. I even emailed the author (Dan) with no reply, which is why I posted on the forum. I hope
someone can help fix this, as my decision to buy this and use it for my VA wholly depends on getting it working. I have only tried the
program on my pc and it seems a really good addon on for individual users. However I my intended use would be to integrate it to my VA....which in turn would lead to more users. (good for the software author right?)

BTW I posted in the other forum first because when I did my search for help initially, that was the only forum where I found anything relevant to my issue. I then realised that after several days and even an email to the maker of FSP that no one was responding so I moved the post to the support forum. Users aren't given the option to close or move a post, so therefore I could only repost in the support forum. I wasnt flooding anything and to say so or to insinuate that I was is a bit presumptious (especially since it should have been obvious by my post count that I am new to this forum). Please edit your post and remove the accusation of flooding and simply say that you have closed the thread as it is now in the forum where it is likely to get the best result. As the old addage says, you attract more flies with honey than vinegar. Smile

Lastly, if support for the scripts isnt offered by the maker(s) of the software can somebody let me know, as then I won't waste anymore time trying to get it working, and I can look into other VA integration options such as VAFS or similar.

Thank you



Post Edited ( 03-28-10 12:54 )


Re: FsPadmin script returns blank page! Help Please! - rudyz - 28-03-2010

Ok, I have a small update. I opened the FsPadmin page in a browser on a differnt machine. This time the first page loaded. It was a page
with a solid grey background. on that page was the following:

FsPassengers 1.5 admin


0) { echo "wrong login, try again."; } else { echo " "; } ?>

User :
pass :

I entered the user demo and pass demo (per the instructions in the readme.txt)

I submitted the page and then the blank page as shown in my original post loaded again. If I try to reload the page to get back to the
original login page its only the blank page. I have cleared my browser cache, I have rebooted my machine, and I have rebooted my server. I had been using Internet Explorer, and have also tried Firefox.
Still only the blank page.

Any ideas?

Anyone?



Post Edited ( 03-28-10 13:35 )


Re: SOLVED! FsPadmin script returns blank page! Help Please! - rudyz - 28-03-2010

Well...after ALOT of trial and error, and then alook at the code that is included with FsPadmin 1.5, I finally resolved the issue
of the blank page and errors on the login. There was a combination of problems. The first and most imprtant being that with newer
releases of php you MUST use the formal php tag eg <?php "your tag here" ?>. Using the old informal tag e.g. <? "your tag
here"
?> will not work!

After I got the page to load, I saw that I had some permission settings that were not good. On unix systems you would need to chmod 777
to the files to give them read, write, execute. But on my windows system I had to go to IIS management console and give script access to
the files.

Now having said that I find it very odd that the instructions included in the readme file say nothing about this. I also find it
very odd that a "simple" and "basic" script that is designed for anyone to use hasnt been better commented and that it doesnt use the
formal tags as mentioned above.

I am not completely up and running yet, as I have another problem which I will start a new thread for, but my intention is to make available
a new version of this script with the corrected tags and better set of instructions for setting everything up. Something that is simple and
basic shouldnt take the better part of 3 days to get working. Smile



Post Edited ( 03-28-10 15:48 )