Coppermine to Gallery2
LinkBliss
Joined: 2006-10-18
Posts: 3 |
Posted: Wed, 2006-10-18 15:51 |
Is there a script to migrate a Coppermine to Gallery2? Here is the Coppermine gallery -- http://www.rainbowseeker.us/gallery/ It's hacked a bit to be seo-friendly but is otherwise mostly a plain vanilla Coppermine installation. What do you recommend? Thanks, |
|
Posts: 32509
it was nearly finished, but the development halted
http://www.angier.co.uk/drupal/instructions/cmmigrate-0.3
Posts: 3
That's fine probably, I am a database guy and I did some raw imports into phpBB in the past, I don't think this would be beyond my ability. Also the Source gallery is not that sophisticated or complicated.
Eric
http://www.mapforums.com
Posts: 8339
Actually I did the upgrade for gallery 2.1 on David's cmigrate module for a friend of mine.
You can get it here.
Its been downloaded over 190 times, and I have not had an error/bug report in quite some time.
-s
Posts: 32509
suprsidr
excellent! is that linked on the user contribtions page or so?
Posts: 8339
No I don't think so. Fell free to add it. Although David should get all the credit, I just upgraded his code.
I was also trying (back in July) to get my geeklog integration listed in the available integrations to no avail.
Its also available on my dev site here.
If you could add that to the list too.
-s
Posts: 32509
> I was also trying (back in July) to get my geeklog integration listed in the available integrations to no avail.
what's the problem?
on http://codex.gallery2.org/index.php/Gallery2:Integration:Available_Integrations i see that we already have geeklog there. did you create another integration package??
Posts: 8339
Andy handed over the development of GL_Gallery2 over to me, his package only supports gallery2 v2.0.
I forked to G2Bridge last ~ March and updated for gallery2 v.2.1 and greater, and I will continue the support.
mindless had me send an email to:
(I sent many) but I got no response.
-s
Posts: 8601
I finished off the G2.0->G2.1 API updates.. new module version attached (untested).
Posts: 32509
can we get this into contrib?
Posts: 8339
How is this different from the version I posted in contrib?
Did I miss some API updates?
-s
Posts: 8601
the zip above is a zip of what's in gallery-contrib.
suprsidr, you got version 0.3 from somewhere and converted to G2.1. gallery-contrib actually had 0.4.. i merged your changes with the 0.3->0.4 changes, then did some additional API conversions and misc cleanup.. result is 0.5.0 now in gallery-contrib and attached above.
Posts: 8339
Nice work, guess I should download the latast and replace the one on my site
-s
Posts: 32509
better yet remove all the copies and just keep a single copy. either here or on your site.
and have codex link to it.
Posts: 27
I am also trying to migrate from coppermine to gallery 2, coppermine its enough for me but the development seems to have stoped.
I am afraid os lose my data, i have a 3000+ foto galery with lots of nested categories/albuns, could someone explain how this module work?
Does it only import database data?
Will the current coppermine instalation continues to work?
any tutorial, or documentation or user experiences on this one?
Thanks, you have a great script in here and a great community, this is what OS is about ;)
Cheers from Portugal.
ps: sorry for the bad english and de duplicated post
Posts: 4
Hello,
I am trying to move over my albums from Coppermine 1.4.10 to Gallery2 2.1.2. I installed the module (cmmigrate050_0) and tried the import. It seems to start properly, but the progress bar just stops in the middle of importing the pictures. I waited a while but nothing further happened. I was able to browse the pictures that had already been imported (before it froze) without any problems.
When I enabled debugging, I got what appear to be some nonfatal notices.
At the top of page I got(I edited the base info out of the path):
While running the import, I got (I edited the base info out of the path):
(It just kept on repeating after that, one time for each picture).
-----
I don't know if it makes a difference, but my website is hosted by Bluehosting. They monitor CPU usage pretty strictly. I think the problem may be caused by either a timeout issue, or the album importing takes up too much resources.
When importing pictures, the import module doesn't check if the picture has already been imported. It just creates a new album and starts importing from the beginning, so I can't rerun it to continue where it stopped before.
If the import process is stopping because too many system resources are being used, a delay between processing every picture may help. If I wanted to create a delay (maybe 5 seconds) between the processing of every picture, how would I go about doing that?
I originally posted my problem on suprsidr's blog, and he suggested I post my problem here.
Any thoughts?
Menachem
Posts: 32509
this sounds similar to http://gallery.menalto.com/node/59983#comment-219210 .
it'd be great if someone with some experience with coppermine's code or data format could help here.
--------------
Enter the Gallery 2 Theme Contest today!
Posts: 4
valiant,
Your link put me on the right track. I followed the instructions in this post of your's, and disabled the getid3, exif, and gd modules. The import went a whole lot faster. It still didn't make it all the way through without halting, but it got significantly further. I was able to do all the imports in 3 passes (I just deleted the album that it froze in the middle of importing and then set up a new import from that album.
A side note, when the import finished, the status page said "Import Complete" and then under that it said "No albums imported.", even though albums were imported.
Posts: 26
okay so a stupid question but
Site Admin/Plugins menu - where is this I can't find it
Posts: 4
In earlier versions of gallery2, it is Site Admin/Modules.
Posts: 26
thanks
EDIT importing seems to have stopped on an image
Posts: 13
First, I would like to say this is a great module, and helps me out a ton!
I do have a problem, when trying to import members galleries, the import tool does not list all the members gallers, it stops on the 3rd member.
Any ideas?
Posts: 13
Anyone else have this problem or ideas?
Posts: 13
I found out why this module is only listing 3 of my members. It seems that this module is reading the coppermine local user db, when I have my coppermine in bridge mode (smf db). Is there anyway to make this module read the bridge settings?
Thanks!
Posts: 8339
On the original author's site he states that it does not work embedded.
-s
FlashYourWeb and Your Gallery
Posts: 13
Thank you, I wasn't aware of that.
I ended up editing the module to read the members out of my forums db. This may not be the correct way, but it worked for me! I was able to import 1500+ members.
Posts: 2
Hi all,
I used the migration tool succesfully, but also wanted to export the comments.
Therefore I made a php-script which can do that for you. Please let me know if it works for you!
(read the included readme!)
*edit: found out a error, will post the new version later
Posts: 32509
Stefan21
thanks for the contribution! i'm sure this will make your fellow coppermine -> g2 migrators very happy.
could we maybe integrate the comment import into the coppermine import module?
--------------
Doumentation: Support / Troubleshooting | Installation, Upgrade, Configuration and Usage
Posts: 2
Hi!
It's possible to integrate it into the module. I currently have no time to look into it, maybe someone else has? Otherwise I will do it later on.
I fixed some errors in the release, it's currently working fine. (php4 and 5)
When I've got the time, i will include a undo-function (so if anything bad happens the comment-database can be restored).
Here is the file (read the readme!):
http://www.thamatrix.nl/comment_migration.zip
Posts: 2
Hi there
I am trying to migrate from Coppermine 1.3.4 to Gallery2.2 and found this great tool.
I need to import over 50.000 photos in about 3.000 nested albums and subalbums and over 2500 users.
But I am stuck in a few problems: it doesn't import users into Gallery's DB; doesn't import votes nor comments
It imports though the albums and photos in the "g2data" directory, in the file system. But without any user data assigned to the newly created albums, they are worthless...
Anyone had the same trouble?
Can someone help me with some refferences? direct answers would be great
Thanks!
Posts: 1
I also had to do this migration but I only had a few dozen pictures at the time so it was pretty east to do it manually.
This is my first post by-the-way so hello everyone!
Posts: 1
When using the latest version of cmmigrate (.5 I think) it just stops after a certain number of pictures. I'm using coppermine 1.4.10 and trying to import into the latest version of Gallery2. If I'm pulling in a couple pics from a small album it works fine, but in larger albums it freezes after about 20 seconds or so and goes no further. Not sure on the picture count at that point though, but it just stops. No errors or anything.
Anyone have any insight into this? I've got thousands of photos to import and Gallery just isn't an option unless I can import the photos. Reconverting originals and uploading them again would be a monsterous task and I'm just not willing to go through all that.
I've used coppermine for a couple years now and imported TONS of photos hundreds at a time with that. I'm certain that this isn't a "safemode" issue with PHP as I've never had a problem with coppermine doing this when importing pictures during batch imports. IMHO Gallery is clearly the better product. I've had headaches, sluggishness, bugs, LOUSY theme and plugin options and loads of other issues with coppermine and I just want something that will really work for me.
Thanks
Posts: 2
Been having some troubles getting this fine feature to work, new install of Gallery double double 2.2 and trying to migrate from Coppermine 2.2 I am getting the following errors:
Error (ERROR_BAD_PARAMETER) : /home/opshot5/public_html/ourshots/modules/migrate/module.inc
* in modules/core/classes/helpers/GalleryPluginHelper_simple.class at line 94 (gallerycoreapi::error)
* in modules/core/classes/helpers/GalleryPluginHelper_simple.class at line 88 (gallerypluginhelper_simple::loadplugin)
* in modules/core/classes/GalleryCoreApi.class at line 209 (gallerypluginhelper_simple::loadplugin)
* in modules/cmmigrate/ConfirmCmImport.inc at line 653 (gallerycoreapi::loadplugin)
* in modules/cmmigrate/ConfirmCmImport.inc at line 314 (confirmcmimportcontroller::checktruncation)
* in ??? at line 0 (confirmcmimportcontroller::performcmimport)
* in modules/core/classes/GalleryTemplateAdapter.class at line 915
* in g2data/smarty/templates_c/%%3502818869/%%C7^C79^C790B080%%theme.tpl.php at line 69 (gallerytemplateadapter::trailer)
* in lib/smarty/Smarty.class.php at line 1258
* in modules/core/classes/GallerySmarty.class at line 61 (smarty::fetch)
* in modules/core/classes/GalleryTemplate.class at line 209 (gallerysmarty::fetch)
* in main.php at line 473 (gallerytemplate::display)
* in main.php at line 94
* in main.php at line 83
any ideas?
Posts: 8601
activate the 'migrate' module.. not sure why cmmigrate needs that, but that's where this error comes from.
Posts: 2
Works fine now...thanks!
Posts: 6
Thanks for the great module.
It seems that the albums that I moved over from CM to gallery2 have different permissions set.
Example:
After I imported a few albums using this module and logged in as the admin - I could 'see' the new albums...
But when I logged out all the new albums are hidden.
Did I miss something when I installed this module?
Posts: 3
I look like I'm getting similar errors to MarkP1969, but I already have the module "activated"
Any thoughts??
Posts: 8601
does the file in the error message exist and is it readable by your webserver/php user?
/home/brisban/public_html/gallery/modules/migrate/module.inc
Posts: 3
LOL! I don't even think I have the migrate folder! Anyways I have dragged across all of the files (less than 150 all up) by another means so thanks for the help anyway mindless!
Posts: 6
Hi- This mod looks great, but before I run it, I was wondering if there is an updated explanation anywhere of how it works and what changes it is making on my server? The link that is repeatedly referenced as the main source for info about the Coppermine Migration mod (http://www.angier.co.uk/drupal/tags/cmmigrate) appears to have been down for several days at least, and still appears to be down...
Specifically:
1) Does it just copy over the config settings and modify the gallery2 config to point at the existing files or does it copy all the files to a new directory location? Is this configurable (I would prefer to avoid copying several gigs of files, if possible)?
2) Does it support video files (and their associated thumbs)?
3) Does all data get migrated in the latest version (in particular, I have a variety of descriptive information attached to several hundred files, and I have them organized into galleries and categories?
4) Are Coppermine's user-defined fields supported?
5) Are Coppermine's "linked files" supported (migrated without links being lost)?
6) Are there any version dependencies?
7) Is there any risk that it could damage my existing Coppermine configuration?
Thanks!
Posts: 6
Hi-
I forgot one more question
8) Is there any impact on the gallery2 install to which Coppermine files are migrated? In particular, are there any gallery2 features that are broken if a Coppermine import is done?
Thanks!
Posts: 32509
i haven't looked at the code of this module yet, but i'm pretty confident it works like that:
1) it copies some settings and it copies all images. you can't tell it not to copy images.
2) I guess it just copies the video files and g2 would be responsible to generate thumbs for the video again. if coppermine has a feature to upload just any image which is then shown as the thumbnail for a video, then maybe the import module uses g2's thumbnail module and copies the thumbnail as custom thumbnail. i'd have to check the code...
3) g2 doesn't have categories. just a tree of albums (and keywords, and tags). i suggest you do a test run to see if g2 imports all data you need.
4) g2 has a customfields module. i guess that's the same. if the customfield module is active and if the import module takes care of importing this data, then yes. a very useful answer, i know.
5) no idea what "linked files" are in CPG. g2 has probably similar features: replica (2 items using the same data file, thus saving disk-space) and linkitem (an item pointing to any URL).
6) no idea
7) no guarantees here, but i'm pretty sure that the code only reads data from CPG and writes to G2 only.
8) there shouldn't be.
--------------
Documentation: Support / Troubleshooting | Installation, Upgrade, Configuration and Usage
Posts: 1
Hello:
I am getting the following error when trying to import my coppermine gallery.
Error
An error has occurred.
Back to the Gallery
Error Detail -
Error (ERROR_STORAGE_CONNECTION)
in modules/cmmigrate/classes/CmDatabaseTools.class at line 343 (GalleryCoreApi::error)
in modules/cmmigrate/classes/CmDatabaseTools.class at line 110 (CmDatabase::getCategories)
in modules/cmmigrate/classes/CmDatabaseTools.class at line 148 (CmDatabaseTools::getAlbums)
in modules/cmmigrate/ChooseCmObjects.inc at line 134 (CmDatabaseTools::getAlbumsSorted)
in modules/cmmigrate/ChooseCmObjects.inc at line 93 (ChooseCmObjectsView::_createCmAlbumTree)
in modules/core/SiteAdmin.inc at line 201 (ChooseCmObjectsView::loadTemplate)
in modules/core/classes/GalleryView.class at line 300 (SiteAdminView::loadTemplate)
in main.php at line 441 (GalleryView::doLoadTemplate)
in main.php at line 94
in main.php at line 83
System Information
Gallery version 2.2.1
PHP version 5.1.6 apache2handler
Webserver Apache/2.2.4 (Fedora)
Database mysqli 5.0.27
Toolkits SquareThumb, ImageMagick, Thumbnail, NetPBM
Operating system Linux fedoraweb001 2.6.20-1.2948.fc6 #1 SMP Fri Apr 27 18:53:15 EDT 2007 i686
Browser Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; Avant Browser; Avant Browser; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30)
Posts: 4
For me, the ERROR_BAD_PARAMETER issue was solved by importing fewer photos at once - hope this helps.
Posts: 12
Is there a reason that this plugin might freeze up about 90% through an import?
I'm running the latest version of gallery (2.2), and an older version of coppermine. I try to import an album, and it gets almost finished, then the status bar just stops, and nothing else is imported. Tried turning on error_reporting(E_ALL); but that gave no errors.
Any help really appreciated.
Thanks.
Posts: 32509
maybe an execution timeout. or a fatal php error.
please check: FAQ: What is the webserver error log?
and check your g1's integrity (see the migration instructions for the preparation steps).
--------------
Documentation: Support / Troubleshooting | Installation, Upgrade, Configuration and Usage
Posts: 12
I'm migrating from coppermine, not g1 so that's not at issue. Also, 1and1 doesn't give you access (at least not on the plan my father has-- where I'm working on this) to any error logs. Only access/processed/ftp logs. I called 1and1's tech support and the bottom tier techies couldn't get to the error logs either. They said only their admins/managers could get to them; and they don't have phones (she claimed they can only be contacted by email, but that must have been taken away too because 24 hours later no word from anyone at 1and1).
Gawd I wish I could bring it all over to my server. It was an unpleasant reminder of how nice it is to have your own server set up for hosting.
Posts: 9
Hi I would like ti migrate a coppermine Gallery to G2. I dl the cmigrate module.
Now in the field
Path to Coppermine directory
Example: /var/www/coppermine
I tried everything but it alwaya tells me "The path that you entered is invalid"
So do I have to enter the path of my Webserver (FTP) oder the actual www adress? (tried both, did not work). Since it is a rather large Coppermine Gallery that I need to midrate this tool wouold be really helpfull
Thanks
P.S The Coppermine is on an differtent server (we are moving to a new hoster).
Posts: 6
I have converted coppermine album successfully with my own script.
http://gallery.menalto.com/node/72207
Posts: 3
My module seems to be activated too and I'm receiving a similar error messages.
Error (ERROR_BAD_PARAMETER)
* in modules/core/classes/helpers/GalleryEntityHelper_simple.class at line 39 (gallerycoreapi::error)
* in modules/core/classes/GalleryCoreApi.class at line 2259 (galleryentityhelper_simple::loadentitiesbyid)
* in modules/cmmigrate/ConfirmCmImport.inc at line 379 (gallerycoreapi::loadentitiesbyid)
* in ??? at line 0 (confirmcmimportcontroller::performcmimport)
* in modules/core/classes/GalleryTemplateAdapter.class at line 915
* in g2data/smarty/templates_c/%%2464978767/%%3A^3A8^3A818B59%%theme.tpl.php at line 69 (gallerytemplateadapter::trailer)
* in lib/smarty/Smarty.class.php at line 1258
* in modules/core/classes/GallerySmarty.class at line 61 (smarty::fetch)
* in modules/core/classes/GalleryTemplate.class at line 209 (gallerysmarty::fetch)
* in main.php at line 473 (gallerytemplate::display)
* in main.php at line 94
* in main.php at line 83
I would try the other import script, but I'm exactly sure how to proceed with that one.
If I can figure out how to do that one, I'll post some step by step instructions.
Also, I think this would be very useful if anyone can take this module on and ensure that its development continues. Gallery seems to be a much more developed product than coppermine at this point. I'm willing to help out with testing, etc. but my coding skills aren't strong enough to take on something this complex.
robin
Posts: 1
have you any luck with "GalleryEntityHelper_simple.class at line 39" error?