ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Image upload problems after upgrade from 2.5.3 to 2.6.1

August 20, 2013 10:49am

Subscribe [2]
  • #1 / Aug 20, 2013 10:49am

    tobycatlin

    4 posts

    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

  • #2 / Aug 22, 2013 10:07am

    kelseyads2

    98 posts

    Have you double-checked upload folder permissions?

  • #3 / Aug 22, 2013 10:26am

    tobycatlin

    4 posts

    Sorry I should have been clearer, the file uploads correctly but the hook doesn’t fire. The image is listed in Assets correctly with a thumbnail.

  • #4 / Aug 22, 2013 10:30am

    kelseyads2

    98 posts

    How many plugins / modules do you have installed… and are they all up to date?

    Have you tried installing them on the fresh install one by one to see if / where it breaks?

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases