Forums | Mahara Community

Support /
Upgrade to v1.1.0 not actually doing anything


anonymous profile picture
Account deleted
Posts: 27

20 April 2009, 16:44

I'm attempting to upgrade our test site from v1.0.9 to v1.1.2 in a LAMP environment. The upgrade kept failing the direct v1.1.2 upgrade, so I've backed off and am attemping the intermediate point installs instead.

The upgrade from v1.0.9 to v1.0.10 worked fine.

The upgrade from v1.0.10 to v1.1.0 stalls on the the admin/upgrade.php page. The page displays, but it appears that the upgrade doesn't actually run -- there are no checkmark messages in the Information column, and no "success" message. A quick look at the usr table shows that the lastlastlogin field has not been created (which I've learned from other forum postings is supposed to happen in the v1.1.0 upgrade).

There are no errors in either the php.log or the apache log.

Suggestions?

Hrynkiw

anonymous profile picture
Account deleted
Posts: 1643

20 April 2009, 17:33

Hi - try using firebug on the upgrade page and seeing if there are any javascript errors that might have occured - they would cause the page to look blank and the upgrade not to be run.
anonymous profile picture
Account deleted
Posts: 27

22 April 2009, 16:39

Thanks! Will report back with findings.
anonymous profile picture
Account deleted
Posts: 27

22 April 2009, 17:45

No errors showing with Firebug, although looking at the code involved I was struck by the number of references to our custom theme. Based on a comment I read in one of the threads here, I rolled back to v1.0.9 and set the theme back to Default.

Upgrade to v1.0.10 went smoothly -- as it did before.

Upgrade to v1.1.0 failed -- but at least this time it *did* something. I'll post the new failure details in a separate thread.

Yaju Mahida's profile picture
Posts: 131

28 April 2009, 2:28

We are using the Mahara 1.0.9 version right now and want to upgrade to 1.1.3 due to security vulnerability.

However, we are having great trouble about this. We tried to upgrade it 7 to 8 times (Development Environment).

 For each try we used the new backup of existing 1.0.9. With every try new backup copy of database and dataroot were used to make sure that Mahara is not half upgraded.

 Among them once we succeed. But under my views RSS feed that was existed before is not working and giving the following error (Both IE and Firefox).

Fatal error: Call to undefined function clean_text() in /var/maharadata/smarty/compile/Yaju/%%1F^1FA^1FAA767D%%blocktype%3Aexternalfeed%3Afeed.tpl.php on line 18

After that we tried to upgrade to 1.1.3 many times and no success for that (with clean backup of database and dataroot). We tried all the 1.1.x version and all failed. The upgrade is going nowhere nothing is happening. We got the following error message when we tried to login after upgrade (not done properly).

ePortfolio:Site Unavailable

A nonrecoverable error occurred. This probably means you have encountered a bug in the system

 

Than we tried it to upgrade to 1.0.11 and was successful. Everything is working fine. Even we are able to upgrade it to the 1.2.0alpha1. In both of these upgrades we have a stable system.  With the same environment we are not able to upgrade to any of the 1.1.x.

So, we can conclude that something is going wrong with 1.1.x upgrade. Kindly guide about this. For temporary we are moving to 1.0.11 due to security risks.

anonymous profile picture
Account deleted
Posts: 808

28 April 2009, 17:03

Hi Yaju,

That error you posted looks like it's coming from the smarty cache -- there are no calls to clean_text() in 1.1.  You could try deleting everything out of /var/maharadata/smarty/compile and then loading the page again. We actually have a bug report to clear the cache on every upgrade:

https://eduforge.org/tracker/index.php?func=detail&aid=3193&group_id=176&atid=739

I'm sorry we haven't got this done yet.

 

When your upgrade to 1.1.x fails, there should be an error in the apache log. If you could post those errors up here we will have a better idea of what to look for. It's a good idea to stay on 1.0.11 until the problem is fixed.

Yaju Mahida's profile picture
Posts: 131

28 April 2009, 23:53

By removing the /var/maharadata/smarty/compile the upgrade process from 1.0.9 to 1.1.3 works very smoothly and able to see the view.

 But now not able to create a view. The error message is

Mahara: Invalid Parameter
A required parameter is missing or malformed

Missing parameter 'id' and no default supplied 

The Apache Error Log :- 

 

[Thu Apr 30 00:27:34 2009] [error] [client 192.168.92.1] [INF] 04 (lib/upgrade.php:967) Reading HTML filters, referer: http://yaju-desktop/113/admin/upgrade.php


[Thu Apr 30 00:27:34 2009] [error] [client 192.168.92.1] [INF] 04 (lib/upgrade.php:976) - GoogleVideo, referer: http://yaju-desktop/113/admin/upgrade.php


[Thu Apr 30 00:27:34 2009] [error] [client 192.168.92.1] [INF] 04 (lib/upgrade.php:976) - TeacherTube, referer: http://yaju-desktop/113/admin/upgrade.php


