Plugins Block „Level Up : http error 500

Plugins Block „Level Up : http error 500

by sara HHH -
Number of replies: 9

Hi,

I bekome a problem with the block "Level Up!".

The XP folder is set to: drwxrwxrwx and xp/index.php is set to -rw-rw-rw-

When I trying to change the basic settings in the website administration comes an error message :

The Address Link is: https://moodlexxxxxxxx./blocks/xp/index.php/admin/rules

The Page Isn't working Http Error 500


best Regards





Average of ratings: -
In reply to sara HHH

Re: Plugins Block „Level Up : http error 500

by Howard Miller -
Picture of Core developers Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers

Find the error 500 in your web server's error log.

There should be additional information. 

In reply to Howard Miller

Re: Plugins Block „Level Up : http error 500

by sara HHH -

unfortunatly there is nothing about this error in Log File.

In reply to sara HHH

Re: Plugins Block „Level Up : http error 500

by Howard Miller -
Picture of Core developers Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers

Then you're looking in the wrong place and/or logging is not properly configured. 

An error 500 should be logged. 

In reply to sara HHH

Re: Plugins Block „Level Up : http error 500

by Frédéric Massart ⭐ -
Picture of Core developers Picture of Plugin developers Picture of Testers

Could you turn debugging on and see what errors come up?

Also what PHP version are you using?

In reply to Frédéric Massart ⭐

Re: Plugins Block „Level Up : http error 500

by sara HHH -

Hi,

i have turned debugging on hier ist result:

Fatal error: Class 'block_edit_form' not found in /var/www/html/moodle/blocks/xp/classes/form/edit_form.php on line 37

version of PHP 5.6.37

Thanks


In reply to sara HHH

Re: Plugins Block „Level Up : http error 500

by Howard Miller -
Picture of Core developers Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers

Do you definitely have the correct version for your version of Moodle?

Which version of Moodle are you running?

In reply to sara HHH

Re: Plugins Block „Level Up : http error 500

by Frédéric Massart ⭐ -
Picture of Core developers Picture of Plugin developers Picture of Testers

This is a very strange error. My best guess is that your Moodle instance and/or the plugin have been altered. The class that is not being found should have be included by Moodle core. Furthermore, I don't see any reason why this class would be needed to load the rules page.

Regardless, adding the following code at line 29 of the reported file, should make it work:

require_once($CFG->dirroot . '/blocks/edit_form.php');
In reply to Frédéric Massart ⭐

Re: Plugins Block „Level Up : http error 500

by sara HHH -

Hi,


many thanks.now it is working.

best regards