Forums | Mahara Community
Upgraded to 17.04 and now can't add or edit a page
25 August 2017, 9:30
I have just upgraded from 16.10 to 17.04 and am now unable to add or edit page. There were no error messages during upgrade
[php7:notice] [pid 65092] [client 10.41.1.45:57586] [WAR] 26 (lib/errors.php:536) [Error]:  operator not supported for strings, referer: https://mahara.hadlow.ac.uk/group/view.php?id=83
[Thu Aug 24 22:08:38.009604 2017] [php7:notice] [pid 65092] [client 10.41.1.45:57586] Call stack (most recent first):, referer: https://mahara.hadlow.ac.uk/group/view.php?id=83
[Thu Aug 24 22:08:38.009620 2017] [php7:notice] [pid 65092] [client 10.41.1.45:57586] * exception(object(Error)) at Unknown:0, referer: https://mahara.hadlow.ac.uk/group/view.php?id=83
[Thu Aug 24 22:08:38.009627 2017] [php7:notice] [pid 65092] [client 10.41.1.45:57586] , referer: https://mahara.hadlow.ac.uk/group/view.php?id=83
im using php7.1, apache 2.4 on a suse server, mariadb 10.022 and I downloaded the upgrade from mahara.org
Is there anyone that can help ?
25 August 2017, 9:39
I downloaded the package from mahara.org and I am using mariadb 10.0.22
28 August 2017, 11:24
The error message does not give enough information of where exactly in the code you have the problem. It looks like you are trying to display a group page when you have this issue. Do you see the error for every page or only for group pages? Could you please write the steps you followed to get this exception, so we can identify the exact part of the code we need to look into?
And please let us know if you have made any changes in the code.
31 August 2017, 1:29
Just to confirm, no changes in code - all non core extensions removed. It occurred whenever we clicked add page or edit page in group and individual contexts.
For example as an individual
From the dashboard page: main menu> portfolio> pages and collections > add page
Or on the same pages and collections screen, clicking on an individual page and then edit page
29 August 2017, 13:04
The error "Fatal error:  operator not supported for string error" usually means there is a variable set up as a string, eg
$test = 'cat';
and then some code tries to change this to an array, eg
$test = 'dog';
But I can't see where on the group/view.php page this could be so I suspect it happened within a function that page called - does your site have any custom / third party plugins?
31 August 2017, 1:22
Apologies, it is occurring every time we add or edit a page, both in an individual and group context.
I removed all non-core extensions that we had loaded - cpd and learning styles as a first step but it made no difference.
I installed a blank mahara in a similar environment -> same issues
It seems to be a php7.1 issue as have now downgraded and its working...
31 August 2017, 14:59
Thank you for the additional testing. I created a bug report for the issue at https://bugs.launchpad.net/mahara/+bug/1714138 so we can keep track of it. Since we don't yet support PHP 7.1, we don't have an ETA for fixing this.
If you want to go ahead and give it a go, we'll be happy to review your solution.
02 September 2017, 0:47
i have just tested the patch and it works on the test site i set up that was displaying the error. I will leave our production site at PHP 7.0
Many thanks for your help