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
Database connection access denied with Joomla 3.8 (when in detail view) #18204
Comments
are you able to change state/save others items (e.g articles , contacts , categories etc) |
On "articles" I get the same error, but as a "Joomla Error" message (in "menu component" I get the "An error has occurred. return to control panel." error |
On "article categories" I get the same "system error" message as with menu items. but on both, I can successfully change the status in the "list of elements view" |
I cannot recreate this. Can you try reinstalling core files? Joomla updater and click reinstall core files. |
also check the database permissions of your database user |
Thanks brian, I was expecting this comment from someone. But please note that I actually can do all this stuff from the "list view" of the menu items or the articles or the categories. So as I stated at the very top, the database user configuration actually IS correct. It is only in the named circumstances where the connection "seems" to fail - however, what I now found out is, that DESPITE the MySQL error message, at least for content changes in articles, the change actually IS STORED in the database |
Unfortunately your best first troubleshooting step is going to be checking the permissions. Especially as Try setting the site to debug mode and enabling all logging (debug and log plugins). If you get the error message again, you should be able to find the query that it is failing on and that would also help debug this issue. |
will do some investigation indeed... |
I am going to close this for now as everything points to it being a local database issue and not a joomla issue. If you find that it is in fact Joomla it can always be reopened |
Found the issue, not connected to Joomla (sorry to bother you). |
Glad you discovered the issue and it was as suspected |
I am having this issue running Joomla! 3.8.1 using MySQL 5.5.41-0+wheezy1 and PHP 5.4.45-0+deb7u11 |
I am experiencing a strange issue since update to 3.8 with my database user.
The website is generally working fine (so username and password for the database user are set correctly).
In the backend, when I unpublish a menu item (from the "menu items list" of the menu) by clicking on the "status" icon, the menu item gets unpublished as expected.
when I open the menu item details page and select the "unpublish" option from the "status" select list, I am receiving an mysql error "1044 Access denied for user ..."
(this also happens with other elements as articles and probably others as well).
Steps to reproduce the issue
Create a joomla instance with a database where "database name" and "user_name" both start with the same prefix as the "database table prefix" (whether this is relevant is just my guess)
Open a menu item detail view and try to change the status, then "save" or "save and close"
Expected result
Change is stored to the database
Actual result
1044 Access denied for user '#__mydatabase'@'%' to database '#__mydatabase'
...\httpdocs\libraries\joomla\database\driver\mysqli.php:650
System information (as much as possible)
PHP 7.1.9, Apache 2.4.25, Joomla 3.8.0
Database 5.5.5-10.2.6-MariaDB
database name is "jms_mydatabase"
database username is "jms_mydatabase"
database table prefix is "jms_"
Additional comments
Indeed there is no user #_mydatabase and no database #mydatabase on the server, so the MySQL error message is "understandable", however it looks to me as if the "table prefix" is not rendered from # to jms in these circumstances.
Any ideas?
The text was updated successfully, but these errors were encountered: