Open Source Content Management Framework

Re: [midgard-user] Trouble with the query builder and other

  1. Re: [midgard-user] Trouble with the query builder and other

    Thu April 16 2009 20:10:05 UTC
    Hi,

    > we have been running a website since 2003 with midgard 1.4.4. It's time
    > to upgrade it. I have successfully installed a 8.09.3 on a new server.

    > I was a little lost, but managed to re-import the 1428 topics and 12585
    > articles with a custom xml-parser running on an old repligard dump and using
    > midgard_replicator::import_from_xml on it. The parser already
    > exists and I couldn't figure out how to do it quickly with existing tools.

    Here is how I would try it:
    - take a mysql-dump of your old database to
    your new server
    - run datagard from command line and update your DB, this "should" convert your data as
    good as possible (it's quite a huge step from 1.4.4 to 8.09.3), should
    deal with the guid-thing and add a lot of fields to your tables
    - datagard also gives you the option to create a virtual host for your
    site plus it will install all necessary pear modules for newer
    midgard-features


    > I also wanted to keep the guids and discovered theire size were
    > upgraded, the db contains now small(old) and new(big) guids, I don't
    > know if that can cause troubles but it seems to work pretty well.
    > We want to keep the current navigation which is mostly specific and
    > use both non_active/active pages.

    > I know that most of the old 1.4 functions have disappeared

    nope, they should all still be there, the old API is still supported
    with 8.09. You can even go on using Asgard, SpiderAdmin or Aegir if
    you like (make sure you enable register_globals and
    register_long_arrays for PHP)
    Only a few things have changed, mostly I noticed $midgard behaving
    sometimes different than $_MIDGARD - use $_MIDGARD whenever
    possible...

    > - http://www.midgard-project.org/documentation/
    > midgardquerybuilder/#3129f8cddd89f4ff17b53a09db5ce905
    > the example give me
    > Fatal error: Class 'MidgardQueryBuilder' not found in
    > /var/cache/midgard/midgard/2-3-5-0.php on line 43

    You could set apache's and midgard's log-level to debug to see whats
    going on, but probably your setup is not complete (does your vhost
    have a symlink to some midcom-static directory?) datagard "should" do it
    all for you, usually...

    Greets,

    Alex

    _______________________________________________
    user mailing list
    user@lists.midgard-project.org
    http://lists.midgard-project.org/mailman/listinfo/user
    •  Reply
  2. Re: [midgard-user] Trouble with the query builder and other

    Fri April 17 2009 07:10:04 UTC
    med-men writes:

    Hi!

    >> I also wanted to keep the guids and discovered theire size were
    >> upgraded, the db contains now small(old) and new(big) guids, I don't
    >> know if that can cause troubles but it seems to work pretty well.

    We support guids and uuids these days.
    So guid is at least 32 and at most 80 characters long.

    >> We want to keep the current navigation which is mostly specific and
    >> use both non_active/active pages.

    This works as always. At least I know nothing about any issues.

    >> I know that most of the old 1.4 functions have disappeared
    >
    > nope, they should all still be there, the old API is still supported
    > with 8.09. You can even go on using Asgard, SpiderAdmin or Aegir if
    > you like (make sure you enable register_globals and
    > register_long_arrays for PHP)

    Last but not least, compile php5-midgard with --with-legacy-api=yes option.

    >> - http://www.midgard-project.org/documentation/
    >> midgardquerybuilder/#3129f8cddd89f4ff17b53a09db5ce905
    >> the example give me
    >> Fatal error: Class 'MidgardQueryBuilder' not found in
    >> /var/cache/midgard/midgard/2-3-5-0.php on line 43

    Documentation bug. Use midgard_query_builder. We do not use CamelCases.
    I'll update docs asap.

    Piotras
    _______________________________________________
    user mailing list
    user@lists.midgard-project.org
    http://lists.midgard-project.org/mailman/listinfo/user
    •  Reply
Designed by Nemein, hosted by Anykey