Jump to content

bgdonline

New Members
  • Posts

    5
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

bgdonline's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. I thought i replyed, net is bugging back here, here is output Warning: copy() expects parameter 1 to be string, array given in /home/bgdonlin/public_html/bgdhost/test/wp-content/plugins/whmcs-bridge/includes/http.class.php on line 147 Array ( [attachments] => Array ( [name] => Array ( [0] => 1zzsubl.png ) [type] => Array ( [0] => image/png ) [tmp_name] => Array ( [0] => /tmp/phpCHSxpr ) [error] => Array ( [0] => 0 ) [size] => Array ( [0] => 5749 ) ) ) Edit when sending support ticket without image attachment i don't have error's but when upload img i get error
  2. Im definitely idiot.... Still no luck. Aditional info, this error is when sending support tickets on some bridge, with or without ticket attachment there is error **edit** Yeah if i delte that block i get no error :/ that is something, but can anyone help with fix for that block for file upload because obviously i can't make it work ((
  3. Still what ever i try result with much more errors
  4. So i need to change line 134 to something like echo $_FILES['newfile']['tmp_name']; That part is for sending support ticket's if you whan't to see file it's in attachment [attachment deleted by admin]
  5. Hello, im new to php and I would appreciate help with this one.... Error code is Warning: copy() expects parameter 1 to be string, array given in /path/to/file/http.class.php on line 143 Error block if (count($_FILES) > 0) { foreach ($_FILES as $name => $file) { if ($file['tmp_name']) { $newfile=dirname(__FILE__).'/../cache/'.$file['name']; $newfiles[]=$newfile; copy ($file['tmp_name'],$newfile); if ($file['tmp_name']) $this->post[$name]='@'.$newfile; } } } Line 143 copy ($file['tmp_name'],$newfile);
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.