[Thu Apr 30 00:27:34 2009] [error] [client 192.168.92.1] [INF] 04 (lib/upgrade.php:976) - SciVee, referer: http://yaju-desktop/113/admin/upgrade.php


[Thu Apr 30 00:27:34 2009] [error] [client 192.168.92.1] [INF] 04 (lib/upgrade.php:976) - Skype, referer: http://yaju-desktop/113/admin/upgrade.php


[Thu Apr 30 00:27:34 2009] [error] [client 192.168.92.1] [INF] 04 (lib/upgrade.php:976) - Twitter, referer: http://yaju-desktop/113/admin/upgrade.php


[Thu Apr 30 00:27:34 2009] [error] [client 192.168.92.1] [INF] 04 (lib/upgrade.php:976) - SlideShare, referer: http://yaju-desktop/113/admin/upgrade.php


[Thu Apr 30 00:27:34 2009] [error] [client 192.168.92.1] [INF] 04 (lib/upgrade.php:979) - YouTube, referer: http://yaju-desktop/113/admin/upgrade.php


[Thu Apr 30 00:27:34 2009] [error] [client 192.168.92.1] [INF] 04 (lib/upgrade.php:967) Reading HTML filters, referer: http://yaju-desktop/113/admin/upgrade.php


[Thu Apr 30 00:27:34 2009] [error] [client 192.168.92.1] [INF] 04 (lib/upgrade.php:976) - GoogleVideo, referer: http://yaju-desktop/113/admin/upgrade.php


[Thu Apr 30 00:27:34 2009] [error] [client 192.168.92.1] [INF] 04 (lib/upgrade.php:976) - TeacherTube, referer: http://yaju-desktop/113/admin/upgrade.php


[Thu Apr 30 00:27:34 2009] [error] [client 192.168.92.1] [INF] 04 (lib/upgrade.php:976) - SciVee, referer: http://yaju-desktop/113/admin/upgrade.php


[Thu Apr 30 00:27:34 2009] [error] [client 192.168.92.1] [INF] 04 (lib/upgrade.php:976) - Skype, referer: http://yaju-desktop/113/admin/upgrade.php


[Thu Apr 30 00:27:34 2009] [error] [client 192.168.92.1] [INF] 04 (lib/upgrade.php:976) - Twitter, referer: http://yaju-desktop/113/admin/upgrade.php


[Thu Apr 30 00:27:34 2009] [error] [client 192.168.92.1] [INF] 04 (lib/upgrade.php:976) - SlideShare, referer: http://yaju-desktop/113/admin/upgrade.php


[Thu Apr 30 00:27:34 2009] [error] [client 192.168.92.1] [INF] 04 (lib/upgrade.php:979) - YouTube, referer: http://yaju-desktop/113/admin/upgrade.php


[Thu Apr 30 00:27:53 2009] [error] [client 192.168.92.1] [INF] 8d (artefact/file/lib.php:196) Beginning resync of filetype list, referer: http://yaju-desktop/113/admin/upgrade.php


[Thu Apr 30 00:27:53 2009] [error] [client 192.168.92.1] [INF] 8d (artefact/file/lib.php:196) Beginning resync of filetype list, referer: http://yaju-desktop/113/admin/upgrade.php


[Thu Apr 30 00:36:01 2009] [error] [client 192.168.92.1] [WAR] c4 (lib/errors.php:396) An exception was thrown of class InvalidArgumentException. , referer: http://yaju-desktop/113/view/


[Thu Apr 30 00:36:01 2009] [error] [client 192.168.92.1] [WAR] c4 (lib/errors.php:396) THIS IS BAD and should be changed to something extending MaharaException,, referer: http://yaju-desktop/113/view/


[Thu Apr 30 00:36:01 2009] [error] [client 192.168.92.1] [WAR] c4 (lib/errors.php:396) unless the exception is from a third party library., referer: http://yaju-desktop/113/view/


[Thu Apr 30 00:36:01 2009] [error] [client 192.168.92.1] [WAR] c4 (lib/errors.php:396) Original trace follows, referer: http://yaju-desktop/113/view/


[Thu Apr 30 00:36:01 2009] [error] [client 192.168.92.1] [WAR] c4 (lib/user.php:453) Invalid user passed to display_name, referer: http://yaju-desktop/113/view/


[Thu Apr 30 00:36:01 2009] [error] [client 192.168.92.1] Call stack (most recent first):, referer: http://yaju-desktop/113/view/


[Thu Apr 30 00:36:01 2009] [error] [client 192.168.92.1]   * display_name(null) at /var/maharadata/smarty/compile/xxx001/%%A1^A16^A169BBE2%%group.tpl.php:11, referer: http://yaju-desktop

/113/view/
[Thu Apr 30 00:36:01 2009] [error] [client 192.168.92.1]   * include("/var/maharadata/smarty/compile/xxx001/%%A1^A16^A16...") at /var/www/113/lib/smarty/libs/Smarty.class.php:1871, referer: http://yaju-desktop/113/view/


