Fatal error: require_once()

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

Fatal error: require_once()

Postby alex32 » Tue Jan 11, 2011 5:47 am

Hi

I'm new to Xataface,
I tried to create a new app with makesite but I got - page NOT FOUND : (Xataface is correctly installed as per dataface_info.php)

http://www.mysite.it/shop/xataface/makesite ../prestashop/user root:secret@http://63.129.100.26/db_3 ../xataface

or

http://www.mysite.it/shop/xataface/makesite ../prestashop/user root:secret@63.129.100.26/db_3 ../xataface

but I got error :

The requested URL /shop/xataface/makesite ../prestashop/user root:secret@http://63.129.100.26/db_3 ../xataface was not found on this server.



Then I created manually config.ini and index.php but it looks my server doesn't like to execute index.php > line 2 :

Warning: require_once() [function.require-once]: URL file-access is disabled in the server configuration in /web/htdocs/www.mysite.it/home/shop/prestashop/user/index.php on line 2

Warning: require_once(http://www.mysite.it/shop/xataface/data ... ic-api.php) [function.require-once]: failed to open stream: no suitable wrapper could be found in /web/htdocs/www.mysite.it/home/shop/prestashop/user/index.php on line 2

Fatal error: require_once() [function.require]: Failed opening required 'http://www.mysite.it/shop/xataface/dataface-public-api.php' (include_path='.:/php5/lib/php/') in /web/htdocs/www.mysite.it/home/shop/prestashop/user/index.php on line 2



config.ini
------------
[_database]
host = "63.129.100.26"
user = "root"
password = "secret"
name = "db_3"

[_tables]
Product = "ps_products"
Supplier = "ps_supplier"

index.php
------------
<?
require_once 'http://www.mysite.it/shop/xataface/dataface-public-api.php';
df_init(__FILE__, 'http://www.mysite.it/shop/xataface');
$app =& Dataface_Application::getInstance();
$app->display();
?>

I cannot configure my server , is there any way to use Xataface ? :(

many thanks
alex32
 
Posts: 1
Joined: Tue Jan 11, 2011 5:27 am

Re: Fatal error: require_once()

Postby shannah » Fri Jan 14, 2011 12:42 pm

The problem is your require_once call on the first line of your index.php file. It should refer to the local copy of dataface-public-api.php, not the url. (i.e. it should look like :
Code: Select all
require_once 'xataface/dataface-public-api.php';

not
Code: Select all
require_once 'http://example.com/xataface/dataface-public-api.php';
shannah
 
Posts: 4457
Joined: Wed Dec 31, 1969 5:00 pm


Return to Xataface Users

Who is online

Users browsing this forum: No registered users and 26 guests

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