Pictures won´t upload - errors out big time!
By theshiva•
3,944 views10 replies
pk
Member
OP
Are the proper permissions for the upload area set?
theshiva
Member
Yes - even changed them to 777 776 666 with no better results - some worse. <br /> <br />I read several articles in here re the same problem and responses by antonio were about a revised, typo-corrected pictures.php file but the only ´edited´ one i could find, and it is different than the one with the ZIP is pictures.txt (renamed to php) which doesn´t work either. <br />The rest of the script seems to work - though I haven´t yet added the magazine - no sense spending time on that if manager doesn´t work. <br /> <br />Antonio seems to have a fixed version of pictures.php gid typeo changed to id and so on, but he emails to individuals and hasn´t repliued, yet, to my PM. <br /> <br />DOCs with these would be nice too. Any ideas you have will be worked on. <br /> <br />Please and thank you <br /> <br />Jim <br />
peter_vazed
Member
NEWSPIX <br />line 134 gid has to be id <br />idem line 137 <br /> <br />line 412 <br />mysql_query("UPDATE ".$GLOBALS[´db_news_pics´]." SET picture=´".$HTTP_POST_FILES[´filename´][´name´]./* "´,thumbnail=´".$HTTP_POST_FILES[´filename´][´name´]. */ "´ WHERE id=´".$_POST[´id´]."´") or die("<b>LINE 262:</b>".mysql_error()); <br /> <br /> <br />what is between the comments can be deleted <br />then you have this code: <br />mysql_query("UPDATE ".$GLOBALS[´db_news_pics´]." SET picture=´".$HTTP_POST_FILES[´filename´][´name´]."´ WHERE id=´".$_POST[´id´]."´") or die("<b>LINE 262:</b>".mysql_error()); <br /> <br /> <br /> :fighter
theshiva
Member
Thanks Peter, <br /> <br />Should I change line 412 to what you have after you say "then you have this code:"? or do I add that line. Where the smilkey shows up, that is a semi-colon and ) ? <br /> <br />Thanks <br /> <br /> <br /> <br />
peter_vazed
Member
<b>TheShiva</b> <br /> <br />yes <br /> and no, <br />code with a space so there is no smily <br /> <br />}mysql_query("UPDATE ".$GLOBALS[´db_news_pics´]." SET picture=´".$HTTP_POST_FILES[´filename´][´name´]. "´ WHERE id=´".$_POST[´id´]."´" ) or die("<b>LINE 262:</b>".mysql_error()); <br /> <br /> <br /> :smile:
Edited
theshiva
Member
Just checking to see what those smilies are in an post. <br /> <br />;) <br /> <br /> <br />:jafo <br />
theshiva
Member
:) is a colon brackert <br />;) is a semi-colon bracket <br /> <br /> <br />
theshiva
Member
e(
theshiva
Member
Peter - many thanks. Will rty this now. <br /> <br />
peter_vazed
Member
<b>TheShiva</b> <br /> <br /> Go here: <br />http://members.lycos.nl/vazed/webmagazine/ <br /> <br />I have done the tessite (third time) <br />Took me now a hole day to fix a few small adjustments. <br />You can download there the fixed files. <br />2 zipfiles. <br /> <br />There are more errors in the latest newman version, and it is hard to find where they are. <br />It took me 8 weeks to find out and make the changes. <br /> <br />Thanks to the input of the members of this forum in the Q and A <br />Special thanks to Polaris. <br /> <br /> <br /> :fighter