localhost problems

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

localhost problems

Postby LPruszynski » Thu Nov 06, 2008 11:16 am

First of all thank you for a fantastic product.
I have a strange problem running Xataface on MAMP. Xataface installs without any problems but then it adds an extra 8888 to the server. The example will explain it better:
My application is running on http://localhost:8888/leaflets/
but when I click on the detail or find tabs I get an extra 8888 http://localhost:8888:8888/leaflets/index.php?...... which obviously doesn't exist.
I've been running other open source stuff like Concrete5 and SilverStripe without any problem so this isn't a problem with my local server.
Does anyone have any solution for that as I would like to experiment first on my local server before uploading it to the cloud server.
Thanks in advance.
LPruszynski
 
Posts: 3
Joined: Wed Nov 05, 2008 5:02 am

Postby shannah » Thu Nov 06, 2008 2:35 pm

Thanks... clearly this is a bug that has slipped through the cracks. I haven't been running any test installs on non-standard ports.

Can you add the following to the end of your index.php file and let me know what it says:

Code: Select all
$out = array(
    'DATAFACE_SITE_URL'=>DATAFACE_SITE_URL,
    'DATAFACE_SITE_HREF'=>DATAFACE_SITE_HREF,
    'ABSOLUTE_URL' => df_absolute_url(DATAFACE_SITE_HREF)
);

print_r($out);
print_r($_SERVER);
shannah
 
Posts: 4457
Joined: Wed Dec 31, 1969 5:00 pm

Postby LPruszynski » Thu Nov 06, 2008 7:48 pm

Hi,
I get the following:
Execution Time: 0.589994907379

Array ( [DATAFACE_SITE_URL] => /leaflets [DATAFACE_SITE_HREF] => /leaflets/index.php [ABSOLUTE_URL] => http://localhost:8888:8888/leaflets/index.php ) Array ( [HTTP_USER_AGENT] => Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_5_5; en-us) AppleWebKit/528.1 (KHTML, like Gecko) Version/4.0 Safari/528.1 [HTTP_ACCEPT] => application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5 [HTTP_ACCEPT_LANGUAGE] => en-us [HTTP_ACCEPT_ENCODING] => gzip, deflate [HTTP_COOKIE] => /impresscms/modules/system/admin.php_SystemCustomtag_sortsel=name; /impresscms/modules/system/admin.php_SystemCustomtag_ordersel=ASC; /impresscms/modules/system/admin.php_limitsel=15; /impresscms/modules/system/admin.php_SystemCustomtag_filtersel=default; style=null; /impresscms/modules/smartobject/admin/link.php_SmartobjectLink_sortsel=date; /impresscms/modules/smartobject/admin/link.php_SmartobjectLink_ordersel=DESC; /impresscms/modules/smartobject/admin/link.php_limitsel=15; /impresscms/modules/smartobject/admin/link.php_SmartobjectLink_filtersel=default; /impresscms/modules/smartobject/admin/customtag.php_SmartobjectCustomtag_sortsel=name; /impresscms/modules/smartobject/admin/customtag.php_SmartobjectCustomtag_ordersel=ASC; /impresscms/modules/smartobject/admin/customtag.php_limitsel=15; /impresscms/modules/smartobject/admin/customtag.php_SmartobjectCustomtag_filtersel=default; /impresscms/modules/smartobject/admin/adsense.php_SmartobjectAdsense_sortsel=description; /impresscms/modules/smartobject/admin/adsense.php_SmartobjectAdsense_ordersel=ASC; /impresscms/modules/smartobject/admin/adsense.php_limitsel=15; /impresscms/modules/smartobject/admin/adsense.php_SmartobjectAdsense_filtersel=default; /impresscms/modules/smartobject/admin/rating.php_SmartobjectRating_sortsel=rate; /impresscms/modules/smartobject/admin/rating.php_SmartobjectRating_ordersel=ASC; /impresscms/modules/smartobject/admin/rating.php_limitsel=15; /impresscms/modules/smartobject/admin/rating.php_SmartobjectRating_filtersel=default; toggle_articles_detail=1; showLeftCol=true; PHPSESSID=e1625de67a057d454dc64db3e6e4d312 [HTTP_CONNECTION] => keep-alive [HTTP_HOST] => localhost:8888 [PATH] => /usr/bin:/bin:/usr/sbin:/sbin [SERVER_SIGNATURE] => [SERVER_SOFTWARE] => Apache [SERVER_NAME] => localhost [SERVER_ADDR] => ::1 [SERVER_PORT] => 8888 [REMOTE_HOST] => localhost [REMOTE_ADDR] => ::1 [DOCUMENT_ROOT] => /Users/les/Sites [SERVER_ADMIN] => you@example.com [SCRIPT_FILENAME] => /Users/les/Sites/leaflets/index.php [REMOTE_PORT] => 49204 [GATEWAY_INTERFACE] => CGI/1.1 [SERVER_PROTOCOL] => HTTP/1.1 [REQUEST_METHOD] => GET [QUERY_STRING] => [REQUEST_URI] => /leaflets/ [SCRIPT_NAME] => /leaflets/index.php [PHP_SELF] => /leaflets/index.php [REQUEST_TIME] => 1226025744 [argv] => Array ( ) [argc] => 0 [HOST_URI] => http://localhost:8888:8888 )
LPruszynski
 
Posts: 3
Joined: Wed Nov 05, 2008 5:02 am

Postby shannah » Thu Nov 06, 2008 8:31 pm

I have posted this as a bug in the issue tracker:
http://bugs.weblite.ca/view.php?id=397

I have uploaded a patch as part of the issue, although the only thing that had to change was one line in the config.inc.php file. You can download the fixed version at
http://weblite.ca/svn/dataface/core/tru ... ig.inc.php

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

Postby LPruszynski » Fri Nov 07, 2008 12:06 pm

Great, thanks
LPruszynski
 
Posts: 3
Joined: Wed Nov 05, 2008 5:02 am


Return to Xataface Users

Who is online

Users browsing this forum: No registered users and 27 guests

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