Forums

CollectiveAccess Support Forum » Installation

.55 -.6 conversion utility -- Error Linking Object

(7 posts)

  1. bjm
    Member

    Hello,

    Just working on upgrading to .6 from .55. I've run the conversion utility included in the release and everything goes smoothly apart from converting media entities. I get the following error during the conversion (for every media entity in the system):

    CONVERSION ERROR: ERROR LINKING OBJECT [363] to MEDIA [/web/production/opencollection/web/media/dursthttp://collectiveaccess6.thenewgallery.org/media/collectiveaccess6/images/1/7/72803_object_representations_media_1772_original.jpg]: /web/production/opencollection/web/media/dursthttp://collectiveaccess6.thenewgallery.org/media/collectiveaccess6/images/1/7/72803_object_representations_media_1772_original.jpg does not exist; No media was specified
    converting object: <i>Artist Trading Cards</i> Poster, June 27, 2009 [ATC.2009.06.03]
    TRYING REP: /web/production/opencollection/web/media/dursthttp://collectiveaccess6.thenewgallery.org/media/collectiveaccess6/images/1/7/85891_object_representations_media_1773_original.jpg

    Can anyone give me some insight or where to start digging?
    Thanks
    Ben

    Posted 1 month ago #
  2. seth
    Developer

    The paths to your media are wrong. The script you are using requires you change some hard-coded values so it can find the media and resolve the old links for the import. The values that need to change are on line 74 and 76.

    Before you fix that, however, you might want to consider not using the standard script and compatibility profile. The compatibility profile is just a straight port of the old system's fields into 0.6. Odds are that you don't use a lot of those old fields, and that there are a few fields you'd probably like to have. And, perhaps, you would want to take advantage of some of the new field types in 0.6.

    So... we would recommend you do what we do when converting a 0.6 install: first design an installation profile tailored to your needs, second modify the existing script to match the profile and third cross your fingers and run it.

    We can help you with all of this.

    Posted 1 month ago #
  3. bjm
    Member

    Many thanks Seth -
    I noticed these, but i think the comment said that they should auto-configure so I left them alone. I'll give that a shot, and will be back if it explodes again.
    Thanks again.

    Posted 1 month ago #
  4. seth
    Developer

    Actually the comment was a note to us that we needed to make those auto-configure at some point :-(

    Sorry for the confusion.

    Posted 1 month ago #
  5. bjm
    Member

    Not at all. A more careful reading would have shown this to be the case.

    Ok -- I have updated the links but have a new problem. I'm getting a similar error, however now it is throwing a warning on line 1212 (missing argument 6) and also complaining that 'type1 is invalid'.

    Thoughts? Thanks again for your help so far..error follows:

    Warning: Missing argument 6 for ca_objects::addRepresentation(), called in /home/tng/webapps/collectiveaccess6/support/import/ca5x/convert.php on line 1212 and defined in /home/tng/webapps/collectiveaccess6/app/models/ca_objects.php on line 472
    CONVERSION ERROR: ERROR LINKING OBJECT [243] to MEDIA [/home/tng/webapps/collectiveaccess/media/tng_collectiveaccess/images/1/0/11089_object_representations_media_1099_original.jpg]: Type id 1 is invalid; Type id 1 is invalid; Type id 1 is invalid; Type id 1 is invalid; Type id 1 is invalid; Type id 1 is invalid; Type id 1 is invalid; Type id 1 is invalid; Type id 1 is invalid; Type id 1 is invalid; Type id 1 is invalid
    TRYING REP: /home/tng/webapps/collectiveaccess/media/tng_collectiveaccess/images/1/1/66504_object_representations_media_1100_original.jpg

    Posted 1 month ago #
  6. bjm
    Member

    Ach, sorry - before I waste any more of your time I will try to develop an appropriate installation profile. I'm am quite obviously trying to short circuit a process which requires a bit more attention. Sorry for the confusion.

    Posted 1 month ago #
  7. seth
    Developer

    What profile were you using?

    Posted 1 month ago #

RSS feed for this topic

Reply

You must log in to post.