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

YOURLS-AuthMgrPlus intervening on AJAX #19

Closed
danilorassis opened this issue May 29, 2020 · 4 comments
Closed

YOURLS-AuthMgrPlus intervening on AJAX #19

danilorassis opened this issue May 29, 2020 · 4 comments

Comments

@danilorassis
Copy link

danilorassis commented May 29, 2020

Hello. I am using the plugin to restrict access to only a few users. However, when I activate the plugin, AJAX does not update the table on the page. It does not insert or delete action. What can it be? If I turn it off, everything goes back to normal

Show this warnning
Warning: Invalid argument supplied for foreach() in /var/www/yourls/user/plugins/yourls-authmgrplus/plugin.php on line 164

Warning: sort() expects parameter 1 to be array, null given in /var/www/yourls/user/plugins/yourls-authmgrplus/plugin.php on line 173

The create short url button looks like this.

image

@danilorassis danilorassis changed the title YOURLS-AuthMgrPlus intering on AJAX YOURLS-AuthMgrPlus intervening on AJAX May 29, 2020
@joshp23
Copy link
Owner

joshp23 commented Jul 22, 2020

The lines referred to by those errors are concerned with limiting access to plugin admin pages for unauthorized users. I'm not sure what might be causing your issue, as I am not able to reproduce the error. More information regarding your environment, or some error log info would help provide some direction.

@joshp23
Copy link
Owner

joshp23 commented Sep 3, 2020

Looking into this briefly, it appears as if the admin links are blank in your installation before this plugin attempts to filter them.

  1. Are you using any other plugins that alter the links in the admin page?
  2. Does this error occur when ONLY this plugin is enabled, and no other plugins?

@justinforlenza
Copy link

I am also getting this error on 1.7.9, i tried it with only AuthMgrPlus enabled, and still am getting the issue.

@joshp23
Copy link
Owner

joshp23 commented Mar 12, 2021

Warning: sort() expects parameter 1 to be array, null given in /var/www/yourls/user/plugins/yourls-authmgrplus/plugin.php on line 173

Addressed with 09ab9fd and related to #30

Warning: Invalid argument supplied for foreach() in /var/www/yourls/user/plugins/yourls-authmgrplus/plugin.php on line 164

Addressed with 93b4a26

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

3 participants