Forums | Mahara Community

Support /
Problems upgrading from 15.04 to 16.04


Bruno Malaval's profile picture
Posts: 6

27 May 2016, 21:44

Hi,

Last days I upgrade Mahara using GIT on a test server, from 15.04 to 16.04 and get 2 problems

First

I choose the 16.04_STABLE branch, get the code and try upgrade
Upgrade fails with this error :

PHP Fatal error: Class 'Session' not found in /var/www/html/mahara-16.04/htdocs/lib/errors.php on line 128

I found this topic in the bug tracker
https://gitlab.com/mahara/mahara/commit/8f89c31ddd94fae2e60c84b5e6f542a6a78bd94a

So I download the code from the master branch and upgrade works

Second :

For every page I try to create, I got this error
Fatal error: Call to a member function get() on a non-object in /var/www/html/mahara-16.04/htdocs/lib/view.php on line 5985
But it's like a warning, the page was created nevertheless

I look at the code and replace line 5985 in view.php :
return !$view->get('template') && !in_array($this->type, $unthemable_types); (branch master)
by
return !in_array($this->type, $unthemable_types); (branch 16.04_STABLE)

I wonder if someone got same problems and which branch I must choose to have a stable production server ?

Thanks a lot

Ghada El-Zoghbi's profile picture
Posts: 122

29 May 2016, 10:21

Hi Bruno,

Mahara releases are tagged. Best is to get the code from the tag. To get a list:

git ls-remote --tags

Hopefully it will eliminate the errors.

Cheers,
Ghada

2 results