URL Problems
10 posts
• Page 1 of 1
Hi
I have setup the auction site to sell some old equipment to raise money for charity and Web Auction looks exactly like what we need I have a couple of problmes that i cant work out and if some one could help would be great? It is running on Win 2003 Svr with IIS6, PHP 5.0.4, mysql v5 1, The image links to the auction items dont work under IE6 they are missing the url of the site and you cant login, This may be becuase some of the URL's are badly formatted ie have extra backslashes and in someplaces fordward slashes (not sure what i have wrong here) IE6 http://tables/products/product_image/HP_s7540.jpg http://charityauction//tables/products/ ... _s7540.jpg http://charityauction\/index.php?-action=browse&-table=products_categories=6 2, You cannot log out, it times out with the error cant find page. Login Thanks for you help Dave
My post is missing most of the info between "IE6" and "Thanks for you help" I will try again.
THe second problems is that I can login with IE7 because it handles the malformed URL's but then you cannot log out it times out with page cannot be found the URL is (i added some spaces) (< a href="http : // charityauction\/index.php?-table=products&-action=logout&-cursor=0&-skip=0&-limit=30&-mode=list&-sort=product_categories+asc" title="Logout">Logout< /a >)
Hi Dave, Thanks for posting.Ê IIS is somewhat uncharted territory for Dataface.Ê I have installed it a couple of times on IIS and I've heard of other people using it on IIS, but most people are running it on Apache.Ê So there could be some bugs that show up on IIS that don't show up on Apache. That said, we can start trying to solve this problem by looking in the config.inc.php file and seeing what the site path and urls are set to.Ê If there are some weird backslashes, change them. Another issue to be concerned with on IIS is that it doesn't use .htaccess files.Ê You will want to take measures to make sure that your web server doesn't publish the conf.ini file, because it contains username/password info to the database.Ê In apache this is achieved using an .htaccess file.Ê I'm not sure how it's done with IIS - but there is surely a way. Let me know how it goes. -Steve
Thanks for the responce Steve, I have tried all sorts of options to fix but it must be with IIS.
Do you have any other ideas? I cant install apache on this server, security isnt a big problem it will be an internal site only. The problem is the the links are all created with a \ after the host name. i.e. http : // charityauction \ / index.php?-table=p... Thanks again Dave
Hi Steve
I appreciate your help, this is the config.inc.php file I have tried a few options using relative paths ect appears to make no diffrence. i put the spaces in the url so it would post. Thanks Dave * @created April 11, 2007 * * Change these values to correspond with the location of your dataface install * location. */ define('DATAFACE_INSTALLATION_PATH', 'D:\data\WebSites\web_auction\dataface'); // The path to your dataface installation. This can be relative to the // index.php file, or absolute. define('DATAFACE_INSTALLATION_URL', 'http: // charityauction/dataface'); // The URL to your Dataface installation location as you would type it // into a web browser. This can also be relative to your index.php // file, or it can be absolute (e.g. http://www.yourdomain.com/dataface) ?>
Is that charityauction domain correct?Ê What is the full domain where it is hosted.Ê You probably mean to have something like: http://yourdomain.com/charityauction/dataface -Steve
Something you can try is replacing line 33 in dataface\init.php with -
define('DATAFACE_SITE_URL', str_replace( '\\', '/', dirname($_SERVER['PHP_SELF']))); This worked here, where I found the same url problem. I thought there was one other thing I needed to change, but I can't verify that right now.
Something you can try is replacing line 33 in dataface\init.php with -
define('DATAFACE_SITE_URL', str_replace( '\\', '/', dirname($_SERVER['PHP_SELF']))); Hey it worked a treat; it is now 100% including the logout function. Thanks Ken and Steve for all your help, Steve it?s a great piece of software will be really handy. Dave
backslash problemAfter a year and a half, I'm resurrecting this post, just to give a big thank-you. After wrestling with this problem when porting a linux install of Xataface to a WinXP machine running xampp/apache, it worked.. It took me a day and a half of searching and poking to find this fix, and it was exactly what I was looking for.
Thanks Again! Rory
10 posts
• Page 1 of 1
Return to Web Auction Discussion Who is onlineUsers browsing this forum: No registered users and 0 guests |