Support

Akeeba Backup for Joomla!

#42400 Error after updating to Joomla 6

Posted in ‘Akeeba Backup 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
5.4.0 > 6.0.0
PHP version
8.3
Akeeba Backup version
10.0.1

Latest post by nicholas on Wednesday, 29 October 2025 02:58 CDT

[email protected]

EXTREMELY IMPORTANT: Please attach a ZIP file containing your Akeeba Backup log file in order for us to help you with any backup or restoration issue. If the file is over 10MiB, please upload it on your server and post a link to it.

 

Hello !

 

Today I updated 6 Joomla 5.4.0 sites to version 6.0.0 sucessfully (on all of them Akeeba Backup is installed)

When I run the update to the 7th site evrythiong went well  until I called the frontend of my website

Instead of the homepage following error message appeared

Call to undefined method Joomla\Database\Mysqli\MysqliQuery::castAsChar()

My host and I investigated the issue and a member of support changed mysqli to mysql, telling me that mysqli is not supporting the function castAsChar()

Unfortunately this lead to another issue and I had to restore the backup of my version 5 site.

 

Nevertheless, I will want to update my website at some time, so I investigated further and found an article on your website regarding a very similiar case

Akeeba Tickets

Then I searched my installation of Akeeba backup for this string and found it in 

/administrator/components/com_akeebabackup/vendor/akeeba/engine/engine/Driver/Query/Base.php wondering if this nay have caused the issue

 

/**
* Casts a value to a char.
*
* Ensure that the value is properly quoted before passing to the method.
*
* Usage:
* $query->select($query->castAsChar('a'));
*
* @param string $value The value to cast as a char.
*
* @return string Returns the cast value.
*/
public function castAsChar($value)
{
return $value;
}

 

As mentioned before, there was no issue updating the other sites, so probably it's not Akkeeba Backup which cazsed the issue.

It will also help if I can exclude it from the list of extensions which maybe cazsed the issue.

 

Thank You

 

P.S. I have no log file because site is restored to yesterdays state to keep it up and running.

nicholas
Akeeba Staff
Manager

This does not come from Akeeba Backup. The file you found is our own implementation of a query abstraction which does implement castAsChar (even though we don't use it anywhere). This means that even if we did use castAsChar in Akeeba Backup –WHICH WE DO NOT; THE ONLY PLACE IT WAS USED IN ALL OF OUR SOFTWARE IS THE FINDER PLUGIN FOR AKEEBA TICKET SYSTEM– it would have still worked, as we are using our own query abstraction implementation which does implement castAsChar.

Your problem comes from a different extension. Turn on $debug in your configuration.php to see which extension it is in the debug backtrace.

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!

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!