Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to install the plugin #1

Open
mudrd8mz opened this issue Aug 10, 2020 · 1 comment
Open

Unable to install the plugin #1

mudrd8mz opened this issue Aug 10, 2020 · 1 comment

Comments

@mudrd8mz
Copy link

When trying to install the block, the installation fails with

block_zoola

Coding error detected, it must be fixed by a programmer: Capability 'block/zoola:myaddinstance' was not found! This has to be fixed in code.

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

    line 1306 of /lib/accesslib.php: coding_exception thrown
    line 4616 of /lib/accesslib.php: call to assign_capability()
    line 69 of /blocks/zoola/db/upgradelib.php: call to role_change_permission()
    line 108 of /blocks/zoola/db/upgradelib.php: call to block_zoola_role_permissions()
    line 31 of /blocks/zoola/db/install.php: call to block_zoola_role_setup()
    line 976 of /lib/upgradelib.php: call to xmldb_block_zoola_install()
    line 510 of /lib/upgradelib.php: call to upgrade_plugins_blocks()
    line 1850 of /lib/upgradelib.php: call to upgrade_plugins()
    line 694 of /admin/index.php: call to upgrade_noncore()

As the stack trace shows, the problem is in calling role_change_permission() before the block is actually installed.

@lambdasolutions
Copy link
Contributor

@mudrd8mz thank you for the report! this version of the plugin is outdated, we have uploaded the most recent version to the plugin listing page at moodle.org and will update this repository as well

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants