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
[4.0] PHP Notices Undefined index(es) for token #29591
Comments
BTW: I see no good reason to enable the API Token plugin at install time. |
|
Test is with 4.0-dev. Just create a login menu item (nothing else) and log with superadmin in frontend. Notice is in the logs. Did not make the patch because I would like @wilsonge to look at this, including the enabled status per default, and as my eclipse is not happy with some parts of the file code. |
I can reproduce it. |
It's best to do checks for each property being accessed instead of assuming that everything will be available as a whole or none at all – that's not how profile fields work. I made a PR with that change. Regarding enabling the plugin by default, I've said it in the original PR and a couple issues and PRs after that but I don't mind repeating myself. Calling it the Joomla API Token is very much a misnomer. The expectation is that 3PDs will be using this token to allow remote access to their extensions. Eventually, when the Joomla API gets stable and is generically available (instead of only to Super Users) the expectation is that 3PDs will migrate most of their com_ajax and custom remote APIs into it. I can personally guarantee that if we do NOT enable it by default today when the time comes we won't be able to change that behaviour and our users will be frustrated at the third party developers for "breaking their sites" when the fault will be squarely on Joomla not making the token plugin enabled by default. Don't be short-sighted when it comes to features. We are not trying to reach short term goals with 4.0. It's not a 3.x release. 4.0 lays the foundation for Joomla's future. If we cock it up again this project will not have a future, period. |
please test #29604 |
Clean install of 4.0-dev.
Login in frontend through a Login menu item,
$pluginData
is empty.The text was updated successfully, but these errors were encountered: