This repository was archived by the owner on May 19, 2025. It is now read-only.
forked from nicwaller/yourls-authmgr-plugin
-
Notifications
You must be signed in to change notification settings - Fork 23
YOURLS 1.8 and AuthMgrPlus produce Argument #1 ($array) must be of type array #30
Comments
It does look like that the problem isn't YOURLS 1.8 or 1.8.1- the main problem is PHP8. Some disadvantage with modern Webspace hosting. However, according to the Readme, AuthMgrPlus is only compatible with PHP7. Is there a chance, that there will be a version for PHP8? best regards |
In detail, it has something to do with "sort( $links['plugin']);" in line 171. If I remove or set a comment for the function, I see no error and get a statistic page. |
Actually, I think the issue might be related to the
With this
I'm using that code right now with php8.0, and it seems to be working :) |
Perfectly, that work for me. Thank you. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Hello,
I upgraded to YOURLS 1.8 with PHP8. I found a problem with enabled AuthMgrPlus. The Dashboard work without problem. Also using the short url.
However, if I want to open the statistics page for a short url, I see an empty page (except background and logo). It work after disabling of AuthMgrPlus. Switching back to PHP7.4 doesn't change anything.
According to php log, I fount the following:
Got error 'PHP message: PHP Fatal error: Uncaught TypeError: sort(): Argument #1 ($array) must be of type array, null given in /user/plugins/authMgrPlus/plugin.php:171\nStack trace:\n#0
Please for response.
The text was updated successfully, but these errors were encountered: