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.

2.2 Update - File Browser PHP Error

June 23, 2011 8:42am

Subscribe [3]
  • #1 / Jun 23, 2011 8:42am

    mr_tim

    43 posts

    I’ve just upgraded to 2.2 and am getting the following at the bottom of the popup file upload box:

    A PHP Error was encountered
    Severity: Warning
    Message: sprintf() [function.sprintf]: Too few arguments
    Filename: file/browser.php
    Line Number: 50

    I’m still able to upload a file, edit it etc. Any thoughts?

  • #2 / Jun 23, 2011 6:11pm

    Robin Sowell

    13255 posts

    It looks like a language file wasn’t updated.  Are you using the default ‘english’ language pack?  In /system/expressionengine/language/language_name/filemanager_lang.php around line 87:

    New 2.2 code:
    'pagination_filter_text'    => 'Show files as %s.',
    
    vs old code:
    'pagination_filter_text'    => 'Show %s files from %s as %s.',

    If the old language string is still in there?  It will generate that error.  If it’s not the English pack, it’s likely it just hasn’t been updated yet.  Tweak it manually and you should be fine.

    If it IS the english language pack, it suggests something didn’t get replaced during ftp - which is slightly more worrisome- mostly because we aren’t sure what didn’t get replaced

    Make sense?

  • #3 / Jun 27, 2011 5:23pm

    atle

    29 posts

    Had the same problem, but your suggestion fixed it, Robin. Thanks!

  • #4 / Jun 27, 2011 6:11pm

    Robin Sowell

    13255 posts

    Sounds like this should do the trick!  If you folks run into anything else, just start a new thread and we’ll take a look!

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

ExpressionEngine News!

#eecms, #events, #releases