New Zealand Schools edition quirk

New Zealand Schools edition quirk

I downloaded the NZ Schools edition yesterday and ran through the install which all appeared to go smoothly.


I subsequently found the 'Notifications' admin page was always blank. Some exploring later I discovered that changing line 2 of <moodle>/local/profiles/secondary/upgrade.php from


require($CFG->dirroot.'/local/lib.php');


to



require_once($CFG->dirroot.'/local/lib.php');


not only meant the 'Notifications' admin page had content, but also the front page of the Moodle site gained a 'course categories' section, which hadn't been visible before.


Has anyone else run into this? Or have I done something wrong in the install?

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

Hi Julian,

This has been fixed and a new release is available on the download page. 

Cheers,
Matt.

We are still having this problem, we can't get to the notifications area its blank. The line you are talking about seems to be correct it is "require_once($CFG->dirroot.'/local/lib.php');"

We are running moodle 1.9.5 the nz school addition.

 

This is very frustrating and help would be much appreciated 

 

Thanks

Hi Phil,

You will need to upgrade to the most recent release 1.9.7 which is available on the downloads page.

 

Regards,
Matt.

Hi Matt, 

We have updated however still having the same problem, if we click on notifications it takes us to http://our-web-server/moodle/local/nzschoolssettings.php which is a blank page. Any Ideas?

 

Many Thanks

 

Phil

Hi Phil,

Can I get you to enable debugging and paste in any errors you get on the notifications page to this thread.

To enable debugging in Moodle go to:

Site Administration > Server > Debugging

Change 'Debug Messages' to 'ALL' and tick Display 'Debug messages'

 

Regards,
Matt.

Hi Matt,

Even with debugging on it still displays nothing but a blank page.

 

Thanks

Phil

Hi Phil,

Do you have php configured to log errors? Is there anything in the webserver or php error log?

 

Regards,
Matt.

 $end in /Library/WebServer/Documents/moodle/local/nzschoolssettings.php on line 147, referer: http://moodle.kvc.school.nz/moodle/admin/index.php

[Thu Dec 03 22:26:10 2009] [error] [client 172.31.232.11] PHP Parse error:  syntax error, unexpected $end in /Library/WebServer/Documents/moodle/local/nzschoolssettings.php on line 147

 

is the only thing related to out problem the rest are mainly to do failed logins

That's an unexpected error - what version of PHP are you using?

5.2.9 release 7

 

That should be fine - are you using a php optimiser like eAccelerator or APC? If so, can you temporarily disabling it.

Nope, no php optimiser at all. Just running it on OS X server

 

Cheers

Phil

Can I get you to edit local/nzschoolsettings.php and chage line 113 from <? to <?php

Still no joy I'm afraid 

After some off-line discussion around this bug I've found a problem with php short tags settings and released a new version of NZ Schools Moodle.

Syndicate content


The name Moodle™ is a registered trademark of the Moodle Trust.