Webmastersite.net
Register Log In

can't attach image

Comments on can't attach image

babrees
Expert

Usergroup: Customer
Joined: Aug 19, 2005
Location: England

Total Topics: 391
Total Comments: 1303
babrees
Posted Apr 15, 2006 - 12:12 AM:

Yesterday I could attach an image to a link - today I can't!! As far as I know I haven't changed anything.

Here is the error message: Warning: move_uploaded_file(): Unable to move '/tmp/phpQYkJj8' to '/home/barkery/public_html/new/attachments/venison22.wsn' in /home/barkery/public_html/new/filefunctions.php on line 138

For some reason it is now adding 2 to the file name - the image name was venison2.jpg. I tried attaching an image called carrot.jpg and it gave it carrot2.wsn with the same error message.

Here is the debug...

Load time so far: 0.12 seconds.
Performing query: SELECT id FROM wsnlinks_categories WHERE validated=1 AND hide=0 AND isalbum=0 ORDER BY id DESC LIMIT 0,1;


Load time so far: 0.13 seconds.
Performing query: SELECT name,value FROM wsnlinks_switches WHERE id>0 ;


Number of rows is 58 for Resource id #36

Load time so far: 0.14 seconds.
Performing query: SELECT id,type,original,replacement,description,originalclose,replacementclose,sortorder FROM wsnlinks_markup WHERE type='wsncode' ORDER BY sortorder ;


Number of rows is 22 for Resource id #38

Load time so far: 0.14 seconds.
Performing query: SELECT original,replacement,description,id,sortorder FROM wsnlinks_markup WHERE type='smilie' ORDER BY sortorder ;


Number of rows is 14 for Resource id #39

Load time so far: 0.15 seconds.
Performing query: SELECT id,title,caneditown,caneditall,canvote,isadmin,canpost,canemail,validatecats,validatecomments,validatelinks,validateedits,cansubmitlinks,cansubmitcategories,cansubmitcomments,caneditownlinks,caneditowncategories,caneditowncomments,caneditownprofile,caneditalllinks,caneditallcategories,caneditallcomments,caneditallprofiles,candownloadfiles,canupload,canviewip,limitlinks,canemailmembers,canusehtml,limitlinksdaily,canalias,cancopy,candeleteown,candeleteall,candofulledit,candeletecategories,candeletecomments,candeleteowncategories,candeleteowncomments,candeletemembers,candeleteownmembers,canaliascategories,canviewpages,caneditvotes,numaliases,canviewvotes,canhideownlinks,canhideowncategories,canhideowncomments,canhidealllinks,canhideallcategories,canhideallcomments,canratecomments,bytespermem,canpm,canim,canharddelete,limitpms,limitpmsdaily,canviewdeleted,cansubmitpolls,candeletepolls,candeleteownpolls,caneditpolls,caneditownpolls,attachperpost,attachperpm,canviewshouts,caneditshouts,caneditownshouts,candeleteshouts,candeleteownshouts,cansubmitshouts,canpollvote,customtitle,canviewinvisible,namestyle,canpmimportant,canviewmodlog,isleader,cansubmitquotes,validatequotes,candeletequotes,candeleteownquotes,canreport,canusesearch,attachperlink,validateattachments,caneditownquotes,caneditallquotes,canviewchat,caneditownevents,caneditallevents,candeleteownevents,candeleteevents,cansubmitevents,validateevents,bulkpms,issupermod FROM wsnlinks_membergroups WHERE id>0 ;


Load time so far: 0.15 seconds.
Performing query: SELECT id,name,links,comments,time,usergroup,password,ip,totalhits,totalhitsin,email,validated,template,language,lastattempt,allowemail,signature,avatarname,stylesheet,allowuseremail,albumid,failedattempts,totalbytes,funds,notifyoflinks,lastvisit,timezone,rating,pmfolders,notifyofpms,acceptpms,cookieduration,banned,location,homepage,occupation,bio,aim,icq,msn,yahoo,inactive,timeonline,totalpms,buddies,ignored,isonline,acceptims,adminpermissions,referrer,groupreverttime,grouprevertto,moderationpm,secondarygroups,linksperpage,commentsperpage,shouts,customtitle,shoutban,topicbans,forumbans,visibility,birthdate,lastsession,interests,posteditor,forumaccess,pmpopup,pmnotify,modnotes,guestnotes,salt,lastmodnote,newpms,imflag,orderalbums,lastguestnote,autosubscribe,notifymethod,showavatars,showsigs,warninglevel,topics,posts,chatcolor,traderrating FROM wsnlinks_members WHERE id=1 AND validated=1 ;


