Skip to content
This repository was archived by the owner on May 19, 2025. It is now read-only.

cant activate deactivated plugin on latest version #61

Open
rafhelp opened this issue Jan 10, 2025 · 1 comment
Open

cant activate deactivated plugin on latest version #61

rafhelp opened this issue Jan 10, 2025 · 1 comment

Comments

@rafhelp
Copy link

rafhelp commented Jan 10, 2025

on the plugins i activated the random background plugin.
it works
the action then says Deactivate
i press Deactivate
it work
it deactivates it
then i press activate
nothing happens
it still says activate

@rafhelp
Copy link
Author

rafhelp commented Jan 10, 2025

man this app is buggy as anything. fix one thing it breaks another thing,

if you add $amp_role_capabilitiesin config.php it overwrites the one in plugin.php so you have to add all of the permissions in the config.php

In your help it has a Anonymous Role but in the plugin.php there is no "Anonymous" in the amproles:

class ampRoles {
const Administrator = 'Administrator';
const Editor = 'Editor';
const Contributor = 'Contributor';
}

well i added one:
class ampRoles {
const Administrator = 'Administrator';
const Editor = 'Editor';
const Contributor = 'Contributor';
const Anonymous = 'Anonymous';
}

and then assigned a role to a user to be anonymous:
$amp_role_assignment = array(
'Administrator' => array(
'admin',
// Add any additional admin usernames here
),
'Anonymous' => array(
'client1',
)
);

but now the login is messed up. when i login as admin and press the stats button for a link, it takes me back to the login page and wont let me login.

anonymous user should be able to login and see a stats page but cant

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

No branches or pull requests

1 participant