Debuging after Midgard update [u]
"Robert Guerra [c]" <[email protected]>
| Newsgroups | gmane.comp.web.midgard.user |
|---|---|
| Message-ID | <[email protected]> |
http://www.privaterra.org/blog-rg/debuging-after-midgard-update.html Every weekend I have the habit of doing an apt-get upgrade on my Ubuntu system. If anything, to make sure that I have the latest security patches . It is quite routine, and most (if not all) of the time all goes well - and I don't have to do any post upgrade cleanup. I thought this week was going to be no different - well, I was wrong.... For some reason or another I didn't notice that the Midgard debian packages had been upgrades. Worse yet, i didn't know that the packages in question were mayor ones. So, I proceeded with the apt- get update; apt-get upgrade and after I said yes - noticed that Midgard components were being upgraded. I checked the website after the upgrade, and surely enough - it didn't work. First it was some nasty NAP error . Upon searching in Google i noticed that upgrading Midcom from 2.2 to 2.4, well is not trivial. Luckily I found Torben's post that gave me some hints on what the issue is about and how to fix it. From there, i followed the steps - downloaded and installed the new Midcom, and configured the new midcom.conf file in /etc/midgard. After that, well - i thought that would be it. I signed onto the webpage, and - at first - all seemed to work. However, when creating a subtopic i got this nasty looking error... Fatal error: Call to a member function on a non-object in /usr/share/ pear/midcom/lib/midcom /helper/misc.php(657) : eval()'d code(26) : eval()'d code on line 100 I looked all over for help - on google, in newgroups and mail messages - all to no avail. Then, with a bit of time - I tried the true and trusted information source that for some reason always seems to lead to very productive leads...that being, asking the question on the #midgard channel :) After describing the problem , Piotras asked if I had OpenPSA installed. I answered yes, as it is installed - but i never use it. I then though - hmm, could it be that OpenPSA needs to be upgraded too... well, i gave it a shot. I looked at the OpenPSA page from there, I downloaded the latest (non beta) version. After that, i did the following: bunzip2 openpsa-1.12.1.tar.bz2 tar xvf openpsa-1.12.1.tar cd openpsa-1.12.1 gunzip *.gz Then I moved the openpsa xml file so that i could import it with datagard cp openpsa.xml /usr/share/midgard/data then i started DATAGARD and imported/updated the openpsa application. After the upgrade, I logged into my site, tried adding a subtopic and it...WORKED! So again, thanks are in order to Henri, Piotras and fine members of the #midgard chat channel ! -- Robert Guerra <rguerra-ml4S53UB+/[email protected]> Managing Director, Privaterra <http://www.privaterra.org>