Forums | Mahara Community

Support /
Undefined property: stdClass::$log_backtrace_print_args


Andrew Winkler's profile picture
Posts: 2

10 July 2017, 5:59 PM

I'm trying to install Mahara alongside Moodle. No matter whether I use the web or the shell installer I get the following errors:

[WAR] 76 Undefined property: stdClass::$log_backtrace_print_args
Call stack (most recent first):
  • log_message(string(size 55), integer, true, true, string(size 47), integer) at /home/banksia/public_html/mahara/lib/errors.php:521
  • error(integer, string(size 55), string(size 47), integer, array(size 5)) at /home/banksia/public_html/mahara/lib/errors.php:314
  • log_build_backtrace(array(size 1)) at /home/banksia/public_html/mahara/lib/errors.php:160
  • log_message(string(size 58), integer, true, true, string(size 47), integer, array(size 1)) at /home/banksia/public_html/mahara/lib/errors.php:648
  • MaharaException->handle_exception() at /home/banksia/public_html/mahara/lib/errors.php:547
  • exception(object(SystemException)) at Unknown:0
[WAR] 76 [ParseError]: syntax error, unexpected '$cfg' (T_VARIABLE)
Call stack (most recent first):
  • exception(object(ParseError)) at Unknown:0

ERROR - something bad happened after headers have been sent. Check the error log for more information.

The error log provides the following kind of errors:

[09-Jul-2017 14:54:10 UTC] [WAR] 60 [ParseError]: syntax error, unexpected '$cfg' (T_VARIABLE)
[09-Jul-2017 14:54:10 UTC] Call stack (most recent first):
[09-Jul-2017 14:54:10 UTC] * exception(object(ParseError)) at Unknown:0

[09-Jul-2017 14:54:21 UTC] PHP Notice: Undefined property: stdClass::$log_backtrace_print_args in /home/banksia/public_html/mahara/lib/errors.php on line 314

I'm running Centos 7.3/WHM/cPanel with PHP 7.0, MariaDB on a 4 CPU, 8GB RAM, 80GB SSD Digital Ocean droplet.

Here's the php info for the subdomain:

http: //mahara.banksiaconsulting.com.au/info.php

And the my.cnf for the server:

http: //mahara.banksiaconsulting.com.au/my.cnf

And its easyapache4 configuration:

http: //mahara.banksiaconsulting.com.au/my_custom_profile.json

 

 

 

Robert Lyon's profile picture
Posts: 360

11 July 2017, 6:20 AM

Hi Andrew,

The $cfg->log_backtrace_print_args variable should have a default definition set via htdocs/lib/config-defaults.php

it is normally set to null

You can override that setting by adding $cfg->log_backtrace_print_args to your htdocs/config.php file, eg

$cfg->log_backtrace_print_args = true;

Cheers

Robert

Andrew Winkler's profile picture
Posts: 2

11 July 2017, 1:44 PM

Thanks for that. I tried it right away, but it made no difference.

Kristina Hoeppner's profile picture
Posts: 3400

13 July 2017, 3:00 PM

Hi Andrew,

Googling for "syntax error, unexpected '$cfg' (T_VARIABLE)" suggests that there may be a problem in a line above. Can you please check that the syntax for all config variables are correct and the variables end in a semicolon and don't have other characters after them?

Cheers

Kristina

 

4 results