Forums | Mahara Community

Support /
Cannot modify header information after upgrades


Ben Yardy's profile picture
Posts: 12

25 February 2017, 19:48

Hi guys Our server is not running 

Apache 2.4, PHP 5.6, and PHP 7.0

But after server upgrade to php7 mahara has not worked

http://myschoolteacher.com.au

 

I get header errors

 

I reloaded all the files up manually and upgraded db?

 

Any ideas?

Thank you

Keith Morton's profile picture
Posts: 18

25 February 2017, 21:19

Hi Ben

 

Pretty sure there are PHP features no longer available in PHP v7 that Mahara requires to run. You might find you really can't go past V5.6

 

See what others have to say though.

Ben Yardy's profile picture
Posts: 12

26 February 2017, 0:43

Thanks Keith!

I have installed php5.6 and allocated to that cpanel account

Now I get

 

Fatal error: Allowed memory size of 262144 bytes exhausted (tried to allocate 49152 bytes) in /home/myschool/public_html/init.php on line 141

 

I have checked the Php.INI at the server and account and both allow enought memory...

Could this be a mysql issue?

 Thanks again...

Keith Morton's profile picture
Posts: 18

26 February 2017, 10:13

Hi Ben

 

Is someone hosting this for you and is it dedicated or shared?

Keith

Ben Yardy's profile picture
Posts: 12

26 February 2017, 12:10

It's my server..

It's a shared account that was functioning.

I have php7 and 5.6 installed. Running MariaDB 10.0

Current packages are

 

Apache 2.4

config

config-runtime

mod_bwlimited

mod_cgid

mod_deflate

mod_expires

mod_headers

mod_mpm_worker

mod_proxy

mod_proxy_fcgi

mod_proxy_http

mod_remoteip

mod_security2

mod_ssl

mod_suexec

mod_unique_id

tools

PHP 5.6

pear

php-cli

php-common

php-curl

php-devel

php-fpm

php-ftp

php-intl

php-litespeed

php-posix

php-soap

php-xml

runtime

PHP 7.0

libc-client

pear

php-calendar

php-cli

php-common

php-curl

php-devel

php-exif

php-fileinfo

php-fpm

php-ftp

php-gd

php-iconv

php-imap

php-intl

php-ioncube6

php-ldap

php-litespeed

php-mbstring

php-mcrypt

php-mysqlnd

php-opcache

php-pdo

php-posix

php-soap

php-xml

php-xmlrpc

php-zip

runtime

Others

apr

apr-util

cpanel-tools

documentroot

libmcrypt

modsec-sdbm-util

php-cli

php-cli-lsphp

profiles-cpanel

Thanks for your time! 

Keith Morton's profile picture
Posts: 18

26 February 2017, 16:56

Hi Ben

 

Can you show me the PHP.ini line for your memory size please. Just copy and paste it here.

Robert Lyon's profile picture
Posts: 773

28 February 2017, 9:26

Hi Ben

The error: Allowed memory size of 262144 bytes exhausted

262144 bytes is less than 1 MB and that won't be enough to run Mahara

Normally PHP allows a memory limit greater than that

My setup (using Mahara 16.10.1 and PHP7) has PHP memory limit set to the default 128MB:

 memory_limit = 128M 

Note: ends in M and not MB

See http://stackoverflow.com/questions/16175153/allowed-memory-size-of-262144-bytes-exhausted-tried-to-allocate-24576-bytes for more help diagnosing why your memory limit is so low.

Cheers

Robert

Keith Morton's profile picture
Posts: 18

28 February 2017, 11:39

Yes I am thinking this incorrectly set or set too small.

Kristina Hoeppner's profile picture
Posts: 4863

28 February 2017, 11:26

Hi Keith,

Mahara 16.10 does support PHP 7.0. :-)

Cheers

Kristina

 

Keith Morton's profile picture
Posts: 18

28 February 2017, 11:37

Hi Kristina

 

Thanks for the clarification. I was unsure as I did have some issue with PHP 7 and it went away when I went back to 5.6. 

I didn't note the issues though. :(

 

11 results