Warning: base64_decode() expects exactly 1 parameter, 2 given [solved]

Last post 12-08-2009, 12:57 PM by oRober. 3 replies.
Sort Posts: Previous Next
  •  12-06-2009, 5:52 PM 57626

    Warning: base64_decode() expects exactly 1 parameter, 2 given [solved]

    Hi:
     
    This is the error:
    1. FLM <br />  
    2. <b>Warning</b>:  base64_decode() expects exactly 1 parameter, 2 given in <b>/cuteeditor/Dialogs/phpuploader/include_phpuploader.php</b> on line <b>643</b><br />  
    3. OK 
    The "error" occurs on "_HandleXhttpUpload()" function.
     
    In my previous thread (Customize image upload script)  I ask for the php I need to modify for work with the images. Ok, I edit that file (dialogs/upload_handler.php) and work's perfectly in my localhost, but I update this file in server and, when I try to upload an image, this error pops (js alert). I got the error just after select an image and shows the progress bar.
     
    It seems that  that my upload_handler.php never executed in my tests.
     
    Here are some info:
     
    Web browser: FireFox 3.5.5 (linux)
    Local php version: 5.2.9 (linux)
    Server php version: 5.1.6 (linux)
     
    Tell me if need some more info, please.
     
     Thanks for your time and sorry for my English.
  •  12-08-2009, 9:01 AM 57662 in reply to 57626

    Re: Warning: base64_decode() expects exactly 1 parameter, 2 given

    Hi:
     
    I will not be heavy, but does anyone have any idea what might be the problem?. I upload again the editor (without changes), but the problem persists. Do you need a policy with a particular value (or something else) in phpini to work?.
     
    Thanks for your time.
  •  12-08-2009, 10:01 AM 57664 in reply to 57626

    Re: Warning: base64_decode() expects exactly 1 parameter, 2 given

    Hi,
     
    That should be a PHP version issue.
     
    Before we fix the error , you can modify it by your self.
     
    Open CuteEditor_Files/Dialogs/phpuploader/include_phpuploader.php
     
    find this line
     
    $data=base64_decode($filedata,false);
     
    And change it to
     
    $data=base64_decode($filedata);
     
    Regards,
    Terry
     
  •  12-08-2009, 12:57 PM 57668 in reply to 57664

    Re: Warning: base64_decode() expects exactly 1 parameter, 2 given

    Hi Terry:
     
    Thanks for your help, works perfect on both php versions.
     
    Regards.
View as RSS news feed in XML