A step by step guide to upgrading elgg1.2 to 1.5rc2 ?

Hi, all

I've managed to get working a fresh install of elgg v1.5rc2 , no bother.

Getting v1.2 to upgrade is a different matter - the best I can manage is a version where Dashboard/Profile widgets just show up as "This widget is either broken or has been disabled by the site administrator." that is for new and old ones.

Please could someone write a step by step guide ?

To even an upgraded installation to log in I've had to copy a database table over from a fresh version, as it doesnt create it on running 'upgrade.php', doing this below.

CREATE TABLE elggtest.elggprivate_settings SELECT * FROM elgg15rc2.elggprivate_settings;

Can you help ? See this thread for my other issues, with pictures

I've even given the settings.php file root access before running 'upgrade.php' just incase it was that, that was causing the problems..

 

  • Hi munkee,

    That private settings table is already in Elgg 1.2! I really doubt that upgrade deletes existing tables.

  • I've just done a from scratch installation of v1.2 and have noticed that the new DB has 21 tables, the verison that I'm trying to upgrade started off as elgg 1.1 which was then upgraded to v1.2 now on to v1.5 , whilst in the v1.2 state it has 19 tables... 'elggprivate_settings' & 'elgggeocode_cache' aren't there & they weren't deleted, looks like they never existed, or the 1.1 to 1.2 upgrade failed and I didnt notice.

    How can I get all my data in this v1.2 database which only has 19 tables, to elgg 1.5?

    Is it possible to merge two databases?

    Here's a pic of my current tables in elgg :

     

  • Hi munkee,

    It sounds like your upgrade from 1.1 to 1.2 may have failed.

    The private settings table was introduced in 1.2.

    This is possibly what is confusing Elgg 1.5

  • Would you happen to know how to merge my existing v1.2 database with a freshly installed v1.2 database?

    Would that solve my issues, as I dont want to lose all the data so far created, but do want to move on to v1.5 on its release.

    Many many thanks.

  • yesterday (on godaddy -- the bad boy re: javascript problems;O)

    I installed v1.2

    setup users

    copied 1.5rc2 on top of 1.2

    ran /upgrade.php

    took several minutes

    came up clean

  • Hi Dhrup,

    Munkee's problem is that his 1.2 database is missing some tables, presumably because his 1.1 upgrade failed to complete.

  • Munkee - what baffles me is that you say that your widgets are broken *after* an upgrade to 1.5 RC2.

    As widgets in 1.2 require the private settings table to work, I don't think that you could have been running the 1.2 code base to begin with.

  • I copied the private settings table from a fresh install of v1.5rc2's database to the upgraded one, in order to get it to work..

  • Yes, but you report that your widgets are broken in the page linked above. My point is that they could never have worked in the first place if you were running 1.2 without a private settings table.

  • So I guess I'm wondering if you are upgrading from 1.1 or 1.2.  If what you have is a sort of combination of the code from both, then I'm not surprised that the upgrade script is getting confused.