Php photo gallery TWG | JFUploader | TWG Flash upload | WFU | Forum
https://www.tinywebgallery.com/forum/

Migration of comments to folder mode did not work ... *argh*
https://www.tinywebgallery.com/forum/viewtopic.php?f=5&t=882
Page 1 of 1

Author:  Tubbietoeter [ 15. Feb 2007, 21:06 ]
Post subject:  Migration of comments to folder mode did not work ... *argh*

Hi there,

I just upgraded from 1.4.1 to 1.5.
Worked fine. I replaced all files except the ones that were described in the how-tos.

So far so good.

Since I wanted to rename a gallery I set the flag $store_xml_in_picfolders.
Now, no comments are being shown. I already deleted session cache.
I can see xml files in the picture folder, but they are empty. No comments in there.

When I look into the xml directory, the files for one gallery are gone. Fortunately I did a backup of these files. What can I do now? Can I simply take the old files and rename them? Is there an easier way?

Cheers,

Stefanie

Author:  TinyWebGallery [ 16. Feb 2007, 01:21 ]
Post subject: 

Hi,

actually twg should move them automatically. please make a 2nd test. delete the comment file in the pictures folder. make sure that php can write to this folders.

copy your backup in the xml folder and then open the galleries again and check if the moved files do contain the new data. normally they are only moved if the files has to be rewritten (e.g. a new comment).

coping should work fine - I actually don't do anything else.

I'm almost finished 1.6 - I will ad a testcase for migrating comments from the xml folder to the pictures folder.

/Michael

Author:  Tubbietoeter [ 16. Feb 2007, 16:26 ]
Post subject: 

*arf*

It did not work.
I deleted all xml files of the picture folders and their subfolders and put the backed up xml files into their xml folder.

But now I cant see any pictures of my first gallery anymore. Before it worked just fine.
The second gallery looks fine, just that all the titles of the pictures are gone ... *argh* ...

I erased the parameter from the configuration, but the pictures do not show.
Deleting all chache info did not help either ...

:shock:

Author:  TinyWebGallery [ 16. Feb 2007, 16:48 ]
Post subject: 

something in the debug file?

If you set everything to use the xml folder - does it then still work?
all xml's files are still not UTF-8 because I store everything urlencoded there. this should not be the problem - but i'll check this weekend if I have missed something here.


Michael

Author:  Tubbietoeter [ 16. Feb 2007, 16:53 ]
Post subject: 

Ah there are entries like these:

02.16.2007 15:24:55 - File 'pictures/2007-02 - AquaD-Dorf/AQ-Ddorf-20070202-22.jpg' is too big - it uses ~ 10059776KB. The memory limit is 8388608KB. Check the info for the maximum resolution! Please resize the image with an external tool or increate the php memory!

Increase memory? WTF?

This can not really be a problem ... the pics are 400 KB maximum ... the pics in the other gallery are not smaller ...


Removing the flag does not change anything, I get the error with and without that flag.

Author:  TinyWebGallery [ 16. Feb 2007, 18:47 ]
Post subject: 

the image is too big - you have only 8MB php memory!

its not the size its the resolution that counts.
chck the info.php - it tells you what your max resolution is.

but this has nothing to do with the xml.
I ll check this tonight

Michael

Author:  TinyWebGallery [ 16. Feb 2007, 19:05 ]
Post subject: 

I can verify this problem.

I'll fix this this weekend.

/Michael

Author:  Tubbietoeter [ 16. Feb 2007, 19:08 ]
Post subject: 

Resolution too high? This is weird. It worked fine yesterday, even after upgrading ... Why didn't the error occure then, also ?

Author:  TinyWebGallery [ 16. Feb 2007, 19:22 ]
Post subject: 

it's only a warning - I calculate the memory the image most likely uses . the calculation is +- 1MB therefore it it possible that a pictures still work.

But maybe you should increase the php memory - 8 MB is very little. If you see the info.php it tells you what'S the ~ resolution is.

/Michael

Author:  TinyWebGallery [ 16. Feb 2007, 20:46 ]
Post subject: 

I have fixed the problem - But Im not happy with it - the migration is done when you write a file - therefore migration can take a long time if you dont add a comment and a caption.

I think I rewrite this part before I release this. Then the migraion is done when the directory is touched.

Michael

Author:  Tubbietoeter [ 17. Feb 2007, 11:01 ]
Post subject: 

So what I will do then ...

- Decrease resolution of images in Gallery #1

- Manually copy the content of old XML files to new files in picture directories


Won't have time till Sunday, but I will let you know if it doesn't work.
Thanks for your help!


ALAAF!

Steff

Author:  TinyWebGallery [ 28. Feb 2007, 23:45 ]
Post subject: 

shoud be fixed in the latest rc1 ;).

Page 1 of 1 All times are UTC + 1 hour [ DST ]
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/