Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 2.1.2
    • Fix Version/s: 2.2.2
    • Component/s: Block: Rate course
    • Labels:
      None
    • Environment:
      Ubuntu Linux 10.04.1
      Apache version 2.2.14
      MySQL version 5.1.41
      PHP Version 5.3.2-1ubuntu4.9
    • Database:
      MySQL
    • Affected Branches:
      MOODLE_21_STABLE
    • Fixed Branches:
      MOODLE_22_STABLE
    • Rank:
      26504

      Description

      Plugin "block/ratecourse" is defective or outdated, can not continue, sorry.

      More information about this error
      Debug info: Missing main block class file.
      Stack trace:

      line 635 of /lib/upgradelib.php: plugin_defective_exception thrown
      line 273 of /lib/upgradelib.php: call to upgrade_plugins_blocks()
      line 1466 of /lib/upgradelib.php: call to upgrade_plugins()
      line 317 of /admin/index.php: call to upgrade_noncore()

        Activity

        Hide
        Jenny Gray added a comment -

        Which version of the block did you download, and from where? I'm wondering if you found an out of date copy.

        Can you give me the list of files installed, and where you put them? One alternative is that the code did not copy correctly.

        Show
        Jenny Gray added a comment - Which version of the block did you download, and from where? I'm wondering if you found an out of date copy. Can you give me the list of files installed, and where you put them? One alternative is that the code did not copy correctly.
        Hide
        Stuart R Mealor added a comment -

        Hi Jenny
        The version I downloaded was from:
        http://moodle.org/plugins/pluginversions.php?plugin=block_ratecourse
        block_ratecourse_moodle21_2011062301.zip
        Installed into standard Blocks directory, permissions checked etc.
        Moodle 2.1.2 (Build: 20111010)
        I've uninstalled because of the failure, so can't verify the files installed.
        I will re-try this week and see if the same error is reported...

        Show
        Stuart R Mealor added a comment - Hi Jenny The version I downloaded was from: http://moodle.org/plugins/pluginversions.php?plugin=block_ratecourse block_ratecourse_moodle21_2011062301.zip Installed into standard Blocks directory, permissions checked etc. Moodle 2.1.2 (Build: 20111010) I've uninstalled because of the failure, so can't verify the files installed. I will re-try this week and see if the same error is reported...
        Hide
        Jenny Gray added a comment -

        That download package is correct and looks to be complete when I download it. The file that it reported to you as missing is rate/course/block_rate_course.php.

        You should just need to put the ratecourse folder inside the zip into the blocks folder and visit admin. If that still doesn't work, let me know and I'll take another look.

        Show
        Jenny Gray added a comment - That download package is correct and looks to be complete when I download it. The file that it reported to you as missing is rate/course/block_rate_course.php. You should just need to put the ratecourse folder inside the zip into the blocks folder and visit admin. If that still doesn't work, let me know and I'll take another look.
        Hide
        Stuart R Mealor added a comment -

        Hi Jenny
        I tried this install again, with the same error.
        Second screenshot suggests a name issue maybe?
        3rd image shows files installed and permissions OK.
        Hope this helps yuo trouble-shoot? Stu

        Show
        Stuart R Mealor added a comment - Hi Jenny I tried this install again, with the same error. Second screenshot suggests a name issue maybe? 3rd image shows files installed and permissions OK. Hope this helps yuo trouble-shoot? Stu
        Hide
        Jenny Gray added a comment -

        Hi Stuart,

        You'll be pleased to know that its not you!

        There seems to be a problem with the underscore between rate and course. I've managed to get it to install by:

        a) edit the filename for block_rate_course.php to block_ratecourse.php
        b) edit the file block_ratecourse.php and change the class name to block_ratecourse from block_rate_course
        c) edit the filename for lang/en/block_rate_course.php to block_ratecourse.php

        I think you'll then need to search for all the get_string() calls and change the second parameter to ratecourse not rate_course too.

        Then in should work. Fingers crossed. I haven't got time to fix this today, but I will do as soon as I get a chance. Hopefully these instructions will help you get running if you need it quickly.

        Show
        Jenny Gray added a comment - Hi Stuart, You'll be pleased to know that its not you! There seems to be a problem with the underscore between rate and course. I've managed to get it to install by: a) edit the filename for block_rate_course.php to block_ratecourse.php b) edit the file block_ratecourse.php and change the class name to block_ratecourse from block_rate_course c) edit the filename for lang/en/block_rate_course.php to block_ratecourse.php I think you'll then need to search for all the get_string() calls and change the second parameter to ratecourse not rate_course too. Then in should work. Fingers crossed. I haven't got time to fix this today, but I will do as soon as I get a chance. Hopefully these instructions will help you get running if you need it quickly.
        Hide
        Stuart R Mealor added a comment -

        Hi Jenny
        Well, at least we managed to track the problem down
        I'll wait until you've had time to fix anyway - no rush.
        We are going to include this Block as a demo on http://dev.moodlebites.com as I think it's a really cool idea

        Show
        Stuart R Mealor added a comment - Hi Jenny Well, at least we managed to track the problem down I'll wait until you've had time to fix anyway - no rush. We are going to include this Block as a demo on http://dev.moodlebites.com as I think it's a really cool idea
        Hide
        Jenny Gray added a comment -

        The problem seems to be when I upload my block to the plugins database the folder name is being changed for me, and so all the connections get broken.

        While I get this sorted out you can download a working copy direct from github at https://github.com/moodleou/moodle-block_rate_course/tree/MOODLE_20_STABLE

        Show
        Jenny Gray added a comment - The problem seems to be when I upload my block to the plugins database the folder name is being changed for me, and so all the connections get broken. While I get this sorted out you can download a working copy direct from github at https://github.com/moodleou/moodle-block_rate_course/tree/MOODLE_20_STABLE
        Hide
        Jenny Gray added a comment -

        The plugins database has been updated and this plugin has now been uploaded again.

        Show
        Jenny Gray added a comment - The plugins database has been updated and this plugin has now been uploaded again.
        Hide
        Stuart R Mealor added a comment -

        Hi Jenny
        Just tried to install this.
        block_rate_course_moodle21_2011062302
        It appears to install OK ("Success"), but when adding an activity in a Course gives an "Error reading from Database" message.
        Same environment as above, using Moodle 2.1.3+ (Build: 20111201).
        Happy to continue testing...

        Show
        Stuart R Mealor added a comment - Hi Jenny Just tried to install this. block_rate_course_moodle21_2011062302 It appears to install OK ("Success"), but when adding an activity in a Course gives an "Error reading from Database" message. Same environment as above, using Moodle 2.1.3+ (Build: 20111201). Happy to continue testing...
        Hide
        Jenny Gray added a comment -

        Can you please install directly from git and see if you get the same problems?

        Show
        Jenny Gray added a comment - Can you please install directly from git and see if you get the same problems?
        Hide
        Stuart R Mealor added a comment -

        Sorry Jenny, I don't currently use git, and haven't got it setup anywhere
        I guess we can wait and see if others experience similar problems.

        Show
        Stuart R Mealor added a comment - Sorry Jenny, I don't currently use git, and haven't got it setup anywhere I guess we can wait and see if others experience similar problems.
        Hide
        Jenny Gray added a comment -

        Sorry for the delay - I've worked out what this is. Go to the settings page for the block (admin/settings.php?section=blocksettingrate_course) and make the text box empty (It probably says "Give a review").

        I've changed the code in github so the default install has this empty. I'm trying to upload to moodle.org plug-ins database, but its failing right now

        Show
        Jenny Gray added a comment - Sorry for the delay - I've worked out what this is. Go to the settings page for the block (admin/settings.php?section=blocksettingrate_course) and make the text box empty (It probably says "Give a review"). I've changed the code in github so the default install has this empty. I'm trying to upload to moodle.org plug-ins database, but its failing right now

          People

          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development