WebmasterSite.net: PHP scripts to enable your creativity
WSN Links PHP Directory Software
PHP Scripts Webmaster Links Support Forums


Cant upload images - error

Version: 1.11
printPrint


Cant upload images - error
jeremy71
Member

Usergroup: Member
Joined: Jan 19, 2006
Total Topics: 4
Total Posts: 12
Posted 01/29/06 - 03:03 PM:
quote post
#1
Hi - You know Ive actually asked this question before ( run into the same error message) but as my host just changed servers its come up again.

When I try to upload I get this message:

The file you were trying to upload did not work. Check that the extension of the file is allowed (allowed types are jpg,jpeg,png,gif,bmp) and that the file is not too large (maximum size is 2000000 bytes, 4000x4000).

Ive checked everything I can.... the pic is 36k, 450px x300px (within set limits), membergroup permissions set to upload and byte allowance 15000000, my path for attachments is : /usr/home/dpalbums/domains/dpalbums.lv/public_html/lat/attac hments/
(any problem with the . in the path?)
attachments folder is 777....

anything else you can think of that might make this error?

I know its an early version but things are/were working fine and there was no real reason to update.

thanks

Jeremy
Paul
Administrator
Avatar

Usergroup: Administrator
Joined: Dec 21, 2001
Location: Northern California
Total Topics: 55
Total Posts: 5796
Posted 01/31/06 - 01:21 PM:
quote post
#2
I don't see what else could cause the message.

_____________________
"Do things you love doing, because then it ain't work. Don't do something you don't really enjoy, because you're never going to work hard enough at it." - Bob Young, founcer of Red Hat
jeremy71
Member

Usergroup: Member
Joined: Jan 19, 2006
Total Topics: 4
Total Posts: 12
Posted 01/31/06 - 02:14 PM:
quote post
#3
Would there be anything (setting) with the new server that I can ask my host about??
Paul
Administrator
Avatar

