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.

Upgraded to 2.8.0 - File Upload stopped working

March 06, 2014 5:07pm

Subscribe [5]
  • #1 / Mar 06, 2014 5:07pm

    blackbookauto

    1 posts

    Just updated to 2.8.0 and am currently getting a “function a.replace is not a valid function” javascript error when clicking ANY “Upload file” button throughout the CP.

    What I tried:
    - checked folder permissions server-side
    - updated all plugins
    - made sure upload folder paths were correct

    Any other ideas?

  • #2 / Mar 07, 2014 3:36pm

    Adam Khan

    319 posts

    I’m having a similar problem. Still looking into it. For me, the upload buttons appear at the bottom of every publish/edit screen, and the second part of Field Settings in Edit Field fails to appear, so fields can’t be edited.

    Here’s what fixed it for me (I’d have thought a patch for a bit of a showstopper like this would be displayed prominently at http://ellislab.com/expressionengine):

    https://support.ellislab.com/bugs/detail/20165

  • #3 / Mar 08, 2014 4:01pm

    moki

    26 posts

    I’m having the same problem, in that the “Upload File” button simply does not work in EE 2.8.0 for me.  I don’t see any JavaScript errors, it just reloads the page, with no ability to upload a file.

    When I click on “Upload File” these are the httpd requests that are generated:

    198.143.38.33 - - [08/Mar/2014:14:53:25 -0600] "GET /ee/admin.php?/cp/content_files?S=eeb20e24c56340924ed5c1f1115d33f0 HTTP/1.1" 200 168164 "http://www.onlinelandusa.com/ee/admin.php?/cp/content_files?S=eeb20e24c56340924ed5c1f1115d33f0" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_2) AppleWebKit/537.74.9 (KHTML, like Gecko) Version/7.0.2 Safari/537.74.9"
    198.143.38.33 - - [08/Mar/2014:14:53:26 -0600] "GET /ee/admin.php?S=eeb20e24c56340924ed5c1f1115d33f0&D=cp&C=javascript&M=combo_load&ui=core,widget,mouse,position,sortable,dialog&plugin=ee_interact.event,ee_broadcast.event,ee_notice,ee_txtarea,tablesorter,ee_toggle_all,ee_navigation&file=json2,underscore,cp/global_start&v=1393612868 HTTP/1.1" 200 101191 "http://www.onlinelandusa.com/ee/admin.php?/cp/content_files?S=eeb20e24c56340924ed5c1f1115d33f0" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_2) AppleWebKit/537.74.9 (KHTML, like Gecko) Version/7.0.2 Safari/537.74.9"
    198.143.38.33 - - [08/Mar/2014:14:53:26 -0600] "GET /ee/admin.php?S=eeb20e24c56340924ed5c1f1115d33f0&D=cp&C=css&M=third_party&package=cp_analytics&theme=default&file=default HTTP/1.1" 200 2788 "http://www.onlinelandusa.com/ee/admin.php?/cp/content_files?S=eeb20e24c56340924ed5c1f1115d33f0" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_2) AppleWebKit/537.74.9 (KHTML, like Gecko) Version/7.0.2 Safari/537.74.9"
    198.143.38.33 - - [08/Mar/2014:14:53:26 -0600] "GET /ee/admin.php?S=eeb20e24c56340924ed5c1f1115d33f0&D=cp&C=javascript&M=combo_load&ui=datepicker&plugin=tmpl,ee_table,overlay,ee_filebrowser,ee_fileuploader&file=cp/files/file_manager_home&v=1393612868 HTTP/1.1" 200 64803 "http://www.onlinelandusa.com/ee/admin.php?/cp/content_files?S=eeb20e24c56340924ed5c1f1115d33f0" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_2) AppleWebKit/537.74.9 (KHTML, like Gecko) Version/7.0.2 Safari/537.74.9"
    198.143.38.33 - - [08/Mar/2014:14:53:27 -0600] "GET /ee/admin.php?S=eeb20e24c56340924ed5c1f1115d33f0&D=cp&C=addons_accessories&M=process_request&accessory=devotee&method=process_load&_=1394312007490 HTTP/1.1" 200 17861 "http://www.onlinelandusa.com/ee/admin.php?/cp/content_files?S=eeb20e24c56340924ed5c1f1115d33f0" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_2) AppleWebKit/537.74.9 (KHTML, like Gecko) Version/7.0.2 Safari/537.74.9"

    Interestingly, the “Upload” button in Assets is also disabled… yet if I manually upload files to the upload destination, both the File Manager and Assets can see and use the files, so I’m assuming the upload destinations are set up properly.

    I verified that:

    —The permissions are 777 on the cache dir as well as the upload destination dirs
    —file_upload is on for php

    Help?

  • #4 / Mar 08, 2014 5:34pm

    moki

    26 posts

    ^ Upload DOES work for file fieldtypes in channel forms.  But it does not work from the File Manager.  I’m so confused.

  • #5 / Mar 08, 2014 8:23pm

    Adam Khan

    319 posts

    moki,

    A weird one, but aren’t they all. Anything different from these httpd requests in those generated by hitting Upload in channel forms where it does work?

  • #6 / Mar 13, 2014 6:31pm

    Ryba21

    6 posts

    Same problem here. Just updated to 2.8.0, and the although I can upload from within an entry, the “Upload File” button in the File Manager does not work.

    Update: copying the new global_start.js, as described earlier in the thread did fix the problem. Great!

    Note: the fix instructions don’t tell where the file goes. It should be copied here:
    /themes/javascript/compressed/cp

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

ExpressionEngine News!

#eecms, #events, #releases