Upgrade from 1.8.2 to 1.9 beta fails

Upgrade from 1.8.2 to 1.9 beta fails

by Peter Birdsall -
Number of replies: 8

We have made a copy of our site, to try the upgrade, and ..

After system checks, the upgrade runs into this:

Fatal error: Using $this when not in object context in /var/www/virtual/wiuonline-test/lib/db/upgrade.php on line 729

any ideas?

Average of ratings: -
In reply to Peter Birdsall

Re: Upgrade from 1.8.2 to 1.9 beta fails

by Peter Birdsall -
Have solved it. We had a number of extra user profile fields added, and this seemed to cause the failure. Deleted them in another copy, and this time upgrade went well, continuing as one might expect. Might be a problem though?
In reply to Peter Birdsall

Re: Upgrade from 1.8.2 to 1.9 beta fails

by Julian Ridden -
I also discovered an issue that if I had a non-standard theme as default it would also stuff up the install. Can anyone else confirm?
In reply to Julian Ridden

Re: Upgrade from 1.8.2 to 1.9 beta fails

by Skip Marshall -
We are working through install issues with a non-standard theme. We are trying a clean install without the theme and will report back if it makes a difference.
In reply to Skip Marshall

Re: Upgrade from 1.8.2 to 1.9 beta fails

by Skip Marshall -
We've completed a clean install without our template. It hangs on the first few database modifications every time. We're running Win2003 server with IIS 6, PHP 5 and MySQL 5. Has anyone else seen this?

We've also completed and upgrade from 1.8.2+ to 1.9 Beta. The upgrade seemed to go fine, but the Admin index.php page breaks.

I've attached a screen shot of the new installation failure.
Attachment install.gif
In reply to Skip Marshall

Re: Upgrade from 1.8.2 to 1.9 beta fails

by Andrew Ziobro -

I noticed the same problem when trying to update out 1.8 server to the latest version of 1.8.

I repeat the process and tried with 1.9beta.

I was able to get the upgrade to complete after I deleted all the cutom user fields that we were using.

I think that the upgrade issue is linked to the custom user fields.

I saw one other post somewhere on this, but can't locate it anymore.

In reply to Peter Birdsall

Re: Upgrade from 1.8.2 to 1.9 beta fails

by Martin Dougiamas -
Picture of Core developers Picture of Documentation writers Picture of Moodle HQ Picture of Particularly helpful Moodlers Picture of Plugin developers Picture of Testers
Hmm, I can't see why extra user profile fields would cause anything to fail ... thoughtful