hi, i want to restore the photos to the profiles after new installation
so i uploaded the photos to the new installation folder in: /modules/boonex/photos/data/files/
and the photos are not shown, but the profiles do.
there something else should be done ?
thanks
Always remember that the future comes one day at a time. |
Yes, the sys_albums, sys_albums_objects and bx_photos_main tables from the database also need to be restored.
However, the photos will not end up in the proper accounts unless the profile id's are the same as they were before. Not sure how you restored your profiles. If you restored the Profiles table from the database then that should match. https://www.deanbassett.com |
Also note that sys_albums and sys_albums_objects also contains the data for other modules, like Videos and Sounds. If only the Photos module was installed on the old site, then this shouldn't be an issue. But if there were other media modules, you'll need to do a quick clean-up to avoid junk data. BoonEx Certified Host: Zarconia.net - Fully Supported Shared and Dedicated for Dolphin |
i imported the tables to the new db successfully. the pictures names and albums are there
but all the photos are empty. i checked the url of the image with firebug and its
shows http://mysite.com/m/photos/get_image/browse/62d624905d2794c7e5f96e3410a95cae.jpg
where did this came from?
Always remember that the future comes one day at a time. |
You should clear your cache.
You might have to do it manually via FTP, do remove the .htaccess files.
/cache
/cache_public
/tmp
ManOfTeal.COM a Proud UNA site, six years running strong! |
hi newton27 i tried to delete what you wrote but nothing changed.. Always remember that the future comes one day at a time. |
anyone can help out please.
its critical
Always remember that the future comes one day at a time. |
You need to check to double check and make sure the photos were actually uploaded to modules\boonex\photos\data\files and those photos are readable. Proper permission/mode set to 664 and that the modules\boonex\photos\data\files folder is writable. Mode 777
Other than that, check your php logs for errors. You may need to provide a URL so it can be examined by others. If the photos are there and the database entries have been restored and the cache cleared there should be no reason why they don't show up.
https://www.deanbassett.com |
after i looked in php error log i saw that i have an error:
PHP Warning: filesize() [<a href='function.filesize'>function.filesize</a>]: stat failed for /home/yanivz/public_html/alpha/modules/boonex/photos/data/files/351_t.jpg in /home/yanivz/public_html/alpha/modules/boonex/photos/classes/BxPhotosModule.php on line 79, referer: http://alpha.avren.co.il/
--
PHP Warning: readfile(/home/yanivz/public_html/alpha/modules/boonex/photos/data/files/352_t.jpg) [<a href='function.readfile'>function.readfile</a>]: failed to open stream: No such file or directory in /home/yanivz/public_html/alpha/modules/boonex/photos/classes/BxPhotosModule.php on line 80, referer: http://alpha.avren.co.il/
and it keeps repeating on...
the codes in BxPhotosModule.php line 79 and 80 are:
header("Content-Length: " . filesize($sPath));
readfile($sPath);
Always remember that the future comes one day at a time. |
The stat failed message. The first error indicates a permission problem with the uploaded photos. It can't read them. The second error is a side effect of the first one.
As i pointed out in the above post. The permissions need to be checked on the uploaded photos. https://www.deanbassett.com |
maybe i missing something. i did it all and its still don't shows the photos 
i have updated the db tables, delete cache, change permission and checked the error log.
p.s now there is no errors in the error log.
if someone pleased to help. i'll p.m him my cpanel access and my gratitude
Always remember that the future comes one day at a time. |
Have you FTP'd into your site and visibly confirmed that the photos are indeed there?
Navigate to the directory below and see if 351_t.jpg exists.
/home/yanivz/public_html/alpha/modules/boonex/photos/data/files/351_t.jpg
Did you also happen to notice that none of your members have Avatars and/or Profile photos either?
Nothing to see here |
/351_t.jpg not exists
the site i provided (http://alpha.avren.co.il/) is for tests only the real one has some fresh photos
which i am afraid to run over
Always remember that the future comes one day at a time. |
Then maybe I am confused at what exactly you are trying to do. If I am reading this right..
- You installed a clean version of Dolphin for testing purposes only
- Your initial issue was that you wanted to restore photos.
- You ran the scripts needed in the 'test site' database to ensure all entries were there..
- You 'said' you copied all the photos into modules/boonex/photos/data/files/
So here are some questions for you..
1. Are you trying to get the photos from your 'live' website into your 'test' website?
2. Which photos did you copy over? Did you download all the photos from that same directory of your live website?
Both websites need to have the exact same photos if you are going to try and 'restore' them onto this test website. Are you doing this just to see if you can successfully move profiles and photos to another Dolphin installation?
Nothing to see here |
Then maybe I am confused at what exactly you are trying to do. If I am reading this right..
- You installed a clean version of Dolphin for testing purposes only
- Your initial issue was that you wanted to restore photos.
- You ran the scripts needed in the 'test site' database to ensure all entries were there..
- You 'said' you copied all the photos into modules/boonex/photos/data/files/
So here are some questions for you..
1. Are you trying to get the photos from your 'live' website into your 'test' website?
2. Which photos did you copy over? Did you download all the photos from that same directory of your live website?
Both websites need to have the exact same photos if you are going to try and 'restore' them onto this test website. Are you doing this just to see if you can successfully move profiles and photos to another Dolphin installation?
yes, i mean the ex-live site. now there is a new 7.1.5 installation with all profiles.
but i uploaded all the photos of the ex-live site to the test site with their profiles.
if this will work on test site i do it on the live site.
Always remember that the future comes one day at a time. |
Well something got missed..
You are getting errors that 351_t.jpg, 352_t.jpg, etc.. are not found..
You said you checked the directory and you did not find them either..
Obviously there will not show up if the files do not exist..
Nothing to see here |
its shows the missing files only. not all i checked it.
probably they are still in the db but not exists anymore
Always remember that the future comes one day at a time. |
There are 5 files that are created for EACH photo. I will use your 351_t.jpg as an example..
In the data/files directory, for this photo (351_t.jpg), there should be 5 files that look like this:
351.jpg
351_t.jpg
351_m.jpg
351_ri.jpg
351_rt.jpg
If all 5 of those do not exist in that directory, you are going to have problems with that particular photo. So, you need to check and make sure that you uploaded ALL the files from your 'ex-live' site over to your test site properly. We already know that some are missing..
Nothing to see here |
its shows the missing files only. not all i checked it.
probably they are still in the db but not exists anymore
If the photo was deleted, they will not still exist in the database.
Note: The database just tells the website where the picture is, who it belongs to, etc.
Nothing to see here |