[Thu Apr 30 00:36:01 2009] [error] [client 192.168.92.1]   * Smarty->_smarty_include(array(size 2)) at /var/maharadata/smarty/compile/xxx001/%%89^897^897E9359%%mygroups.tpl.php:39, referer: http://yaju-desktop/113/view/


[Thu Apr 30 00:36:01 2009] [error] [client 192.168.92.1]   * include("/var/maharadata/smarty/compile/xxx001/%%89^897^897...") at /var/www/113/lib/smarty/libs/Smarty.class.php:1258, referer: http://yaju-desktop/113/view/


[Thu Apr 30 00:36:01 2009] [error] [client 192.168.92.1]   * Smarty->fetch("group/mygroups.tpl", null, null, true) at /var/www/113/lib/smarty/libs/Smarty.class.php:1108, referer: http://yaju-desktop/113/view/


[Thu Apr 30 00:36:01 2009] [error] [client 192.168.92.1]   * Smarty->display("group/mygroups.tpl") at /var/www/113/group/mygroups.php:85, referer: http://yaju-desktop/113/view/


[Thu Apr 30 00:36:01 2009] [error] [client 192.168.92.1] , referer: http://yaju-desktop/113/view/


[Thu Apr 30 00:40:51 2009] [error] [client 192.168.92.1] File does not exist: /var/www/favicon.ico

Apache Access Log :-

192.168.92.1 - - [30/Apr/2009:00:44:00 +1000] "GET /113/view/edit.php HTTP/1.1" 200 2951 "http://yaju-desktop/113/view/" "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.10) Gecko/2009042316 Firefox/3.0.10"


192.168.92.1 - - [30/Apr/2009:00:45:03 +1000] "GET /113/view/ HTTP/1.1" 200 3941 "http://yaju-desktop/113/view/edit.php" "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.10) Gecko/2009042316 Firefox/3.0.10"


192.168.92.1 - - [30/Apr/2009:00:45:07 +1000] "GET /113/view/delete.php?id=672 HTTP/1.1" 200 3726 "http://yaju-desktop/113/view/" "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.10) Gecko/2009042316 Firefox/3.0.10"


192.168.92.1 - - [30/Apr/2009:00:45:09 +1000] "POST /113/view/delete.php?id=672 HTTP/1.1" 303 20 "http://yaju-desktop/113/view/delete.php?id=672" "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.10) Gecko/2009042316 Firefox/3.0.10"


192.168.92.1 - - [30/Apr/2009:00:45:09 +1000] "GET /113/view/ HTTP/1.1" 200 3901 "http://yaju-desktop/113/view/delete.php?id=672" "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.10) Gecko/2009042316 Firefox/3.0.10"


192.168.92.1 - - [30/Apr/2009:00:45:11 +1000] "GET /113/view/delete.php?id=228 HTTP/1.1" 200 3733 "http://yaju-desktop/113/view/" "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.10) Gecko/2009042316 Firefox/3.0.10"


192.168.92.1 - - [30/Apr/2009:00:45:12 +1000] "POST /113/view/delete.php?id=228 HTTP/1.1" 303 20 "http://yaju-desktop/113/view/delete.php?id=228" "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.10) Gecko/2009042316 Firefox/3.0.10"


192.168.92.1 - - [30/Apr/2009:00:45:12 +1000] "GET /113/view/ HTTP/1.1" 200 3585 "http://yaju-desktop/113/view/delete.php?id=228" "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.10) Gecko/2009042316 Firefox/3.0.10"


192.168.92.1 - - [30/Apr/2009:00:45:26 +1000] "GET /113/view/edit.php HTTP/1.1" 200 2946 "http://yaju-desktop/113/view/" "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.10) Gecko/2009042316 Firefox/3.0.10" 

What can be the problem?

 

 

Yaju Mahida's profile picture
Posts: 131

29 April 2009, 1:43

When you try to see the Group tab it display following error. (Apache logs above shows error about this also)

ERROR - something bad happened after headers have been sent. Check the error log for more information.
anonymous profile picture
Account deleted
Posts: 808

29 April 2009, 1:56

Someone else had a similar problem recently, and it turned out to be caused by extra whitespace at the end of a file in a language pack (after the end php tag I think):

http://mahara.org/interaction/forum/topic.php?id=451

Have any customised your site at all, or is it a plain Mahara install?

anonymous profile picture
Account deleted
Posts: 808

29 April 2009, 2:03

The upgrade looks okay now, I think this may be where the problem starts:

[Thu Apr 30 00:36:01 2009] [error] [client 192.168.92.1] [WAR] c4 (lib/user.php:453) Invalid user passed to display_name, referer: http://yaju-desktop/113/view/

Did this happen as soon as you clicked on the Create View button? It looks from the trace as if the errors are from the My groups page.

10 results