Jump to content

Recommended Posts

Posted

Hi,

Can anyone help me?

On the 31st May the hosting company I host my site with had a syatem crash and could only restore my site to the last backup.

However now when we uplaod photos and try to view all we get is a forbidden page and we can not see the photos etc.

I run a template site for use of Ebay and now 130 members have no photos and I get no replys from hosting company.

Can anyone help?

Thanks

Deanna

www.heaventemplates.co.uk

Posted

Hi and welcome to the forum :)

 

It sounds to me that there may be a permission problem on the images folder.

 

As for communication problem with the host, I think you should transfer your site to TCH which have excellent communication with its customers. :yes:

Posted

Welcome to the forums, Deanna! :)

 

From what I can tell, you are not seeing your photos because the img tags that display them are using bad src links. For example, one of the photos that is not displaying is trying to retrieve the image from this URL:

>..\screenshots\fantasy2.jpg

If the backslahses in the URL ("\") are replaced with forward slashes ("/"):

>../screenshots/fantasy11.jpg

...then the browser will display the picture.

 

You really haven't provided enough information to know why you get a 403 error when you try to upload pictures.

Posted

Hi,

I looked at all the permissions and they seem to be ok? I'm getting very worried as the site worked perfect before the crash and I have paid them alot of money and now all my members are cancelling.

I will email for quote but wouldn't know how to transfer everything, also wouldn't the problems still occar once on a different host.

Thanks

Deanna

www.heaventemplates.co.uk

Posted

Hi,

The problem is in my members area, when members uplaod there photos and you click to view the page says forbidden and then if you refresh about 10 times it will appear but then when you log in again it doesn't show.

Deanna

 

Welcome to the forums, Deanna!  :)

 

From what I can tell, you are not seeing your photos because the img tags that display them are using bad src links.  For example, one of the photos that is not displaying is trying to retrieve the image from this URL:

>..\screenshots\fantasy2.jpg

If the backslahses in the URL ("\") are replaced with forward slashes ("/"):

>../screenshots/fantasy11.jpg

...then the browser will display the picture.

 

You really haven't provided enough information to know why you get a 403 error when you try to upload pictures.

Posted
Hi,

I looked at all the permissions and they seem to be ok? I'm getting very worried as the site worked perfect before the crash and I have paid them alot of money and now all my members are cancelling.

I will email for quote but wouldn't know how to transfer everything, also wouldn't the problems still occar once on a different host.

Thanks

Deanna

www.heaventemplates.co.uk

First, welcome to the forums. In my (limited) opinion, the problems would occur on a different host if the script is written the same way. If you did not make any changes before (or immediately) after the crash, then I feel you could safely rule out script problems. Did the slashes recommended by David work?

Posted

Hi,

All was fine until the host crashed. Everytime we try to uplaod photos we get forbidden on the page but they all were fine before.

Sample:-

If you login as one of my members and look at there photos in My Photos you will see that only some thumballs show and when you click on the urls some work and then some say forbidden and when you log out and log back in then they don't show again, just get a forbidden page.

 

Login:-

User:-Helen

Pass:-Doncaster

 

www.heaventemplates.co.uk

 

 

 

Thanks

Deanna

 

 

Hi,

I looked at all the permissions and they seem to be ok? I'm getting very worried as the site worked perfect before the crash and I have paid them alot of money and now all my members are cancelling.

I will email for quote but wouldn't know how to transfer everything, also wouldn't the problems still occar once on a different host.

Thanks

Deanna

www.heaventemplates.co.uk

First, welcome to the forums. In my (limited) opinion, the problems would occur on a different host if the script is written the same way. If you did not make any changes before (or immediately) after the crash, then I feel you could safely rule out script problems. Did the slashes recommended by David work?

Posted
Hi and welcome to the forum :)

 

It sounds to me that there may be a permission problem on the images folder.

 

As for communication problem with the host, I think you should transfer your site to TCH which have excellent communication with its customers. ;)

 

 

I agree TCH is the best :)

Posted

I was able to login successfully with the username and password provided but I had to lower-case both of them, and not use a dash at the beginning of either of them. I never saw a "403 Forbidden" page during the time I browsed the site, so I wonder if the 403 error you saw were possibly due to invalid logins...?

 

The thumbnails on the "My Photos" page are dynamically generated by a php script every time the page is requested. The page loads *very* slowly as a result, because there are currently 126 thumbnails the script tries to generate at the same time. Also, the original images are retrieved via a URL instead of a local file system path, putting additional unnecessary load on the web server to retrieve the original images.

 

Where the thumbnails do not appear, an error is occuring in the thumbnail script. From what I could tell, there are two causes of the errors:

 

1) Most of the thumbnails that do not display reference an original file name that has a space in it. File names with spaces in them are really not a good idea - they just cause too many problems.

 

When the thumbnail script tries to retrieve the original image from a file name with a space in it, the following error is occurring in the script:

Warning:  getimagesize(http://www.heaventemplates.co.uk/member_dirs/Helen/SINDYCOUNTRYSETFACE/sindycountryset close.jpg): failed to open stream: HTTP request failed! HTTP/1.1 400 Bad Request

in /home/username/public_html/members_area/makethumb.php on line 25

I suspect this is a problem with the thumbnail script - that it is not expecting URLs to have file names containing spaces in them. I would highly recommend renaming the original jpgs so the file names do not have space in them, by deleting the spaces, or replacing them with "_" or "-", for example.

 

2) A few of the images uploaded are jpgs that PHP's imagecreatefromjpeg() function does not like. I believe there is something in the format of the .jpg that PHP does not understand. This is the error returned by PHP with such an image:

Warning:  imagecreatefromjpeg(): 'http://www.heaventemplates.co.uk/member_dirs/Helen/NEXTCARDIGAN/nextcardigan.jpg' is not a valid JPEG file in /home/username/public_html/members_area/makethumb.php on line 31

I don't know what you can do with such images, other than perhaps opening them in an image editor and re-saving the jpg file, so the format of the file may be subtly changed to something that PHP's jpg functions can read.

 

Hope this helps...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...