| View previous topic :: View next topic | 
	
	
		| Author | Message | 
	
		| Falconlobo Forum Stalker
 
  
 Joined: 18 Apr 2006
 Posts: 1570
 Location: Home
 
 | 
			
				|  Posted: Thu Aug 02, 2018 10:20 pm    Post subject: new error when trying to post pictures |   |  
				| 
 |  
				| 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
 
 [img]http://i274.photobucket.com/albums/jj257/esmtie14/2hpoaao.gif[/img]
 LOL dancing  TMNT's
 |  | 
	
		| Back to top |  | 
	
		|  | 
	
		| TeeJay87 Very bored
 
  
 Joined: 24 Jun 2014
 Posts: 193
 
 
 | 
			
				|  Posted: Thu Aug 02, 2018 10:37 pm    Post subject: |   |  
				| 
 |  
				| I'm sure it's just a temporary glitch and will be fixed soon. |  | 
	
		| Back to top |  | 
	
		|  | 
	
		| Falconlobo Forum Stalker
 
  
 Joined: 18 Apr 2006
 Posts: 1570
 Location: Home
 
 | 
			
				|  Posted: Thu Aug 02, 2018 10:55 pm    Post subject: |   |  
				| 
 |  
				| 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
 
 [img]http://i274.photobucket.com/albums/jj257/esmtie14/2hpoaao.gif[/img]
 LOL dancing  TMNT's
 |  | 
	
		| Back to top |  | 
	
		|  | 
	
		| TeeJay87 Very bored
 
  
 Joined: 24 Jun 2014
 Posts: 193
 
 
 | 
			
				|  Posted: Fri Aug 03, 2018 9:39 am    Post subject: |   |  
				| 
 |  
				| I also tried posting new picture here and got the exact same message like you did. |  | 
	
		| Back to top |  | 
	
		|  | 
	
		| Stratadrake Elder Than Dirt
 
  
 Joined: 05 May 2004
 Posts: 13724
 Location: Moo
 
 | 
			
				|  Posted: Fri Aug 03, 2018 3:45 pm    Post subject: |   |  
				| 
 |  
				| 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.... 
 [quote="Falconlobo"]hope so  it has a weird link to what could be a virus on the bottom when the error shows[/quote]
 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: [url=http://www.nanowrimo.org/eng/user/242293]Nanowrimo[/url] - [url=www.fanart-central.net/user-Stratadrake.php]FAC[/url] - [url=http://stratadrake.deviantart.com]dA[/url] - [url=www.furaffinity.net/user/Stratadrake/]FA[/url]
 [size=9]Disclaimer: Posts may contain URLs.  Click [url=http://tvtropes.org/pmwiki/pmwiki.php/Main/TVTropesWillRuinYourLife]at your own risk.[/url][/size]
 |  | 
	
		| Back to top |  | 
	
		|  | 
	
		| TeeJay87 Very bored
 
  
 Joined: 24 Jun 2014
 Posts: 193
 
 
 | 
			
				|  Posted: Fri Aug 03, 2018 10:30 pm    Post subject: |   |  
				| 
 |  
				| [quote="Stratadrake"]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.... [/quote] 
 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 "
 
 
 
 [quote="Stratadrake"]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.[/quote]
 
 
 Since regular users like me or Falconlobo shouldn't be showed those messages, I believe it was a server glitch.
 |  | 
	
		| Back to top |  | 
	
		|  | 
	
		| TeeJay87 Very bored
 
  
 Joined: 24 Jun 2014
 Posts: 193
 
 
 |  | 
	
		| Back to top |  | 
	
		|  | 
	
		| Falconlobo Forum Stalker
 
  
 Joined: 18 Apr 2006
 Posts: 1570
 Location: Home
 
 | 
			
				|  Posted: Sat Aug 04, 2018 4:22 pm    Post subject: |   |  
				| 
 |  
				| 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
 
 [img]http://i274.photobucket.com/albums/jj257/esmtie14/2hpoaao.gif[/img]
 LOL dancing  TMNT's
 |  | 
	
		| Back to top |  | 
	
		|  | 
	
		| Stratadrake Elder Than Dirt
 
  
 Joined: 05 May 2004
 Posts: 13724
 Location: Moo
 
 | 
			
				|  Posted: Sat Aug 04, 2018 5:19 pm    Post subject: |   |  
				| 
 |  
				| 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: [url=http://www.nanowrimo.org/eng/user/242293]Nanowrimo[/url] - [url=www.fanart-central.net/user-Stratadrake.php]FAC[/url] - [url=http://stratadrake.deviantart.com]dA[/url] - [url=www.furaffinity.net/user/Stratadrake/]FA[/url]
 [size=9]Disclaimer: Posts may contain URLs.  Click [url=http://tvtropes.org/pmwiki/pmwiki.php/Main/TVTropesWillRuinYourLife]at your own risk.[/url][/size]
 |  | 
	
		| Back to top |  | 
	
		|  | 
	
		| Falconlobo Forum Stalker
 
  
 Joined: 18 Apr 2006
 Posts: 1570
 Location: Home
 
 | 
			
				|  Posted: Sat Aug 04, 2018 5:27 pm    Post subject: |   |  
				| 
 |  
				| 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
 
 [img]http://i274.photobucket.com/albums/jj257/esmtie14/2hpoaao.gif[/img]
 LOL dancing  TMNT's
 |  | 
	
		| Back to top |  | 
	
		|  | 
	
		| TeeJay87 Very bored
 
  
 Joined: 24 Jun 2014
 Posts: 193
 
 
 |  | 
	
		| Back to top |  | 
	
		|  | 
	
		| VampireWarith Member
 
  
 Joined: 31 Dec 1969
 Posts: 49
 
 
 | 
			
				|  Posted: Wed Dec 26, 2018 6:54 am    Post subject: |   |  
				| 
 |  
				| I'm getting this CDbCommand failed to execute the SQL statement: SQLSTATE[27000]: Triggered data change violation: 7 ERROR: tuple to be updated was already modified by an operation triggered by the current command HINT: Consider using an AFTER trigger instead of a BEFORE trigger to propagate changes to other rows. CONTEXT: SQL statement "update story_chapters set word_count = count_words(NEW.chapter_id), size_count = count_size(NEW.chapter_id) where chapter_id=NEW.chapter_id" PL/pgSQL function update_chapter_counts() line 3 at SQL statement
 |  | 
	
		| Back to top |  | 
	
		|  | 
	
		| TeeJay87 Very bored
 
  
 Joined: 24 Jun 2014
 Posts: 193
 
 
 | 
			
				|  Posted: Fri Dec 28, 2018 2:35 pm    Post subject: |   |  
				| 
 |  
				| [quote="VampireWarith"]I'm getting this CDbCommand failed to execute the SQL statement: SQLSTATE[27000]: Triggered data change violation: 7 ERROR: tuple to be updated was already modified by an operation triggered by the current command HINT: Consider using an AFTER trigger instead of a BEFORE trigger to propagate changes to other rows. CONTEXT: SQL statement "update story_chapters set word_count = count_words(NEW.chapter_id), size_count = count_size(NEW.chapter_id) where chapter_id=NEW.chapter_id" PL/pgSQL function update_chapter_counts() line 3 at SQL statement[/quote]
 
 
 The page script has jammed. I'm sure the administration can handle it.
 |  | 
	
		| Back to top |  | 
	
		|  | 
	
		| Stratadrake Elder Than Dirt
 
  
 Joined: 05 May 2004
 Posts: 13724
 Location: Moo
 
 | 
			
				|  Posted: Fri Dec 28, 2018 6:01 pm    Post subject: |   |  
				| 
 |  
				| Is that SQL error still persisting? _________________
 Strata here: [url=http://www.nanowrimo.org/eng/user/242293]Nanowrimo[/url] - [url=www.fanart-central.net/user-Stratadrake.php]FAC[/url] - [url=http://stratadrake.deviantart.com]dA[/url] - [url=www.furaffinity.net/user/Stratadrake/]FA[/url]
 [size=9]Disclaimer: Posts may contain URLs.  Click [url=http://tvtropes.org/pmwiki/pmwiki.php/Main/TVTropesWillRuinYourLife]at your own risk.[/url][/size]
 |  | 
	
		| Back to top |  | 
	
		|  | 
	
		| TeeJay87 Very bored
 
  
 Joined: 24 Jun 2014
 Posts: 193
 
 
 | 
			
				|  Posted: Sat Dec 29, 2018 6:05 am    Post subject: |   |  
				| 
 |  
				| Haven't noticed it occurring. |  | 
	
		| Back to top |  | 
	
		|  | 
	
		| VampireWarith Member
 
  
 Joined: 31 Dec 1969
 Posts: 49
 
 
 | 
			
				|  Posted: Thu Feb 21, 2019 7:14 am    Post subject: |   |  
				| 
 |  
				| It's working now. |  | 
	
		| Back to top |  | 
	
		|  | 
	
		|  |