Cannot get it to work

Last post 01-10-2011, 1:54 PM by loet. 2 replies.
Sort Posts: Previous Next
  •  01-10-2011, 4:34 AM 65651

    Cannot get it to work

    Hello,
     
    After testing on my computer (localhost) I got the script working the way I want it.
    Uploading, creating thumbnails, data in database etc.
    So I uploaded it to the webserver and it is not working anymore.
    I keep getting an error, it cannot find the right files.
    Tried every solution I could find in the forum but no result.
    So I uploaded it to my other webserver and there it works OK.
    I think it has to do with the server path.
     
    Maybe you can take a look at it?
    I have setup a FTP account where you can take a look at the files.
    I can mail you the login if you want.
     
     
    Maybe this helps a little, one of the errors I recieve in the mail from my 404 script:
     
    Website:                             Locations.nl (locations.nl)
    Foutcode:           404 Bestand niet gevonden ()
    Ontstaan:           Mon Jan 10 9:51:50 UTC 2011
    Aangevraagde URL:       /locaties/_beheer/upload/mounted-storage/home81b/sub002/sc19129-SZGO/locations.nl/locaties/_beheer/upload/phpuploader/ajaxuploaderresource.php?type=script
    User Address:   80.56.32.107
     
    Thanks in advance,
    Loet van Oostenbde
  •  01-10-2011, 9:55 AM 65656 in reply to 65651

    Re: Cannot get it to work

    Dear Loet van Oostenbde,
     
    1. please open file "\phpuploader\include_phpuploader.php"
    2. you can find the following code around line 395
         $cd=dirname($this->GetWebPath(__FILE__)); 
         $this->ResourceDirectory="$cd/resources";
         $this->ResourceHandler="$cd/ajaxuploaderresource.php";
         $this->UploadUrl="$cd/ajaxuploaderhandler.php";
    3. please hard_coded the $cd, change it to actual url
         $cd=dirname($this->GetWebPath(__FILE__)); 
         $cd = "/locaties/_beheer/upload/phpuploader";
         $this->ResourceDirectory="$cd/resources";
         $this->ResourceHandler="$cd/ajaxuploaderresource.php";
         $this->UploadUrl="$cd/ajaxuploaderhandler.php";
    4. test it again
    Keep us posted.
     
    Thank you for asking
    Eric@cutesoft.net 
     

  •  01-10-2011, 1:54 PM 65659 in reply to 65656

    Re: Cannot get it to work

    Hello Eric,
     
    That did the trick.
    Had already tested with different path's but did not come to this one.
    Now I can keep on testing some more.
    I hope the owner of the site also likes the script so we can buy and use it on the site.
     
    If I have some more questions I wil let you know.
     
    Loet van Oostende
View as RSS news feed in XML