piersharding / moodle-tool_uploadcoursecategory

Moodle Admin Tools plugin for basic upload of course categories
22 stars 13 forks source link

Install error on Moodle 3.0 #6

Open sestrauss opened 8 years ago

sestrauss commented 8 years ago

Hello,

Thanks for this great plugin. I have been happily using it for years. I just tried it on the new Moodle 3.0 site I am testing and got the following error when I tried to install it:

Plugin "tool_availabilityconditions" is installed in incorrect location "$CFG->dirroot/admin/tool/uploadcoursecategory", expected location is "$CFG->dirroot/admin/tool/availabilityconditions"

More information about this error Debug info: Error code: detectedmisplacedplugin Stack trace:

line 463 of /lib/upgradelib.php: plugin_misplaced_exception thrown
line 1647 of /lib/upgradelib.php: call to upgrade_plugins()
line 677 of /admin/index.php: call to upgrade_noncore()
piersharding commented 8 years ago

Hi -

It seems to be complaining about tool_availabilityconditions - are the two of them some how conflicting ?

Cheers, Piers Haring.

sestrauss commented 8 years ago

Hi,

Thanks for your quick response.

I'm not sure what "tool_availabilityconditions" are. I just tried to add the category upload plugin via the GUI, as I did with quite a few other plugins, but got that error message.

Do you know if it installs OK on other Moodle 3.0 systems?

On Fri, Feb 26, 2016 at 7:53 PM, Piers Harding notifications@github.com wrote:

Hi -

It seems to be complaining about tool_availabilityconditions - are the two of them some how conflicting ?

Cheers, Piers Haring.

— Reply to this email directly or view it on GitHub https://github.com/piersharding/moodle-tool_uploadcoursecategory/issues/6#issuecomment-189541944 .

Sharon Strauss Instructional Technology Services IITS Haverford College http://iits.haverford.edu sstrauss@haverford.edu 610-896-4916

IITS staff will never ask for your password. The privacy of your password enhances the privacy of our entire community and the integrity of our technology environment. Check us out on the web - http://www.haverford.edu/iits Read our blog - http://iits.haverford.edu/instructionaltechnology/

piersharding commented 8 years ago

Hi -

I currently don't have a Moodle 3 system to test against, but I think there is something wrong with one of the other plugins that you have installed related to availabilityconditions?

Cheers, Piers Harding.

sestrauss commented 8 years ago

Interesting. I uninstalled the Progress bar plugin, and now I get a different error message with the category uploader:

Plugin "tool_behat" is installed in incorrect location "$CFG->dirroot/admin/tool/uploadcoursecategory", expected location is "$CFG->dirroot/admin/tool/behat"

More information about this error Debug info: Error code: detectedmisplacedplugin Stack trace:

line 463 of /lib/upgradelib.php: plugin_misplaced_exception thrown
line 1647 of /lib/upgradelib.php: call to upgrade_plugins()
line 677 of /admin/index.php: call to upgrade_noncore()
sestrauss commented 8 years ago

I fixed up all my missing plug-ins and tried again. I kept getting similar errors when I tried to install the category uploader via the GUI. However, it installed fine when I just put the "uploadcoursecategory" folder in my admin/tools directory--as your README instructs.

I think the problem may be that the zip extracts to "moodle-tool_uploadcoursecategory-master" by default. If I start again with a fresh Moodle 3.0, I'll add your plugin first and see what happens.

piersharding commented 8 years ago

Hi -

I have built a clean 3.0 system, and installed the plugin by moving moodle-tool_uploadcoursecategory to uploadcoursecategory, which works.

Cheers, Piers Harding.

sestrauss commented 8 years ago

Hi,

Yes. That worked for me too. Your plug-in installed fine when I renamed it and uploaded it to the admin/tools directory. Now that it is installed properly, it works great. I am able to upload categories just like on earlier Moodle versions.

My point is that it does not work to via the frontend install interface Moodle has at moodle_URL/admin/tool/installaddon/index.php

piersharding commented 8 years ago

Yes - the moodle install is a new thing (to me) - doesn't look like it plays well with github zip files.

sestrauss commented 8 years ago

Piers,

I got the GUI upload to work just by renaming a bit in your github download zip a bit.

I just renamed the extracted folder from "moodle-tool_uploadcoursecategory-master" to "uploadcoursecategory"

See if this works for you.

moodle-tool_uploadcoursecategory-master.zip

piersharding commented 8 years ago

You can try https://github.com/piersharding/moodle-tool_uploadcoursecategory/releases/tag/Moodle3.x - this should work.

Cheers.

sestrauss commented 8 years ago

Works great! Thanks.

On Wed, Mar 2, 2016 at 1:42 PM, Piers Harding notifications@github.com wrote:

You can try https://github.com/piersharding/moodle-tool_uploadcoursecategory/releases/tag/Moodle3.x

  • this should work.

Cheers.

— Reply to this email directly or view it on GitHub https://github.com/piersharding/moodle-tool_uploadcoursecategory/issues/6#issuecomment-191366854 .

Sharon Strauss Instructional Technology Services IITS Haverford College http://iits.haverford.edu sstrauss@haverford.edu 610-896-4916

IITS staff will never ask for your password. The privacy of your password enhances the privacy of our entire community and the integrity of our technology environment. Check us out on the web - http://www.haverford.edu/iits Read our blog - http://iits.haverford.edu/instructionaltechnology/