Support

Akeeba Backup for Joomla!

#27580 Backup failing with Joomla 3.7

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 nicholas on Wednesday, 26 April 2017 16:07 CDT

trogladyte
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.

Nothing in the log file.

Description of my issue: Just began updating all my sites to Joomla 3.7. Fortunately they're all set to backup before update. I have done 4 so far, but have now stopped. Backups on 3.6.5 worked correctly, but, after the Joomla updates I always do a further backup. It stalled on 3 out of the 4 sites on "Initializing Backup Process". The one that it did work correctly is a site just like the others - same types of extensions installed, etc. Nothing distinguishing it from the others particularly.

nicholas
Akeeba Staff
Manager
Akeeba Backup itself works perfectly fine with Joomla! 3.7. I can say that because all of my sites got upgraded to 3.7 last night (your afternoon) and took a backup overnight. I am also doing backups on my dev sites which are also upgraded to 3.7 and they all just finished successfully.

What you describe does sound like a Javascript issue, but not one coming from Akeeba Backup. Other Javascript running on the page and fails prevents our Javascript from running. I'd recommend first trying to clear your browser's cache (here's how. If that doesn't help you should try opening your browser's developer console and see what Javascript is crashing, then contact the developer of that third party plugin. Unfortunately we can only work towards the code we write working great in new Joomla! versions. Everyone else's code is... um... a different story :)

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!

trogladyte
It wasn't the cache.

But I believe I have narrowed it down to Chrome, which is the browser I use 99% of the time for everyday work. All the stuff below is from the Chrome Dev console and relates to one site I was using for testing which would not backup in Chrome. After it failing, and i went through the process described below, I loaded the site in Safari and ran Akeeba. Perfect. Then in IE 11, and ran Akeeba. Perfect. Just to be certain, I then did the same in FF 52. Again, perfect. In between backups on the non-Chrome browsers, I attempted a backup in Chrome. Failed each time. (In other words, I went Chrome, Safari, Chrome, IE, Chrome, FF, Chrome)

I repeated the above on another site which refused to backup in Chrome. A Gain, it backed up fine in the other browsers. However, I then did a 3rd site and it immediately backed up fine in Chrome. So I really don't know. At least I know I can get backups done using a different browser. Perhaps it's time to drop Chrome. I have noticed that, in the last 2-3 weeks, it's cache has become EXTREMELY sticky. Previously, F5 was generally enough, sometimes having to use Ctrl-F5. Now, I'd guess 1/2 the time I have to go and physically clear the cache to display changes.

-----------------------------------------------------

On one of the offending sites, with the console open, just navigating to the Akeeba Backup (without starting anything) page shows this error:

JQMIGRATE: Migrate is installed, version 1.4.1
DevTools failed to parse SourceMap: http://www.ckdev.info/mebizwiz/media/com_akeeba/js/UserInterfaceCommon.min.map
DevTools failed to parse SourceMap: http://www.ckdev.info/mebizwiz/media/com_akeeba/js/Modal.min.map
DevTools failed to parse SourceMap: http://www.ckdev.info/mebizwiz/media/com_akeeba/js/System.min.map
DevTools failed to parse SourceMap: http://www.ckdev.info/mebizwiz/media/com_akeeba/js/Tooltip.min.map
DevTools failed to parse SourceMap: http://www.ckdev.info/mebizwiz/media/com_akeeba/js/piecon.min.map
DevTools failed to parse SourceMap: http://www.ckdev.info/mebizwiz/media/com_akeeba/js/ControlPanel.min.map
DevTools failed to parse SourceMap: http://www.ckdev.info/mebizwiz/media/com_akeeba/js/Ajax.min.map

I started a backup on one site that wasn't working and got this from the console:

Starting backup Backup.min.js:7
Uncaught TypeError: Cannot read property 'replace' of undefined at Backup.min.js:7 Backup.min.js:7
Uncaught TypeError: Cannot read property 'replace' of undefined at Backup.min.js:7 Backup.min.js:14
Running backup step Backup.min.js:14
Object Backup.min.js:16
Starting tick timer with waitTime = 0 msec Backup.min.js:6
Timer tick Backup.min.js:8
Uncaught TypeError: Cannot read property 'replace' of undefined
at Object.akeeba.Backup.resetTimeoutBar (Backup.min.js:8)
at Object.akeeba.Backup.timerTick (Backup.min.js:6)
at <anonymous>:1:15

It stalled. Reinstalled AKeeba - no change. Exited Joomla and cleared cache - no change.

Interestingly, the sites which would not backup yesterday are now doing so ON CHROME.

nicholas
Akeeba Staff
Manager
The more you describe the issue the more it sounds like a Chrome cache issue. Have you tried clearing Chrome's cache? Not Joomla's cache, it's irrelevant to this issue.

What happens is that Akeeba Backup needs to display localised text through Javascript. It does so by using the JText::script API from PHP. This does some Joomla! core code magic which inserts a bunch of Javascript on the page. That Javascript depends on the core Javascript included in Joomla! itself. This Javascript changes from one version of Joomla! to the other. For whatever reason Google Chrome's cache is stuck and delivers the WRONG version of that core Javascript file (from Joomla! 3.6) which does NOT work under Joomla! 3.7. Hence the suggestion to completely flush your GOOGLE CHROME cache.

Rule of thumb: STEP 1 update all your sites to the new Joomla version. STEP 2 clear the cache in all foo your browsers, in all of your devices.

This kind of issues happen without fail every single time there's a new Joomla! version released. The standard reply is "clear your browser cache and see if this keeps happening". And since this is a well known browser issue which isn't related to Akeeba Backup I'll have to close this ticket. Clear your browser cache and it'll go away.

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!