Load time so far: 0.17 seconds.
Performing query: SELECT id,name,parent,validated,description,time,parentnames,parentids,numlinks,hide,lastlinktime,custom,lastedit,moderators,headerinfo,related,numsub,type,permissions,subscribers,subscriber,mixtypes,isalbum,orderlinks,totalcomments,ulsearchmax,ulsearchquery,ulsearchadult,alias,catcols,linkcols,dmozpath,sponsorlinks,views,customwrap,deleted,reqlinks,reqcoms,reqlinksdelay,priority,levelsdeep,lastposterid,lastpostername,lastcommenttime,lastthreadid,lastthreadtitle,linkshere,unvalidatedlinks,unvalidatedcomments,actaslink,countposts,subcatshtml,imageattach FROM wsnlinks_categories WHERE validated=1 AND deleted=0 AND hide=0 ;


Number of rows is 12 for Resource id #46

Load time so far: 0.18 seconds.
Performing query: LOCK TABLES wsnlinks_email WRITE, wsnlinks_links WRITE, wsnlinks_categories WRITE, wsnlinks_members WRITE;


Load time so far: 0.18 seconds.
Performing query: SELECT id,`to`,subject,message,headers,replacement,mime FROM wsnlinks_email WHERE timesent=0 ORDER BY id ASC LIMIT 0,10;


Number of rows is 0 for Resource id #47

Load time so far: 0.18 seconds.
Performing query: UNLOCK TABLES;


Load time so far: 0.2 seconds.
Performing query: SELECT id,title,url,description,rating,votes,validated,catid,sumofvotes,email,time,hits,numcomments,hide,ownerid,voterips,voterids,lastedit,type,notify,suspect,pendingedit,funds,suspended,alias,expire,ip,inalbum,typeorder,recipurl,hitsin,recipwith,hitsinips,hitsoutips,lastcomment,related,inhidden,viewers,threadviewers,hitsintemp,hitsouttemp,origtype,importance,parentids,timesdead,timesemailed,threadclosed,threadposters,lastposterid,lastpostername,ownername,deleted,deletionreason,movedto,deletedby,timevalidated,filefield,message,sticky,downloads,pollid,posticon,savedby,choice1,price1,choice2,price2,choice3,price3,choice4,price4 FROM wsnlinks_links WHERE id=2 LIMIT 0,1;


Load time so far: 0.21 seconds.
Performing query: SELECT COUNT(id) FROM wsnlinks_attachments WHERE type='link' AND objectid=2 ;


Count is 0

Warning: move_uploaded_file(): Unable to move '/tmp/phpoO3zCM' to '/home/barkery/public_html/new/attachments/venison21.wsn' in /home/barkery/public_html/new/filefunctions.php on line 138

Load time so far: 0.26 seconds.
Performing query: SELECT id,type,objectid,filename,filetitle,filesize,width,height,memberid,time,deleted,field,downloads,validated FROM wsnlinks_attachments WHERE type='link' AND objectid='2' ORDER BY time ASC LIMIT 0,1;


Number of rows is 0 for Resource id #58

Load time so far: 0.26 seconds.
Performing query: SELECT id,type,objectid,filename,filetitle,filesize,width,height,memberid,time,deleted,field,downloads,validated FROM wsnlinks_attachments WHERE type='link' AND objectid='2' ORDER BY time ASC LIMIT 0,1;


Number of rows is 0 for Resource id #59

Load time so far: 0.26 seconds.
Performing query: SELECT catid FROM wsnlinks_links WHERE alias=2 ORDER BY catid ASC ;


Number of rows is 0 for Resource id #60

Load time so far: 0.29 seconds.
Performing query: SELECT value FROM wsnlinks_switches WHERE name='ims' ;



Warning: Cannot modify header information - headers already sent by (output started at /home/barkery/public_html/new/classes/database.php:276) in /home/barkery/public_html/new/end.php on line 143


babrees
Expert

Usergroup: Customer
Joined: Aug 19, 2005
Location: England

Total Topics: 391
Total Comments: 1303
babrees
Posted Apr 15, 2006 - 5:52 AM:

Hmm - having tried this with no success for several hours before posting the message, I just tried again to attach an image and it worked!nod

Dunno if it's my host or what disapproval
Paul
developer

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 61
Total Comments: 7868
Paul
Posted Apr 15, 2006 - 7:12 AM:

Warning: move_uploaded_file(): Unable to move '/tmp/phpQYkJj8' to '/home/barkery/public_html/new/attachments/ven ison22.wsn'

I suppose it could mean that the attachments directory wasn't chmoded or that the file name was illegal -- since you seem to have a space in the file name the latter might be a possibility (though I don't know of any modern operating systems that don't accept spaces), unless that was just the wordwrap at work.
Search thread for
Download thread as
  • 0/5
  • 1
  • 2
  • 3
  • 4
  • 5



This thread is closed, so you cannot post a reply.