Koozali.org: home of the SME Server

Obsolete Releases => SME 8.x Contribs => Topic started by: antdickens on July 10, 2013, 05:08:30 PM

Title: moodle- 500 error when trying to add users / course etc
Post by: antdickens on July 10, 2013, 05:08:30 PM
Hi All

I have had moodle up and running fine in a test environment.

Bur for some reason I have tried a fresh installation on a virgin sme system, the install went fine, but when a try add new users or courses etc I get error 500.

I can change themes, log  in etc.

Not sure where to start looking.

Any ideas?


Thanks in advance
Title: Re: moodle- 500 error when trying to add users / course etc
Post by: Stefano on July 10, 2013, 05:18:34 PM
antdickens:
every time you have an error, the first things to do are:
- take a look in the logs (httpd's ones in your case)
- search the forums, the wiki, the documentation and bugzilla
- post a topic here with the error message
- file a bug (possibily) because "if it doesn't work out-of-the-box, it's likely a bug"

thank you
Title: Re: moodle- 500 error when trying to add users / course etc
Post by: newburns on July 10, 2013, 06:28:04 PM
The best way to check the logs, I have found out, is to log into the Sever Manager Panel. View the log "messages". Then in a new tab, open your moodle or any problem application, recreate the problem, and then immediately refresh the log from your other tab.

I had an issue before where the log I was looking for got lost in DHCP leases and PPTP connections.
Title: Re: moodle- 500 error when trying to add users / course etc
Post by: antdickens on July 11, 2013, 11:09:02 AM
Hi

Thanks for your advice.

I have looked in the httpd log files through the sme server manager and there are no entries relating to moodle other than in the access log which does update each time I view a page, nothing about errors in that or any other http log file.



Title: Re: moodle- 500 error when trying to add users / course etc
Post by: Stefano on July 11, 2013, 01:00:35 PM
search the messages log file

follow wiki advice to enable displaying of php errors
Title: Re: moodle- 500 error when trying to add users / course etc
Post by: antdickens on July 11, 2013, 01:18:04 PM
Hi

Thanks for that

It appears the problem is down to the version of PHP installed

I need to either upgrade moodle or downgrade php


Least I now know which way to head


Thanks again
Title: Re: moodle- 500 error when trying to add users / course etc
Post by: Stefano on July 11, 2013, 01:29:07 PM
please report here the exact error message, thank you
Title: Re: moodle- 500 error when trying to add users / course etc
Post by: antdickens on July 11, 2013, 01:32:28 PM
here you go


Jul 11 12:06:57 bits httpd: PHP Fatal error:  Call to undefined method MoodleQuickForm_hidden::MoodleQuickForm_hidden() in /opt/moodle/html/lib/pear/HTML/QuickForm/element.php on line 363
Title: Re: moodle- 500 error when trying to add users / course etc
Post by: newburns on July 11, 2013, 05:05:33 PM
Latest Moodle requires a higher version of MySQL above SME's, how did you install?
Title: Re: moodle- 500 error when trying to add users / course etc
Post by: janet on July 11, 2013, 05:10:33 PM
antdickens

There are a number of supported Moodle versions (that are supported by Moodle).
There is also the old sme server contrib.
You need to choose the correct version that matches the characteristics of your server operating system ie mysql & php versions for example, rather than just install the "latest" version.
Read the Moodle site for details.

What version did you install ?
Title: Re: moodle- 500 error when trying to add users / course etc
Post by: antdickens on July 11, 2013, 05:31:42 PM
This is the Moodle server check page. I installed it as per the wiki.

Thanks


Environment
Check how your server suits current and future installation requirements

Moodle Version  1.9.2+ (Build: 20080910)

Server Checks
Name Information Report Status
moodle  version 1.0 is required and you are running 1.9.2 OK
unicode  must be installed and enabled OK
database mysql version 4.1.16 is required and you are running 5.1.69 OK
php  version 4.3.0 is required and you are running 5.3.3 OK
php_extension iconv should be installed and enabled for best results OK
php_extension mbstring should be installed and enabled for best results OK
php_extension curl should be installed and enabled for best results OK
php_extension openssl should be installed and enabled for best results OK
php_extension tokenizer should be installed and enabled for best results OK
php_extension xmlrpc should be installed and enabled for best results OK
php_extension ctype should be installed and enabled for best results OK
php_extension pcre must be installed and enabled OK
Title: Re: moodle- 500 error when trying to add users / course etc
Post by: newburns on July 11, 2013, 09:10:07 PM
Well that's a new spin. There is an error.
I will try to install per wiki into my VM. Won't happen until tomorrow morning, though.
What other contribs, addons, modifications do you have done to your SME install? Was it an upgraded server or CD ISO install?
I know there is a version of Moodle 2.0 that runs, but everything here on Contribs.org should work as posted. So I will work on that first before revising any wiki instructions.
Title: Re: moodle- 500 error when trying to add users / course etc
Post by: chris burnat on July 12, 2013, 12:10:50 AM
Moving to Contribs section of the Forums.
Title: Re: moodle- 500 error when trying to add users / course etc
Post by: Jean-Philippe Pialasse on July 13, 2013, 04:41:20 PM
 moodle 196 - 198 is required to run on sme8 because of php5.3