Logo
FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups  ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in
new error when trying to post pictures

 
Post new topic   Reply to topic    www.fanart-central.net Forum Index -> General Help
View previous topic :: View next topic  
Author Message
Falconlobo
Forum Stalker


Joined: 18 Apr 2006
Posts: 1560
Location: Home

PostPosted: Thu Aug 02, 2018 10:20 pm    Post subject: new error when trying to post pictures Reply with quote

new error when trying to post pictures

CException
Identify returned non-zero: 1 Mime: image/png; charset=binary
/usr/home/sites/shared/protected/components/Image.php(79)

[ . . . ]

2018-08-02 23:18:51 nginx/1.12.1 Yii Framework/1.1.17
_________________
The Eclectic Collector
random note to anyone i saw a Ups truck being towed by a tow truck lol
if a computer and keyboard had a punctuation semi-colon cleaning would it be a semi-colonoscopy


LOL dancing TMNT's
Back to top
View user's profile Send private message
TeeJay87
Very bored


Joined: 24 Jun 2014
Posts: 122

PostPosted: Thu Aug 02, 2018 10:37 pm    Post subject: Reply with quote

I'm sure it's just a temporary glitch and will be fixed soon.
Back to top
View user's profile Send private message
Falconlobo
Forum Stalker


Joined: 18 Apr 2006
Posts: 1560
Location: Home

PostPosted: Thu Aug 02, 2018 10:55 pm    Post subject: Reply with quote

hope so it has a weird link to what could be a virus on the bottom when the error shows
_________________
The Eclectic Collector
random note to anyone i saw a Ups truck being towed by a tow truck lol
if a computer and keyboard had a punctuation semi-colon cleaning would it be a semi-colonoscopy


LOL dancing TMNT's
Back to top
View user's profile Send private message
TeeJay87
Very bored


Joined: 24 Jun 2014
Posts: 122

PostPosted: Fri Aug 03, 2018 9:39 am    Post subject: Reply with quote

I also tried posting new picture here and got the exact same message like you did.
Back to top
View user's profile Send private message
Stratadrake
Grammar nazi
(and proud of it)


Joined: 05 May 2004
Posts: 13689
Location: Moo

PostPosted: Fri Aug 03, 2018 3:45 pm    Post subject: Reply with quote

What kind of file are you trying to upload? I just test-submitted a random JPG and encountered no problems, so that is not helping....

Falconlobo wrote:
hope so it has a weird link to what could be a virus on the bottom when the error shows

That huge dump at the bottom is known as a 'backtrace' and for the most part shouldn't even be shown to the end user, just logged on the serverside because it is ONLY useful to someone with access to the current codebase.
_________________
Strata here: Nanowrimo - FAC - dA - FA
Disclaimer: Posts may contain URLs. Click at your own risk.
Back to top
View user's profile Send private message
TeeJay87
Very bored


Joined: 24 Jun 2014
Posts: 122

PostPosted: Fri Aug 03, 2018 10:30 pm    Post subject: Reply with quote

Stratadrake wrote:
What kind of file are you trying to upload? I just test-submitted a random JPG and encountered no problems, so that is not helping....


It was 337 KB big .png file, 792x900 resolution. When I tried doing so today, I got the following message:
"CException

Identify returned non-zero: 1 Mime: image/png; charset=binary

/usr/home/sites/shared/protected/components/Image.php(79)

