The eAuction Support Forums
https://www.everyscript.de/cgi-bin/yabb/YaBB.pl eAuction 1.6.1.x >> Start Up and more >> Images are broken. https://www.everyscript.de/cgi-bin/yabb/YaBB.pl?num=1082984272 Message started by brookstech on 04/26/04 at 14:57:52 |
Title: Images are broken. Post by brookstech on 04/26/04 at 14:57:52 My Item images and Icons will not display. It appears thta the "img_url" and the "img_dir" are giving two differant paths. here is the code from the script: $config{'img_url'} = "http://$ENV{'HTTP_HOST'}/$config{'html_dir'}/img_upload"; $config{'img_dir'} = "$config{'html_path'}/img_upload"; Here are the results: img_url: http://mywebsite/eAuction/img_upload/ Img_dir: /cgi-bin/eauction161/eauction.pleAuction/img_upload/ the reason why the image does not appear is obvious, but I don't know how to correct this issue. Anyone have any ideas? |
Title: Re: Images are broken. Post by Forum Admin on 04/26/04 at 16:03:17 Quote:
Your basepath is not OK! Check data of eConfig161.pl |
Title: Re: Images are broken. Post by brookstech on 04/26/04 at 20:14:32 Alrighty, I ran a basepath finding script and it told me my basepath is C:\Program Files\Abyss Web Server\htdocs How do I set this up in the config file? |
Title: Re: Images are broken. Post by brookstech on 04/27/04 at 02:06:26 All I get when I put in my correct basepath is: Error No such file or directory YOUR SET UP IS NOT CORRECT Click InterWer Script-Forums if you need support I'm so confused... my new basepath is: /abyss/htdocs ?? |
Title: Re: Images are broken. Post by Forum Admin on 04/27/04 at 09:59:19 Your problem: cgi-bin is a sub-directory of htdocs (and that is not a good idea) Soluten: Step 1 Code:
but I think you are running a win system so you have to set the full path. For example: $config{'basepath'} = 'c:/Program Files/abyss/htdocs/cgi-bin/eAuction_161'; or $config{'basepath'} = 'c:/Program Files/Abyss Web Server/htdocs/cgi-bin/eAuction_161'; Step 2 - Search eAuction.pl for sub get_path - search sub get_path for the line $config{'basepath'} .= $config{'auction_dir'}; and set # as the first char of this line. #$config{'basepath'} .= $config{'auction_dir'}; |
Title: Re: Images are broken. Post by brookstech on 04/27/04 at 21:30:53 Hmmm, I tried everything you suggested and it still give me: Error No such file or directory YOUR SET UP IS NOT CORRECT Click InterWer Script-Forums if you need support Is there a directory structure that is required by eAuction? Example of mine: Cgi-bin ==>eauction_161 ====>all my eauction scripts htdocs ==>eauction161 ====>contains my index.html file that calls my script When I let the program set my basepath for me, it puts the folders and files in the CGI-BIN directory with the rest of the scripts...but when I try to set my own, nothing works. I use this to call the script: <!--#exec cgi="/cgi-bin/eauction_161/eauction.pl"--> any ideas? |
Title: Re: Images are broken. Post by Forum Admin on 04/28/04 at 15:17:28 Sorry ... but because I don't know your server-configuration, I can't help. |
Title: Re: Images are broken. Post by brookstech on 04/28/04 at 15:44:13 Thats okay... Is there a perl command that can copy or move files from one place to another on my server? or is there a way to shell to a program that can do it for me? for now, I am done trying to get the directorys to match...if I can just move the files after "post" has be pushed all will be fine |
Title: Re: Images are broken. Post by Forum Admin on 04/28/04 at 22:20:17 The Perl syntax for moving a file is: rename "$old_path/$file", "$new_path/$file"; |
Title: Re: Images are broken. Post by brookstech on 04/29/04 at 23:21:21 Thanks, I'll give it a go! |
The eAuction Support Forums » Powered by YaBB 2.2! YaBB © 2000-2007. All Rights Reserved. |