Post install blank page and no errors in logs

A place for users and developers of the Xataface to discuss and receive support.

Post install blank page and no errors in logs

Postby aontech » Sun Oct 04, 2009 8:01 pm

Okay, I've been beating my head on this all day yesterday and today. I cannot figure out what I am doing wrong. Details:

index.php:
Code: Select all
error_reporting(E_ALL);
ini_set('display_errors', 'on');

require_once('/home/username/public_html/xataface/dataface-public-api.php');
df_init(__FILE__, '/home/username/public_html/xataface');
$app =& Dataface_Application::getInstance();
$app->display;


conf.ini:
Code: Select all
[_database]
host = "localhost"
user = "user_fow"
password = "**********"
name = "user_FacultyOfWidgetry"

[_tables]
Course = "Course"
Program = "Program"


In the index.php, I've tried every imaginable combination of relative and explicit paths I can think of. This is on a cPanel server, so Apache logs are in /usr/local/apache/logs/error_log ... no errors except for the missing favicon.ico

This works without error also:
Code: Select all
require_once('../xataface/dataface-public-api.php');
df_init(__FILE__, 'xataface');

... and this:
Code: Select all
require_once('../xataface/dataface-public-api.php');
df_init(__FILE__, '/xataface');


If I change the require_once or df_init paths to this:
Code: Select all
require_once('xataface/dataface-public-api.php');
df_init(__FILE__, '/xataface');


... I get this error displayed:

Warning: require_once(xataface/dataface-public-api.php) [function.require-once]: failed to open stream: No such file or directory in /home/username/public_html/fow/index.php on line 5

Fatal error: require_once() [function.require]: Failed opening required 'xataface/dataface-public-api.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/username/public_html/fow/index.php on line 5

And Apache error_log shows no error.

Oh, the link to: www.aonx.net/xataface/dataface_info.php works fine and says I'm good to go.

Safe Mode = Off
Open BaseDir = Not permitted

The server does run suExec/suhosin in case that matters. I own the server so I have access to everything. I f someone can see what I obviously cannot, I would be most appreciative of some guidance.
Don Bledsoe
aontech
 
Posts: 10
Joined: Thu Oct 01, 2009 1:57 pm

Postby aontech » Tue Oct 06, 2009 3:24 pm

I've been reading ... blank page ... no Apache errors in log other than the missing favicon.ico ... did a view source and checked to see if anything ... nothing.

I also re-uploaded some of the files ... no change.

I also tried to run the ./makefile, but since I am root on the server, I get a permission denied error. I'm not sure how to get around that.
Don Bledsoe
aontech
 
Posts: 10
Joined: Thu Oct 01, 2009 1:57 pm

Postby aontech » Tue Oct 06, 2009 4:27 pm

Okay ... I set myself up a shell account ... fixed the permissions on makesite and successfully ran the script ... and it made the same files I created manually ... and I still get a blank page with an empty view source. I really need some ideas as I've run out of options and ideas.
Don Bledsoe
aontech
 
Posts: 10
Joined: Thu Oct 01, 2009 1:57 pm

Postby shannah » Wed Oct 07, 2009 11:25 am

So what you are saying is that:
1. You get a blank white screen.
2. There are no errors in the error log.

This is tricky. Do you have any files in there other than conf.ini and index.php?

Make sure that your templates_c directory is writable by the webserver.

What version of PHP, MySQL, Web Server, OS, Xataface are you using?
shannah
 
Posts: 4457
Joined: Wed Dec 31, 1969 5:00 pm

Postby aontech » Wed Oct 07, 2009 1:48 pm

So what you are saying is that:

1. You get a blank white screen. Yes.
2. There are no errors in the error log. There are no errors in the Apache error log in /usr/local/apache/logs

This is tricky. Do you have any files in there other than conf.ini and index.php? In the webroot there's an index.html "under construction" page. In the app directory — fow — there's conf.ini, error_log, .htaccess, and index.php

The last entry in the Xataface error_log is:
Code: Select all
[04-Oct-2009 22:17:52] PHP Warning:  require_once(xataface/dataface-public-api.php) [<a>function.require-once</a>]: failed to open stream: No such file or directory in /home/username/public_html/fow/index.php on line 5
[04-Oct-2009 22:17:52] PHP Fatal error:  require_once() [<a>function.require</a>]: Failed opening required 'xataface/dataface-public-api.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/username/public_html/fow/index.php on line 5


Make sure that your templates_c directory is writable by the webserver. It is, chmod 0777 and confirmed by running dataface_info.php

What version of PHP, MySQL, Web Server, OS, Xataface are you using?
PHP 5.2.9
MySQL 5.0.81
Web Server: cPanel 11.24.5
Apache 2.2.11
OS: CentOS 5 Enterprise
Xataface 1.2.1


Steve ... is there the possibility I need to re-upload the .php pages? I normally upload everything is binary mode, which hasn't caused any problems elsewhere, but right now everything is in the air to be sorted out. I can re-upload all of the .php and .js files in text mode and see if that makes a difference. If you need access to the machine, let me know and I'll PM you a login.

Thank you for your help!
Don Bledsoe
aontech
 
Posts: 10
Joined: Thu Oct 01, 2009 1:57 pm

Postby shannah » Wed Oct 07, 2009 5:54 pm

Steve ... is there the possibility I need to re-upload the .php pages?


Sounds like a logical next step. It is strange that you're not getting any errors. Very strange.

If you want to email me some login details i can take a look.

-Steve
shannah
 
Posts: 4457
Joined: Wed Dec 31, 1969 5:00 pm

Postby shannah » Wed Oct 07, 2009 6:50 pm

shannah
 
Posts: 4457
Joined: Wed Dec 31, 1969 5:00 pm

Postby aontech » Thu Oct 08, 2009 7:56 am

The error is in the index.php file:
Code: Select all
$app->display;

This should be:
Code: Select all
$app->display();

Missing ().
Works great now.
Don Bledsoe
aontech
 
Posts: 10
Joined: Thu Oct 01, 2009 1:57 pm


Return to Xataface Users

Who is online

Users browsing this forum: No registered users and 13 guests

cron
Powered by Dataface
© 2005-2007 Steve Hannah All rights reserved