Unable to create application

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

Unable to create application

Postby mikep » Fri Apr 24, 2009 2:24 pm

I installed Xataface according to the instructions and the dataface_info.php file when displayed in my browser tells me that it is installed correctly.

If i go to the xataface/installer.php file and select "Create application for existing database", my server tells me "Object not found!". The URL looks like this

http://localhost/xataface-1.1.5r2/%3C?=$_SERVER[%27PHP_SELF%27]?%3E?-action=db2app

Is there a way to fix this?



Thanks
mikep
 
Posts: 44
Joined: Fri Apr 24, 2009 2:21 pm

Postby fongchun » Fri Apr 24, 2009 4:47 pm

I've never used the installer.php file, but I just tried it and it appears to have all this bugs in it. It doesn't appear to be updated.

I would simply do a creation of your application. It is very simple. Just follow this tutorial:
fongchun
 
Posts: 30
Joined: Sun Aug 03, 2008 12:23 am
Location: Vancouver, BC

Postby shannah » Tue Apr 28, 2009 11:57 am

OK.. The reason this problem was happening is because the installer script used a short open tag. The rest of the framework was recently revamped to not use any tags like this.

I'll look into fixing this for future versions. In the mean time you can fix this problem by enabling short open tags in your php.ini file (a quick search on this forum or on google should come up with a tonne of info on how to do this).

Alternatively, I encourage you to try a manual install (or use the makesite script) as it is quite easy to do.

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

Postby mikep » Thu Apr 30, 2009 8:21 am

Ok. I will give all of these things a try. I have found multiple resources on using makescript and a manual install. I have tried a few with little success, although I admit I was in a bit of a rush at the time. Which is the best one to look at?
mikep
 
Posts: 44
Joined: Fri Apr 24, 2009 2:21 pm

Postby shannah » Thu Apr 30, 2009 10:25 am

Any of them should be fine. The one that fong mentioned above:
http://xataface.com/wiki/How_to_build_a ... es_of_code

is to the point and should get you there.
shannah
 
Posts: 4457
Joined: Wed Dec 31, 1969 5:00 pm

Postby mikep » Thu Apr 30, 2009 11:35 am

Ok. so I followed those directions exactly. When I got to creating the index.php file, I copied and pasted
<?php
// Include the Xataface API
require_once 'xataface/dataface-public-api.php';

// Initialize Xataface framework
df_init(__FILE__, 'xataface');
// first parameter is always the same (path to the current script)
// 2nd parameter is relative URL to xataface directory (used for CSS files and javascripts)

// Create a new application
$app =& Dataface_Application::getInstance();

// Display the application
$app->display()


into an index.php file.

When i view this file with my web browser, a blank page comes up.

I tried to go to "view page source" but the page source is empty.

I also tried adding ?> at the end of the index.php file and the results remain the same.

I know PHP is working on my apache server because phpMyAdmin is working.

If i replace __FILE__ with the path to my application (/srv/www/htdocs/myapp/' and add ?> at the end of the script, i get a message that says "Error loading config file. No tables specified"

my config file looks like

[_database]
host=localhost
name=test
user=mikep2
password=mikep2

[_tables]
;; This section lists the tables to include in your application menu
table1=Job
table2=customer


What am I doing wrong?
mikep
 
Posts: 44
Joined: Fri Apr 24, 2009 2:21 pm

Postby shannah » Thu Apr 30, 2009 12:24 pm

See
http://xataface.com/wiki/Troubleshooting
for troubleshooting the blank white screen issue.

Report back with the error message.
shannah
 
Posts: 4457
Joined: Wed Dec 31, 1969 5:00 pm

Postby mikep » Thu Apr 30, 2009 5:54 pm

I gave up and tried the makesite script. It worked so I'm in business.

Thanks a lot,
Mike
mikep
 
Posts: 44
Joined: Fri Apr 24, 2009 2:21 pm


Return to Xataface Users

Who is online

Users browsing this forum: No registered users and 11 guests

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