Support

Site Restoration

#32914 getting modal issue when restoring

Posted in ‘Site restoration’
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

PHP version
n/a
CMS Type
Other
CMS Version
n/a
Backup Tool Version
n/a
Kickstart version
n/a

Latest post by on Sunday, 24 May 2020 17:17 CDT

frankazoid
made a backup with akeeba 7.1.3 pro and restoring with kickstart pro. after entering DB details nothing happens on click 'next'

Uncaught TypeError: $(...).tooltip is not a function
at HTMLDocument.<anonymous> (database.js:16)
at c (jquery.js:3)
at Object.fireWith [as resolveWith] (jquery.js:3)
at Function.ready (jquery.js:3)
at HTMLDocument.H (jquery.js:3)
(anonymous) @ database.js:16
c @ jquery.js:3
fireWith @ jquery.js:3
ready @ jquery.js:3
H @ jquery.js:3
15database.js:97 Uncaught TypeError: $(...).modal is not a function
at databaseRunRestoration (database.js:97)
at HTMLAnchorElement.onclick (VM185 index.php:77)

i'd guess it's server issue but can't find anything related and older version worked well with older backup (with joomla 2.5)

frankazoid
looks like the problem was due to missing ssl certificate

nicholas
Akeeba Staff
Manager
I can see that the line being referenced in the error message has been removed since February 4th, 2016. There's no way that you were restoring a backup taken with Akeeba Backup 7.1.3, a version 4 years newer than the removal of that line. It doesn't even look like an SSL issue. It looks like your server or your browser were caching files from a very, very long time ago OR you first tried to restore a backup taken with a version that's more than 4 years old.

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!

frankazoid
Thank you for reply but I'm surprised with those allegations. I tried with Akeeba backup and then bought Pro version and tried 2 more times backup/restore process until SSL kicked in and it worked. Now you are saying that I took backup from 4 years ago...

nicholas
Akeeba Staff
Manager
I am a software engineer. I don't make allegations. I make observations based on facts and the information you provided. None of the information you provided supports your claim that this was an SSL issue. It only proves that the problem is that your browser somehow ended up executing a file from at least 4 years ago. That's the statement – NOT allegation – I made. The rest of my reply was a quick note on how it could have possibly happened but I think you are missing some context. I apologize for not providing it previously. Please let me explain what I did to come up with my previous reply and provide the missing context.

The error message you volunteered states there's an unknown call to a jQuery method .modal() on line 97 of the file databases.js. The only file with that name in the ANGIE restoration script lives in installation/angie/js/database.js and its line 97 currently reads
databaseThrottle     = Math.max(databaseThrottle, 60000);


Therefore your error message does not reference a current version of that file, as shipped with Akeeba Backup 7.1.3.

I also known for a fact that I removed jQuery modals a long time ago, when I switched ANGIE from Bootstrap 2 and jQuery to Akeeba FEF and plain vanilla JavaScript. I know that as the developer who first wrote this backup software almost 14 years ago and has been maintaining it as an active lead developer ever since :)

At this point it was clear to me that your assertion that this is an SSL issue is at the very least inaccurate.

My next step was trying to determine when was the last time the line referenced in the error message had content which could conceivably trigger that error. I went to our private GitHub repository and started looking at older versions of the file until I found when line 97 contained a call to .modal(). I saw that the line first got removed by yours truly on February 23rd, 2016 at 09:45 EEST. The oldest commit we have with that line in place is from February 4th, 2016 at 17:13 EEST when we moved the ANGIE installer from the Akeeba Backup repository to its own repository. No public release of Akeeba Backup was made between these two dates. Therefore we can safely conclude that the code referenced by your error message is older than February 4th, 2016 at 17:13 EEST.

Claiming that an SSL issue can somehow cause a 4 year old file which does not ship with Akeeba Backup 7.1.3 be delivered to your browser and fixing the SSL issue would conversely make the up-to-date code to be delivered is extremely unlikely but not outright impossible. That's why I said that if this is indeed what is going on it must be some really odd caching issue. It is very unlikely because of the temporal distance between the two file versions: more than 4 years.

I can NOT tell you within any degree of certainty why your browser loaded a version of the file that's 4 years old and why fixing the SSL fixed that problem for you. I can think of possible reasons but I cannot KNOW.

Trying to restore a backup from a long time ago earlier on that domain using the same browser is a plausible reason. Do not that this doesn't necessarily mean that you took a backup of the site 4 years ago. Many template developers ship quick start packages of Joomla and their template as backup archives taken with Akeeba Backup. That was the implied context of restoration of an old backup.

Another possibility is that the broken SSL issue somehow caused your server to respond with file belonging to a different site which happened to have an ANGIE installation script from 4 years ago. That's insanely unlikely but not outright impossible. That's why I talked about an odd caching issue.

Again, I can NOT know exactly WHY you were served an ancient file in your browser. All I can tell you with absolute certainty is that the error message is caused because your browser was trying to execute an old version of the file from at least 4 years ago and that this version of the file is not shipped with Akeeba Backup 7.1.3.

I hope that this clarifies what I wrote and you can see that I am not accusing you of lying. I am only saying that you are very likely misdiagnosing the issue, I can tell you what the real issue is but I cannot possibly tell you why it happens.

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: 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!