Support

Akeeba Backup for Joomla!

#26936 Edit Comment erases all backup entries

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
n/a
PHP version
n/a
Akeeba Backup version
n/a

Latest post by tabletguy on Tuesday, 31 January 2017 00:46 CST

tabletguy
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 2Mb, please upload it on your server and post a link to it.

Description of my issue:
Pressing ENTER key after editing the top line of description (not the body) caused ALL entries in backup list to disappear.

Details and Steps
I imported several backups after doing a restore (roll back) to a previous version. [I am doing that to test impact of some software and database changes]

After importing several at once (don't know if important, just telling steps) I then selected one and clicked the "Edit Description" button. (I have also directly clicked the description previous times as well).

I changed the description (added "Step 3" to front), and pressed the "Save and Close" button.

All OK

I did the next one the same way (using the Edit Desc button). Added "Step 2" to the front. Then I accidentally pressed ENTER key instead of clicking the "Save" button.

ALL entries in the manage list disappeared. I did an Admin Tools repair. Items came back, but with more than I had put in.

So, I deleted the recently added entries, and then did another Scan and import (6 backup files this time).

Edited description and used save button.
Edited another description and pressed Enter. THIS time I realized I had pressed Enter. All entries disappeared again.

I tried the Admin Tools repair, but this time no items came back.

nicholas
Akeeba Staff
Manager
Have you tried logging out and back in again?

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!

tabletguy
I just retested.

Yes, logging out and back in does restore the list. It did not restore when I simply went back to the main menu and then clicked forward into "Manage", until after I had logged out and back in.

nicholas
Akeeba Staff
Manager
This is a side effect of how Joomla! works.

All the buttons in the toolbar are actually wired by Javascript. They change the "task" variable of the hidden "adminForm" form element and then submit it. Unfortunately, for this to work, the visible elements have to also be part of the form. Worse, when you press ENTER the browser is immediately submitting the hidden form without a valid task. This causes Joomla to use the submitted values as filters, only showing records whose description matches what you typed.

There is no good way to address that programmatically. The simple fix of disabling filtering when the form is accidentally submitted would also disable the filtering and ordering of records in the Manage Backups page. Trying to capture the ENTER key on that page is impossible because there's a visual editor for the backup comments which means that keyboard events are captured by it instead. So all you can do when that happens is log out and back in.

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!

tabletguy
Thanks for the explanation. Too bad there's no way to at least have a message appear or a "magic button" to reload or at least reset (?) the filters when going back to the control panel.

Feel free to close the ticket. I'd do so, but not sure if you might have more to say.

In any case, thanks for your time.

nicholas
Akeeba Staff
Manager
I will add a note to check later this week if we can have a filter reset button. That sounds like an obvious and very promising idea that completely slipped my mind. Thanks!

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!

tabletguy
As mentioned, I spent last two weeks doing many cycles of restore/rebuild/backup etc. I also used the import feature a lot.

It would be a nice feature if the import could get the details from the backup and put back the original comment and title.

(It's a lot of disk space to just get the .html file with that info)

I don't recall, but is the .jpa format actually a zip file format.

And, btw, the download link for Windows 64 bit extract wizard actually points to the Mac version:
https://www.akeebabackup.com/download/akeeba-extract-wizard/akeeba-extract-wizard-3-5/akeeba-extract-wizard-max-os-x-i386-zip.exe



I like how it has the version number in the download file name.

I didn't try and download it to see if it's both Mac and Windows, since I have a slow internet connection here in India (temporary)

nicholas
Akeeba Staff
Manager
It would be a nice feature if the import could get the details from the backup and put back the original comment and title.


First of all, you can import even arbitrary ZIP files. Therefore it's not a guarantee you can find this information in the archive.

Not all backup archives have this information anyway. Only full site backups taken with relatively new versions have it.

This information is in HTML format, making it hard to parse. And that's if you can locate the HTML file.

Locating that file actually requires starting the archive extraction. Even worse, you need to consider where this file is stored: after all the installation engine files. So you'd need to extract a few hundred files before you can even locate that file, IF that file is there. This takes time and it would lead to the process timing out.

And, btw, the download link for Windows 64 bit extract wizard actually points to the Mac version:

https://www.akeebabackup.com/download/akeeba-extract-wizard/akeeba-extract-wizard-3-5/akeeba-extract-wizard-max-os-x-i386-zip.exe


Actually, it doesn't. The file downloaded is https://cdn.akeebabackup.com/downloads/extract/3.5/SetupAkeebaExtractWizard-x86_64.exe which is the correct file. It's the alias of the item that's wrong but you can ignore it. I did spot it several weeks ago but I couldn't do anything about it without releasing a new version. A new version is underway but other things have claimed priority. Sorry!

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!

nicholas
Akeeba Staff
Manager
Upon further investigation, you do not need a button to reset the filters. When you press ENTER in the backup description editor page you set the description filter in the manage backups page. However, this filter is displayed at the top right of the main content, right above the list of backups. Next to it there are two buttons, a magnifying glass and a big X. Clicking the big X will reset the filter and show you all of your backups. Therefore no further action is required.

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!

tabletguy
Thanks!

Maybe you should add an "I have a low IQ" setting that makes these buttons much larger! haha <joking>

It wasn't obvious to me that there were any filters, but then I don't normally use filters, so wasn't really looking for it.

Not sure if I should close this or you, but feel free to do so.

nicholas
Akeeba Staff
Manager
Joomla has two kinds of filters, drop-down and text. Drop-down filters were always placed on the left sidebar. Since 3.5 they are hidden under the "Search tools" button. Until we completely drop support for Joomla! 3.4 I can't even plan on moving them.

Text filters are always placed above the list headers. In recent versions of Joomla they have swapped the X button for one that reads "Clear". However, considering how space is at a premium in the Manage Backups page I have decided to stick with the X. The full text button works best in core Joomla views with just one search option. I preferred to make it easier for you to also search backups by date range (admittedly one of my most often used features on that page) than to remove the date filters for a "Clear" button :)

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!

tabletguy
Thanks for your time, and for the conversation. I'll close this ticket. Hopefully the details would help someone else, if necessary.

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!