Skip to content

Unable to install the plugin #1

@mudrd8mz

Description

@mudrd8mz

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions