Support

Akeeba Backup for Joomla!

#36395 An unhandled Exception has been detected -- ConfigurationWizard.php

Posted in ‘Akeeba Backup for Joomla!’
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
n/a
PHP version
n/a
Akeeba Backup version
n/a

crazyhorse

 

Description of my issue:

I took an akeeba backup of my production site and used kickstart to restore it to a test domain in order to test the backup and restore process (as I have done many times before). The site appears to be working front and back end except Akeeba backup which throws the following error. Needless to say akeeba backup works without exception on the production site.

I have a pdf of the whole debugging page but I do not know if it is safe to upload on a public ticket.

I understand that this is submitted outside your support hours and I do not expect any response outside of those hours. There is no hurry, I just want to be assured that in the event of needing to I could successfully restore my production site. 

Akeeba Backup - An unhandled Exception has been detected 500 Path cannot be empty

File <root>/administrator/components/com_akeeba/Model/ConfigurationWizard.php Line 74

 The content below this point is for developers and power users.

Joomla 3.10.4 – PHP 8.0.13 on Linux

Debug information

Exception type: ValueError

#0 /homepages/46/d822140167/htdocs/glcoord-test/administrator/components/com_akeeba/Model/ConfigurationWizard.php(74): file_put_contents('', 'test')
#1 /homepages/46/d822140167/htdocs/glcoord-test/administrator/components/com_akeeba/Controller/ControlPanel.php(302): Akeeba\Backup\Admin\Model\ConfigurationWizard->autofixDirectories()
#2 /homepages/46/d822140167/htdocs/glcoord-test/libraries/fof40/Controller/Controller.php(1095): Akeeba\Backup\Admin\Controller\ControlPanel->onBeforeMain()
#3 /homepages/46/d822140167/htdocs/glcoord-test/libraries/fof40/Controller/Controller.php(409): FOF40\Controller\Controller->triggerEvent('onBeforeMain')
#4 /homepages/46/d822140167/htdocs/glcoord-test/administrator/components/com_akeeba/Controller/Mixin/PredefinedTaskList.php(41): FOF40\Controller\Controller->execute('main')
#5 /homepages/46/d822140167/htdocs/glcoord-test/libraries/fof40/Dispatcher/Dispatcher.php(178): Akeeba\Backup\Admin\Controller\ControlPanel->execute('main')
#6 /homepages/46/d822140167/htdocs/glcoord-test/administrator/components/com_akeeba/akeeba.php(59): FOF40\Dispatcher\Dispatcher->dispatch()
#7 /homepages/46/d822140167/htdocs/glcoord-test/libraries/src/Component/ComponentHelper.php(402): require_once('/homepages/46/d...')
#8 /homepages/46/d822140167/htdocs/glcoord-test/libraries/src/Component/ComponentHelper.php(377): Joomla\CMS\Component\ComponentHelper::executeComponent('/homepages/46/d...')
#9 /homepages/46/d822140167/htdocs/glcoord-test/libraries/src/Application/AdministratorApplication.php(101): Joomla\CMS\Component\ComponentHelper::renderComponent('com_akeeba')
#10 /homepages/46/d822140167/htdocs/glcoord-test/libraries/src/Application/AdministratorApplication.php(159): Joomla\CMS\Application\AdministratorApplication->dispatch()
#11 /homepages/46/d822140167/htdocs/glcoord-test/libraries/src/Application/CMSApplication.php(225): Joomla\CMS\Application\AdministratorApplication->doExecute()
#12 /homepages/46/d822140167/htdocs/glcoord-test/administrator/index.php(51): Joomla\CMS\Application\CMSApplication->execute()
#13 {main}

 Old and mostly in the way

nicholas
Akeeba Staff
Manager

Ah! This is a bug I fixed in version 9 but not in version 8. If the output directory does not exist it causes an error on PHP 8.

Quick solution until the next version is released: downgrade to PHP 7.4 so the PHP error does not happen anymore. Go to Akeeba Backup and set the output directory of each and every of your backup profiles. Then change back to PHP 8.0.

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!

crazyhorse

Thanks for the response.. my knowledge of php is limited.. But as I had some time on Saturday (weather was absymal) I deleted lines 68-81 of ConfigurationWizard.php and that stopped the exception. To repair my work I reinstalled Akeeba backup 8.0.15 and the exception has not recurred..

 

 Old and mostly in the way

nicholas
Akeeba Staff
Manager

Yup, deleting the lines takes you to the fall-through code which resets the output directory to [DEFAULT_OUTPUT] which is pretty much guaranteed to exist (it's part of the extension itself). That's why that worked :)

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!

System Task
system
This ticket has been automatically closed. All tickets which have been inactive for a long time are automatically closed. If you believe that this ticket was closed in error, please contact us.

Support Information

Working hours: Typically we work Monday to Friday, 9am to 7pm Cyprus timezone (EEST). Support is provided by the same developers writing the software, all of which live in Europe. You can still file tickets, but we cannot respond to them, outside of our working hours.

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!

Summer vacations: Our support will be closed for replies and new tickets from August 6th to August 21st, 2022 due to summer vacations.