Koozali.org: home of the SME Server

moodle- 500 error when trying to add users / course etc

Offline antdickens

  • 15
  • +0/-0
moodle- 500 error when trying to add users / course etc
« 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

Offline Stefano

  • *
  • 10,839
  • +2/-0
Re: moodle- 500 error when trying to add users / course etc
« Reply #1 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

Offline newburns

  • *
  • 345
  • +0/-0
  • A good plumber, noob developer
    • Mt. Rose MEdia
Re: moodle- 500 error when trying to add users / course etc
« Reply #2 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.
SME 8.0
Quad 6600
8gb DDR2 800
8 TB RAID 5
Dual Gigabit NIC
I Still Don't KNOW WHAT I AM DOING. Please, don't assume I know anything about Linux or Centos, I just know hardware

Offline antdickens

  • 15
  • +0/-0
Re: moodle- 500 error when trying to add users / course etc
« Reply #3 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.



« Last Edit: July 11, 2013, 12:47:19 PM by antdickens »

Offline Stefano

  • *
  • 10,839
  • +2/-0
Re: moodle- 500 error when trying to add users / course etc
« Reply #4 on: July 11, 2013, 01:00:35 PM »
search the messages log file

follow wiki advice to enable displaying of php errors

Offline antdickens

  • 15
  • +0/-0
Re: moodle- 500 error when trying to add users / course etc
« Reply #5 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

Offline Stefano

  • *
  • 10,839
  • +2/-0
Re: moodle- 500 error when trying to add users / course etc
« Reply #6 on: July 11, 2013, 01:29:07 PM »
please report here the exact error message, thank you

Offline antdickens

  • 15
  • +0/-0
Re: moodle- 500 error when trying to add users / course etc
« Reply #7 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

Offline newburns

  • *
  • 345
  • +0/-0
  • A good plumber, noob developer
    • Mt. Rose MEdia
Re: moodle- 500 error when trying to add users / course etc
« Reply #8 on: July 11, 2013, 05:05:33 PM »
Latest Moodle requires a higher version of MySQL above SME's, how did you install?
SME 8.0
Quad 6600
8gb DDR2 800
8 TB RAID 5
Dual Gigabit NIC
I Still Don't KNOW WHAT I AM DOING. Please, don't assume I know anything about Linux or Centos, I just know hardware

Offline janet

  • ****
  • 4,812
  • +0/-0
Re: moodle- 500 error when trying to add users / course etc
« Reply #9 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 ?
Please search before asking, an answer may already exist.
The Search & other links to useful information are at top of Forum.

Offline antdickens

  • 15
  • +0/-0
Re: moodle- 500 error when trying to add users / course etc
« Reply #10 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

Offline newburns

  • *
  • 345
  • +0/-0
  • A good plumber, noob developer
    • Mt. Rose MEdia
Re: moodle- 500 error when trying to add users / course etc
« Reply #11 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.
SME 8.0
Quad 6600
8gb DDR2 800
8 TB RAID 5
Dual Gigabit NIC
I Still Don't KNOW WHAT I AM DOING. Please, don't assume I know anything about Linux or Centos, I just know hardware

Offline chris burnat

  • ****
  • 1,135
  • +2/-0
    • http://www.burnat.com
Re: moodle- 500 error when trying to add users / course etc
« Reply #12 on: July 12, 2013, 12:10:50 AM »
Moving to Contribs section of the Forums.
- chris
If it does not work out of the box, please fill in a Bug Report @ Bugzilla (http://bugs.contribs.org)  - check: http://wiki.contribs.org/Bugzilla_Help .  Thanks.

Offline Jean-Philippe Pialasse

  • *
  • 2,762
  • +11/-0
  • aka Unnilennium
    • http://smeserver.pialasse.com
Re: moodle- 500 error when trying to add users / course etc
« Reply #13 on: July 13, 2013, 04:41:20 PM »
 moodle 196 - 198 is required to run on sme8 because of php5.3