Oh no! Where's the JavaScript?
Your Web browser does not have JavaScript enabled or does not support JavaScript. Please enable JavaScript on your Web browser to properly view this Web site, or upgrade to a Web browser that does support JavaScript.
Not a member yet? Click here to register.
Forgot Password?

My photos have disappeared.

Asked Modified Viewed 5,708 times
P
pete2009
P
wiring guide,wiring diagrams,consumer unit,photos,movies.- www.aboutelectricity.co.uk
  • Junior Member, joined since
  • Contributed 32 posts on the community forums.
  • Started 19 threads in the forums
  • Started this discussions
asked
Junior Member

Hi

Can someone tell me what may be the reason that my pictures have disappeared from photo gallery ?
Yesterday everything worked fine but today it display 'no thumbnail' or 'image not found'.
I logged in the server and checked the folder images/photoalbum. The photos are on the server.
What could be the reason? What should I do now ?

My website
http://www.aboutelectricity.co.uk/
0 replies

7 posts

Z
zaga
Z
zaga 10
  • Newbie, joined since
  • Contributed 6 posts on the community forums.
answered
Newbie

Hello.

Is your host one.com?

one.com has upgrade to PHP 5.3.1

Upgrade your site to V7.00.07
0 replies
H
HobbyMan
H
Just some Guy
  • Veteran Member, joined since
  • Contributed 1,486 posts on the community forums.
  • Started 91 threads in the forums
answered
Veteran Member

What a cool site! I love it, well I did train as an electrician about a hundred years ago. cool

Did you change anything before this happened?

0 replies
P
pete2009
P
wiring guide,wiring diagrams,consumer unit,photos,movies.- www.aboutelectricity.co.uk
  • Junior Member, joined since
  • Contributed 32 posts on the community forums.
  • Started 19 threads in the forums
  • Started this discussions
answered
Junior Member

Hi

Nice that you like my web site HobbyMan
I have put some work into it.

No I did not change anything.

I did like you said zaga (upgrade to v7.00.07) but it still don't work.

This is strange because when I add photo to existing album - I can't see the photo.

When I create new album and add photo - I can see it. And when I move new added photo to existing album - it disappears again.
Edited by pete2009 on 29-01-2010 08:29,
0 replies
Z
zaga
Z
zaga 10
  • Newbie, joined since
  • Contributed 6 posts on the community forums.
answered
Newbie

I get help from Sveinungs. I had same problem yesterday.

Open these files in notepad :

photogallery.php
photo.php
showphoto.php

.. / administration / photos.php
.. / administration / photoalbums.php

In all these sript find this line in the first few lines:

define("SAFEMODE", @ini_get("safe_mode") ? true : false); 


Replace with

define("SAFEMODE", true);
Edited by zaga on 29-01-2010 11:02,
0 replies
P
pete2009
P
wiring guide,wiring diagrams,consumer unit,photos,movies.- www.aboutelectricity.co.uk
  • Junior Member, joined since
  • Contributed 32 posts on the community forums.
  • Started 19 threads in the forums
  • Started this discussions
answered
Junior Member

Thanks mate, it works !

I have also made changes in Random Photo Panel files.
0 replies
S
Scheper
S
  • Newbie, joined since
  • Contributed 1 post on the community forums.
answered
Newbie

One.com has turned safemode off. So now photogallery.php thinks al images are stored in seperate folders (album_23 etc...) but all photo's added while safemode was on are therefore in the root of the images/photoalbum/ folder.

In photogallery.php I changed the following
$photo_thumb = $data['photo_thumb2'] ? PHOTODIR.$data['photo_thumb2'] : "";
$photo_file = PHOTODIR.$data['photo_filename'];
$photo_size = @getimagesize($photo_file);

to
if(!file_exists(PHOTODIR.$data['photo_filename']) && file_exists(PHOTOS.$data['photo_filename'])){
            $photo_thumb = $data['photo_thumb2'] ? PHOTOS.$data['photo_thumb2'] : "";
            $photo_file = PHOTOS.$data['photo_filename'];
            $photo_size = @getimagesize($photo_file);
         }
         else {
            $photo_thumb = $data['photo_thumb2'] ? PHOTODIR.$data['photo_thumb2'] : "";
            $photo_file = PHOTODIR.$data['photo_filename'];
            $photo_size = @getimagesize($photo_file);
            }


And changed the following in the same file.
if ($data['photo_thumb1'] && file_exists(PHOTODIR.$data['photo_thumb1'])){
echo "<img src='".PHOTODIR.$data['photo_thumb1']."' alt='".$data['photo_thumb1']."' title='".$locale['431']."' style='border:0px' class='photogallery_album_photo' />";
}
else {
echo $locale['432'];
}

to
if ($data['photo_thumb1'] && file_exists(PHOTODIR.$data['photo_thumb1'])){
echo "<img src='".PHOTODIR.$data['photo_thumb1']."' alt='".$data['photo_thumb1']."' title='".$locale['431']."' style='border:0px' class='photogallery_album_photo' />";
}
elseif ($data['photo_thumb1'] && file_exists(PHOTOS.$data['photo_thumb1'])){
echo "<img src='".PHOTOS.$data['photo_thumb1']."' alt='".$data['photo_thumb1']."' title='".$locale['431']."' style='border:0px' class='photogallery_album_photo' />";
}
else {
echo $locale['432'];
}
Edited by Scheper on 07-02-2010 10:21,
0 replies
C
crex
C
crex 10
Ånimskog - en socken i Dalsland!
  • Junior Member, joined since
  • Contributed 27 posts on the community forums.
  • Started 5 threads in the forums
answered
Junior Member

Instead of editing the code and continue to maintain it through upgrades I choose another way (on one.com) by manually creating the folders album_1 etc and moving the images. I hope I won't get in trouble later ...
Edited by crex on 10-02-2010 13:50,
0 replies

Labels

None yet

Statistics

  • Views 0 views
  • Posts 7 posts
  • Votes 0 votes
  • Topic users 5 members

5 participants

C
C
crex 10
Ånimskog - en socken i Dalsland!
  • Junior Member, joined since
  • Contributed 27 posts on the community forums.
  • Started 5 threads in the forums
H
H
Just some Guy
  • Veteran Member, joined since
  • Contributed 1,486 posts on the community forums.
  • Started 91 threads in the forums
Z
Z
zaga 10
  • Newbie, joined since
  • Contributed 6 posts on the community forums.
P
P
wiring guide,wiring diagrams,consumer unit,photos,movies.- www.aboutelectricity.co.uk
  • Junior Member, joined since
  • Contributed 32 posts on the community forums.
  • Started 19 threads in the forums
  • Started this discussions
S
S
  • Newbie, joined since
  • Contributed 1 post on the community forums.

Notifications

Track thread

You are not receiving notifications from this thread.

Related Questions

Not yet