-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
Maintenance: Database : You have an error in your SQL syntax; check the manual that corresponds to your MariaDB #35949
Comments
@aminweb2 Do you have any 3rd party extensions installed? |
@richard67 of course, but it is not matter. how can find where happen this error? |
@aminweb2 I would not ask if it does not matter. In Joomla 4 the database checker checks also for 3rd party extensions.
There is no easy way for you. If you switch on debug in global configuration you will only find out that it fails in the database checker. But you can give it a try. Switching on debug should cause a stack trace being shown. If so, make a screenshot and post here. And please let me know which 3rd party extensions you have installed and if possible, if they have update SQL scripts. And if the database page shows not only the error message, make a screenshot and post it here, too. Thanks in advance. |
@aminweb2 I think know where the error happens, but I need some information from you to find what causes it. What I knowe it that the error is caused by either an It is very likely not an update SQL script of the core but one of a 3rd party extension. There is either a syntax error in that statement or there is wrong names quoting used for the table or the column name, or a table or column name is a reserved word in SQL and has no names quoting ("`" on MySQL and MariaDB). You could help me with finding the exact mistake in that SQL script so that I can try to make a fix for the database checker. Do you have access to the file system of your Joomla installation? If so, could you do following?
Use following email address, replacing the Thanks in advance. |
@aminweb2 Or maybe a faster check first: Can you change the code line here https://github.com/joomla/joomla-cms/blob/4.0-dev/libraries/src/Schema/ChangeItem.php#L205 in your installation by editing the file? If so, change Then go back to the database checker and make a screenshot and post it here. Thanks in advance. |
@aminweb2 Forget it, no need for you to help me. I have found the error and will provide a fix soon. |
Closing as having a pull request. Please test #35951 . Thanks in advance. |
after upadated joomla 4.0.3 to 4.0.4 , display a error in Maintenance Database:
System information (as much as possible)
Joomla 4.0.4
Database Version 10.3.31-MariaDB-0ubuntu0.20.04.1
Database Type mysql
PHP Version 7.4.22
Web Server LiteSpeed
The text was updated successfully, but these errors were encountered: