Support

Akeeba Ticket System

#41414 Maintenance Database reports error - not possible to fix.

Posted in ‘Akeeba Ticket System for Joomla! 4 & 5’
This is a public ticket

Everybody will be able to see its contents. Do not include usernames, passwords or any other sensitive information.

Environment Information

Joomla! version
4.4.9
PHP version
8.2.12
Akeeba Ticket System version
5.3.9

Latest post by UWiX on Friday, 06 December 2024 09:45 CST

UWiX

Good afternoon,

I'm preparing to upgrade (finally) to J!5  and noticed an database maintenance "problem". When trying to fix it the error is still being reported. No action is taken - as it seems.
The site was previously updated from Joomla! v3 to Joomla! v4 (with all necessary update steps). I'm using the ticket system since version 1.x and it has been upgraded along with the Joomla! updates.

There are no known issues using the Ticket system but I would like to now if there is an action I can perform to fix the database problem. I've attached the problem report as a screenshot to this ticket.
Installing the latest version of the Ticket System does not fix the "problem" either.

Thank you for the help (in advance)!

Greetz, Nikolai

 

 

 

--- www.uwix.nl ---

nicholas
Akeeba Staff
Manager

You can ignore this. This is a Joomla! bug.

Let me explain. You'll have a good laugh.

Let's say that a database table at version X has a field with a specific definition, e.g. TINYINT(1).

Let's say that the same field on the same database table at a later version Y changes its definition, e.g. to TINYINT(2).

Both changes exist in the update SQL files of the component. Each SQL update file has a version, too, so Joomla! knows which one is the latest version. Keep that in mind…

What you would reasonably expect Joomla to do is reconcile these two updates by only taking the latest into account, since the natural progression of updates would result in that being the normative, latest definition of that field as it should be in the database.

What Joomla actually does is take into account both update files, expecting the same field to have two different definitions at the same time. Obviously this can never be the case, hence the nonsensical error you can never dismiss.

I haven't found a good solution. Going back to change or remove existing SQL update files makes it impossible to upgrade from older versions of ATS to new ones, since that closes the previously tested upgrade path. Not doing that makes Joomla trip and report an error which doesn't exist. Not using Joomla for SQL updates –which we were doing for a decade and worked perfectly well– makes certain Joomla maintainers of dubious capability and provable malice accuse us for unrelated problems we report. So, my choice was to let Joomla bug out since a. it's ultimately Joomla's bug to fix and b. while annoying, it doesn't cause any actual problem.

Nicholas K. Dionysopoulos

Lead Developer and Director

🇬🇷Greek: native 🇬🇧English: excellent 🇫🇷French: basic • 🕐 My time zone is Europe / Athens
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

UWiX

Well, that explains why it cannot be fixed. And indeed, it put a smile on my face. A bit strange procedure to check for both update files.
Thank you for the clear description. No need to fix the issue - that's good to know.

Have a nice day/weekend!

--- www.uwix.nl ---

Support Information

Working hours: We are open Monday to Friday, 9am to 7pm Cyprus timezone (EET / EEST). Support is provided by the same developers writing the software, all of which live in Europe. You can still file tickets outside of our working hours, but we cannot respond to them until we're back at the office.

Support policy: We would like to kindly inform you that when using our support you have already agreed to the Support Policy which is part of our Terms of Service. Thank you for your understanding and for helping us help you!