Usergroup: Administrator
Joined: Dec 21, 2001
Location: Northern California
Total Topics: 55
Total Posts: 5796
Posted 02/03/06 - 07:24 AM:
quote post
#4
Other than the file path, I don't know of any that'd be involved. (It'd be easier to debug/duplicate on the current version of course.)

What was the issue last time it came up?

_____________________
"Do things you love doing, because then it ain't work. Don't do something you don't really enjoy, because you're never going to work hard enough at it." - Bob Young, founcer of Red Hat
jeremy71
Member

Usergroup: Member
Joined: Jan 19, 2006
Total Topics: 4
Total Posts: 12
Posted 02/03/06 - 01:06 PM:
quote post
#5
Cant remember about last time but Im reasonably sure it was my stuff up.

I think I might just have to try a re install so will keep you posted how its going - thanks for the help
jeremy71
Member

Usergroup: Member
Joined: Jan 19, 2006
Total Topics: 4
Total Posts: 12
Posted 02/15/06 - 02:51 PM:
quote post
#6
Hi again,

Ive had the time of my life trying to upgrade to a version that would let me upload images againsmiling face

To cut a long story short I am now on a new server using version 2.16 ( Dont ask why, mostly to do with the fact I have a heap of extremely modified templates in Latvian language...very hard to change and keep correct characters - the .tpl files dont contain any encoding info so dreamweaver doesnt know how to render it correctly and I lose all my characters, I know there are ways around it but I didnt want to alter the templates too much again so didnt use the latest version)

ANYWAY.....

Now I have upgraded the database, struggled to get it back up and running and now none of the images will show....

Attachments folder path is correct in the settings - attachments folder Ive tried at both 777 and 775. ( Do the actual attachments need to have a certain permission? Currently at 644 and Ive tried at 664). File names correspond correctly with whats in the database, Ive regenerated everything.

Any ideas??? will a debug show anything??

Ive installed this version clean and uploaded/tried with test images so I know its not the server.

Any ideas would be helpful cause Im close to throwing in the towel smiling face
Paul
Administrator
Avatar

Usergroup: Administrator
Joined: Dec 21, 2001
Location: Northern California
Total Topics: 55
Total Posts: 5796
Posted 02/16/06 - 04:32 AM:
quote post
#7
will a debug show anything??

A debug of a broken thumbnail or image location would be informative.

_____________________
"Do things you love doing, because then it ain't work. Don't do something you don't really enjoy, because you're never going to work hard enough at it." - Bob Young, founcer of Red Hat
jeremy71
Member

Usergroup: Member
Joined: Jan 19, 2006
Total Topics: 4
Total Posts: 12
Posted 02/16/06 - 06:33 AM:
quote post
#8
Heres a debug of a category listing - 10 entries that dont show thumbnails.

Performing query: SELECT id FROM wsngallery_categories WHERE validated=1 AND hide=0 ORDER BY id DESC LIMIT 0,1;

Performing query: SELECT name,value FROM wsngallery_switches WHERE id>0 ;

Number of rows is 29 for Resource id #30

Performing query: SELECT id,type,original,replacement,description,originalclose,repla cementclose,sortorder FROM wsngallery_markup WHERE type='wsncode' ORDER BY sortorder ;

Number of rows is 4 for Resource id #33

Performing query: SELECT original,replacement,description,id,sortorder FROM wsngallery_markup WHERE type='smilie' ORDER BY sortorder ;

Number of rows is 13 for Resource id #34

Performing query: SELECT COUNT(*) FROM wsngallery_categories WHERE validated=1 AND hide=0 AND isalbum=0 ;

Performing query: UPDATE wsngallery_settings SET content='131' WHERE name='totalsubcats';

Performing query: SELECT id,title,caneditown,caneditall,canvote,isadmin,canpost,canem ail,validatecats,validatecomments,validatelinks,validateedit s,cansubmitlinks,cansubmitcategories,cansubmitcomments,caned itownlinks,caneditowncategories,caneditowncomments,caneditow nprofile,caneditalllinks,caneditallcategories,caneditallcomm ents,caneditallprofiles,candownloadfiles,canupload,canviewip ,limitlinks,canemailmembers,canusehtml,limitlinksdaily,canal ias,cancopy,candeleteown,candeleteall,bytespermem,canviewpag es,candofulledit,candeletecategories,candeletecomments,cande leteowncategories,candeleteowncomments,candeletemembers,cand eleteownmembers,canaliascategories,caneditvotes,numaliases,c anviewvotes,canhideownlinks,canhideowncategories,canhideownc omments,canhidealllinks,canhideallcategories,canhideallcomme nts,canratecomments FROM wsngallery_membergroups WHERE id>0 ;

Performing query: SELECT id,name,comments,time,usergroup,password,ip,totalhits,email, validated,template,language,totalbytes,images,lastattempt,av atarname,allowemail,albumid,signature,failedattempts,allowus eremail,stylesheet,funds,totalhitsin,notifyoflinks,lastvisit ,address,phone,timezone,links,rating,pmfolders,notifyofpms,a cceptpms,cookieduration,banned,biography FROM wsngallery_members WHERE id=68 AND validated=1 ;

Performing query: SELECT id,name,parent,validated,description,time,parentnames,parent ids,numlinks,hide,lastlinktime,custom,lastedit,moderators,he aderinfo,related,numsub,isalbum,type,permissions,subscribers ,subscriber,mixtypes,orderlinks,totalcomments,filetitle,file name,ulsearchmax,ulsearchquery,ulsearchadult,alias,catcols,l inkcols,dmozpath,sponsorlinks,views,customwrap FROM wsngallery_categories WHERE validated=1 AND hide=0 ;

Number of rows is 131 for Resource id #40

Performing query: LOCK TABLES wsngallery_email WRITE, wsngallery_links WRITE, wsngallery_categories WRITE, wsngallery_members WRITE;

Performing query: SELECT id,`to`,subject,message,headers,replacement,mime FROM wsngallery_email WHERE timesent=0 ORDER BY id ASC LIMIT 0,10;

Number of rows is 0 for Resource id #41

Performing query: UNLOCK TABLES;

Performing query: UPDATE wsngallery_categories SET views='4' WHERE id=146;

Performing query: SELECT id,name,parent,validated,description,time,parentnames,parent ids,numlinks,hide,lastlinktime,custom,lastedit,moderators,he aderinfo,related,numsub,isalbum,type,permissions,subscribers ,subscriber,mixtypes,orderlinks,totalcomments,filetitle,file name,ulsearchmax,ulsearchquery,ulsearchadult,alias,catcols,l inkcols,dmozpath,sponsorlinks,views,customwrap FROM wsngallery_categories WHERE alias=146 ;

Number of rows is 0 for Resource id #43

Performing query: SELECT id,name,parent,validated,description,time,parentnames,parent ids,numlinks,hide,lastlinktime,custom,lastedit,moderators,he aderinfo,related,numsub,isalbum,type,permissions,subscribers ,subscriber,mixtypes,orderlinks,totalcomments,filetitle,file name,ulsearchmax,ulsearchquery,ulsearchadult,alias,catcols,l inkcols,dmozpath,sponsorlinks,views,customwrap FROM wsngallery_categories WHERE parent=146 AND validated=1 AND hide=0 AND isalbum=0 ORDER BY id DESC LIMIT 0,75;

Number of rows is 0 for Resource id #45

Performing query: SELECT id FROM wsngallery_links WHERE catid=146 AND hide=0 AND validated=1 ;

Number of rows is 11 for Resource id #46

Performing query: SELECT id FROM wsngallery_links WHERE catid=146 AND validated=1 AND hide=0 AND type='regular' ;

Number of rows is 11 for Resource id #47

Performing query: SELECT id,title,description,rating,votes,validated,catid,sumofvotes ,email,time,hits,numcomments,hide,ownerid,voterips,voterids, lastedit,type,filename,filetitle,notify,downloads,pendingedi t,filesize,xwidth,yheight,imedit,suspect,funds,suspended,ali as,expire,ip,inalbum,typeorder,hitsin,hitsinips,hitsoutips,l astcomment,related,inhidden,viewers,threadviewers,hitsouttem p,donorname,donoraddress,campzone,photodescription,dpbio,pho tostory,phototheme,photopeoplename,photorelated,copyrightcon tact,othernotes,editday,editmonth,edityear,editauthor,copyri ghtauthor,photoday,photomonth,photoyear,donorphone,donoremai l,copyrightlimit,photoapprox,unknowncity,hitsintemp,origtype ,importance,parentids,timesemailed,threadclosed,threadposter s,clarityrating FROM wsngallery_links WHERE catid=146 AND hide=0 AND validated=1 ORDER BY id DESC,time DESC LIMIT 0,15;

Performing query: UPDATE wsngallery_sessions SET starttime='0' WHERE time < 15;

Performing query: UPDATE wsngallery_sessions SET time='0' WHERE time < 15;

Performing query: SELECT starttime FROM wsngallery_sessions WHERE memberid=68 ;

Number of rows is 1 for Resource id #50

Performing query: UPDATE wsngallery_sessions SET time='1140100318', location='http://www.dpalbums.lv/lat/index.php?action=displaycat&catid=146', catid='146', threadid='', areaname='' WHERE memberid=68;
jeremy71
Member

Usergroup: Member
Joined: Jan 19, 2006
Total Topics: 4
Total Posts: 12
Posted 02/21/06 - 02:27 AM:
quote post
#9
Hi - Any ideas gleaned from this debug??
phrightener
Member

Usergroup: Member
Joined: Oct 13, 2005
Total Topics: 8
Total Posts: 14
Posted 02/24/06 - 06:44 AM:
quote post
#10
Argh, I go to my website today and all the images are "X"ed out and I can't upload anything because I get the same error as above.

I have never had this issue before. Very strange and I'm rather nervous as to what caused this.
jeremy71
Member

Usergroup: Member
Joined: Jan 19, 2006
Total Topics: 4
Total Posts: 12
Posted 02/27/06 - 01:28 PM:
quote post
#11
After much hairpulling I have finally got things working - turned out for some reason 2.11 was a version which both the new server and the old 1.x version database liked so all is well.....BUT as I said in another post, older versions can be helpful so if they are not listed on the donwloads section for whatever reason perhaps you should re-consider
Paul
Administrator
Avatar

Usergroup: Administrator
Joined: Dec 21, 2001
Location: Northern California
Total Topics: 55
Total Posts: 5796
Posted 03/01/06 - 06:11 PM:
quote post
#12
That's not a debug of a thumbnail, an actual thumbnail was what was needed (right click, 'show image' in most browsers, then tack debug=1 onto the url).

Old versions are incompatible with PHP 5.0.5+ and have a serious vulnerability which allows hackers to upload and run PHP scripts on your server, as explained in the security update email, plus they have all sorts of other bugs, so anyhow they will not be made available.

_____________________
"Do things you love doing, because then it ain't work. Don't do something you don't really enjoy, because you're never going to work hard enough at it." - Bob Young, founcer of Red Hat
Search thread for
Download thread as


You don't have permission to post.

Please login or register.

   
 
© 2008 Paul Knierim. All rights reserved.