Migration problem from G1 to G2
|
johann@nenni.net
![]()
Joined: 2003-09-01
Posts: 43 |
Posted: Sun, 2005-06-26 18:50
|
|
I did try to migrate from my gallery 1 to my g2 test site (http://gallery.nenni.net -> http://g2.nenni.net) the Webserver is the owner of the g2data and chmod is 777 on that directory. Gallery 1 is running on v1.5.1-cvs-b31, and I did run the "validate album" before with out any errors.... Security Violation The action you attempted is not permitted. Error Detail - * in modules/migrate/ConfirmImport.inc at line 1404 (gallerystatus::error) System Information |
|


Posts: 32509
hmm, that's a strange error.
it compares the G1 albums you selected for the import from the page with the ones that actually exist in the G1 albums directory.
given that the list of albums that you selected can only be generated by the same method before, this is really strange.
do you have any special characters in your album names, or umlauts? it should work, just wonder why that happens.
to debug this issue, can you open modules/migrate/ConfirmImport.inc
on line 1404, before
return array(GalleryStatus::error(ERROR_BAD_PARAMETER, __FILE__, __LINE__), null);
please add:
print "$sourceAlbumName, <br>";
var_dump($albums);
exit;
(add everything within the if condition, just before the return ..;)
then run the import again and post the output here to the forums.
Posts: 43
I only use normal characters, mostly standard names album1... and so on...
but some photos have Icelandic or Russian names...
Posts: 32509
what about the output i asked you for?
Posts: 43
Sorry, I only get som "bullsh..." so I guess I do not do this correctly (I do not know anything about php scripting...)
if (!in_array($sourceAlbumName, array_keys($albums))) {
print "$sourceAlbumName, <br>";
var_dump($albums);
exit;
return array(GalleryStatus::error(ERROR_BAD_PARAMETER, __FILE__, __LINE__), null);
}
Posts: 32509
what's the output you get. this looks ok.
or maybe we can't debug this way in the import process.
Posts: 43
i did try to import one single album.... it did work... before i did select many albums...
so i guess at I have to do this in parts...
Posts: 974
My guess is that there is one bad egg in there blowing everything up. Let me know if you find out which album it is and I can add a fix, maybe.
Posts: 36
Have the exact same problem.
The albums that dosn't work for me, is with swedish letters in. In sweden, we only have three letters more than english. It's Å, Ä and Ö.
Album paths (yes, server paths) with å,ä or ö is marked with a ascii question sign in the source list by gallery2.
For example:
2005-06-24 En Midsommarnattsdröm (2005-06-24-En-Midsommarnattsdr�m)
The path to that albums is /home/xxxxx/public_html/bilder/2005-06-24-En-Midsommarnattsdröm
(Observe that a "ö" is in the line above. The question sign should also be a "ö")
If I type "mkdir åäö" in ssh box and then type "ls", the server returns the directory åäö as "???". If I type "cd åäö", and then "pwd", the correct path with /åäö/ is displayed.
Am using the latest CVS build. Build 2005-07-04.
Posts: 36
Also, I have a directory with the name
20050618enjoytheforestselarion^M^J^M^J
that can't be imported. It's view able, gallery1 can see it, gallery1 dosn't mark it as bad, and I can browse within it with ssh box commands.
Posts: 36
bump
Posts: 974
you should rename your albums to not have stupid names that involve control m and control j characters. I have no idea how those got into your g1, that is completely ridiculous and I will not help you with that sort of album.
As to the ones with Swedish, Russian, or Icelandic names, please send me a link to one of each. Then, I will probably instruct you to tar and gzip one of them so I can use it as a test album.
Posts: 36
You don't have to help me. It's not my attention. Am just helping the G2 project.
If you want to experiment with foreign language, you can use ascii code. Am sure you having a operating system that can handle it.
For example, swedish language has just three more letters. that's å, ä and ö.
Just press ALT + 134 to get the å letter for example.
A list of ascii code can be found here
With this, you now can create your own folders on your computer/ssh box and experiment with G2's ability to handle foreign language.
Best luck with the G2 project. :wink:
Mr Hagman