67 break;
68
69 case 'application/zip':
70 case 'application/zip; charset=binary':
71 // For future comic support...
72 break;
73
74 default:
75 $raw_size = exec('/usr/local/bin/identify -format "%m %w %h" '.$this->filename, $garbage, $ret);
76
77 // If Identify returns a non-zero return value it failed so it's not a normal image.
78 if($ret !== 0)
79 throw new CException("Identify returned non-zero: $ret Mime: $mime");
80 //return false;
81
82 if($raw_size == '')
83 throw new CException("Identify returned empty string");
84
85 $this->loadImage($raw_size);
86 }
87 return true;
88 }
89
90 /**
91 * Called by load file if the file is determined to be a normal image that ImageMagick can handel.

Stack Trace
#0

/usr/home/sites/shared/protected/controllers/PicturesController.php(514): Image->loadFile("/var/tmp/upload/phpTzr0HY")

509
510 if(!is_uploaded_file($model->fileupload->tempName))
511 throw new CHttpException(400,'Not an uploaded file!');
512
513 $image = new Image;
514 if(!$image->loadFile($model->fileupload->tempName))
515 throw new CHttpException(400,'Error, unable to process image file.');
516
517 $model->image_type = $image->type;
518 $model->size_width = $image->width;
519 $model->size_height = $image->height;

#1

/usr/home/sites/shared/protected/controllers/PicturesController.php(440): PicturesController->processUpload(Pictures)

435 if($model->validate())
436 {
437 if(!$model->fileupload = CUploadedFile::getInstance($model,'fileupload'))
438 throw new CHttpException(400,'No file Uploaded');
439
440 $image = $this->processUpload($model);
441
442 $model->setApprovalStatus();
443
444 //$model->addTags($model->edit_tags);
445

#2
+
/usr/home/sites/shared/yii-1.1.17.467ff50/framework/web/actions/CInlineAction.php(49): PicturesController->actionCreate()
#3
+
/usr/home/sites/shared/yii-1.1.17.467ff50/framework/web/CController.php(308): CInlineAction->runWithParams(array())
#4
+
/usr/home/sites/shared/yii-1.1.17.467ff50/framework/web/filters/CFilterChain.php(133): CController->runAction(CInlineAction)
#5
+
/usr/home/sites/shared/yii-1.1.17.467ff50/framework/web/filters/CFilter.php(40): CFilterChain->run()
#6
+
/usr/home/sites/shared/yii-1.1.17.467ff50/framework/web/CController.php(1145): CFilter->filter(CFilterChain)
#7
+
/usr/home/sites/shared/yii-1.1.17.467ff50/framework/web/filters/CInlineFilter.php(58): CController->filterAccessControl(CFilterChain)
#8
+
/usr/home/sites/shared/yii-1.1.17.467ff50/framework/web/filters/CFilterChain.php(130): CInlineFilter->filter(CFilterChain)
#9
+
/usr/home/sites/shared/yii-1.1.17.467ff50/framework/web/CController.php(291): CFilterChain->run()
#10
+
/usr/home/sites/shared/yii-1.1.17.467ff50/framework/web/CController.php(265): CController->runActionWithFilters(CInlineAction, array("accessControl", array(0 => "CHttpCacheFilter + category", "cacheControl" => "max-age=3600, private", "etagSeedExpression" => "Yii::app()->db->createCommand("SELECT sum(extract(epoch from dat..."), array(0 => "CHttpCacheFilter + recent", "cacheControl" => "max-age=3600, private", "etagSeedExpression" => "($_GET["date"] ? ( Yii::app()->db->createComman..."), array(0 => "CHttpCacheFilter + featured", "cacheControl" => "max-age=3600, private", "etagSeedExpression" => "Yii::app()->db->createCommand("SELECT sum(extract(epoch from dat...")))
#11
+
/usr/home/sites/shared/yii-1.1.17.467ff50/framework/web/CWebApplication.php(282): CController->run("create")
#12
+
/usr/home/sites/shared/yii-1.1.17.467ff50/framework/web/CWebApplication.php(141): CWebApplication->runController("pictures/create")
#13
+
/usr/home/sites/shared/yii-1.1.17.467ff50/framework/base/CApplication.php(185): CWebApplication->processRequest()
#14

/usr/home/sites/www.fanart-central.net/www/index.php(21): CApplication->run()

16 // specify how many levels of call stack should be shown in each log message
17 defined('YII_TRACE_LEVEL') or define('YII_TRACE_LEVEL',3);
18
19 require(dirname(__FILE__).'/../protected/shortcuts.php');
20 require_once($yii);
21 Yii::createWebApplication($config)->run();
2018-08-03 23:29:18 nginx/1.12.1 Yii Framework/1.1.17 "



Stratadrake wrote:
That huge dump at the bottom is known as a 'backtrace' and for the most part shouldn't even be shown to the end user, just logged on the serverside because it is ONLY useful to someone with access to the current codebase.



Since regular users like me or Falconlobo shouldn't be showed those messages, I believe it was a server glitch.
Back to top
View user's profile Send private message
TeeJay87
Very bored


Joined: 24 Jun 2014
Posts: 122

PostPosted: Fri Aug 03, 2018 10:33 pm    Post subject: Reply with quote

But indeed, the server accepted .jpg version http://www.fanart-central.net/pictures/user/TeeJay87/856812/Victorian-Dress-Delilah-WIP
Back to top
View user's profile Send private message
Falconlobo
Forum Stalker


Joined: 18 Apr 2006
Posts: 1560
Location: Home

PostPosted: Sat Aug 04, 2018 4:22 pm    Post subject: Reply with quote

png
_________________
The Eclectic Collector
random note to anyone i saw a Ups truck being towed by a tow truck lol
if a computer and keyboard had a punctuation semi-colon cleaning would it be a semi-colonoscopy


LOL dancing TMNT's
Back to top
View user's profile Send private message
Stratadrake
Grammar nazi
(and proud of it)


Joined: 05 May 2004
Posts: 13689
Location: Moo

PostPosted: Sat Aug 04, 2018 5:19 pm    Post subject: Reply with quote

I'm currently trying to notify the webmaster. In the meantime, the error does appear localized to PNG submissions only, so if you can submit a JPG version instead that will help work around it.
_________________
Strata here: Nanowrimo - FAC - dA - FA
Disclaimer: Posts may contain URLs. Click at your own risk.
Back to top
View user's profile Send private message
Falconlobo
Forum Stalker


Joined: 18 Apr 2006
Posts: 1560
Location: Home

PostPosted: Sat Aug 04, 2018 5:27 pm    Post subject: Reply with quote

I guess
_________________
The Eclectic Collector
random note to anyone i saw a Ups truck being towed by a tow truck lol
if a computer and keyboard had a punctuation semi-colon cleaning would it be a semi-colonoscopy


LOL dancing TMNT's
Back to top
View user's profile Send private message
TeeJay87
Very bored


Joined: 24 Jun 2014
Posts: 122

PostPosted: Mon Aug 06, 2018 10:16 pm    Post subject: Reply with quote

Seems the issue is fixed now - posted a png file http://www.fanart-central.net/pictures/user/TeeJay87/856836/Victorian-Fashion-Delilah-and-Kitty and it got accepted.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    www.fanart-central.net Forum Index -> General Help All times are GMT - 8 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum