Installation

Re: Need Help With Moodle Integration

by Jim Fischer -
Number of replies: 0
You were correct Mike. The moodle installation instructions put moodle into two different locations: /opt/moodle and also /var/www/html/moodle

The one that apache is looking at is in the latter of the two and /opt/moodle is where I was working. Now I am able to update moodle correctly and am running version 2.7. However, I am running into an error when trying to install the wwassignment module. Hopefully the following makes sense to someone:

Here is what I did:
moved wwassignment directory into /var/www/html/moodle/mod

When I open moodle at webpage it takes me immediately to a page for plugin checks

The only option is at the bottom of the page: "update moodle database now". When I click on this another page opens up with the following error (if I remove the two directories, the error goes away):

Oregon Tech Math Development for Moodle

Plugin "mod_wwassignment" is defective or outdated, can not continue, sorry.

Debug info: Missing version.php
Error code: detectedbrokenplugin
Stack trace:
• line 591 of /lib/upgradelib.php: plugin_defective_exception thrown
In the case of a Theme, then it is more than likely there is a file that has not been renamed correctly, or the theme is missing a vital component like a version.php, or that the version.php is not correct in some small detail, usually the plugin version. To correct this, you must add the theme/THEMENAME/lang/en/theme_THEMENAME.php file, where THEMENAME is the name of the theme folder. Inside that file, add the string "$string['pluginname'] = 'THEMENAME'; ". Make THEMENAME the name of your theme, however you want it displayed in the Theme selector. Also, make sure to change your config.php file and version.php file to reflect the correct name: In config.php:$THEME->name = 'NAME';