Hello everybody,
After running what appeared to be a successful upgrade from 2.5.3 to 2.6.1, one of my users informed me that the image upload functionality had broken.
It seems that the modal dialog is launched 3 times, with the first two dialogs just being the header of the dialog window and the the third dialog shows the body and footer with the “Upload File” button greyed out. There are no Javascript errors in the console.
So this obviously prevents file uploads and so I unpacked a fresh copy of 2.6.1 and did a file diff between the fresh copy and the upgraded version. I found no differences and spent a long time trying to debug minified javascript code.
To placate angry users, I bought and installed Assets from Pixel and tonic. It works a treat apart from one thing, the file_after_save hook does not fire. I checked the db and the correct row is in the exp_extensions table. We use source control to deploy new code & files to live and I used the file_after_save hook to submit new images. I took a fresh copy of EE 2.6.1 with a clean db and installed all of our plugins and the hook fired correctly.
I have hit a wall with investigating both problems, and the most urgent one is to fix the file_after_save hook. If anyone has seen anything like this before or can suggest a suitable method of debugging why a hook doesn’t fire I would be massively grateful.
thanks
Toby