Project

General

Profile

Bug #8088

Social group image upload generates error

Added by Yannick Warnier almost 4 years ago. Updated almost 4 years ago.

Status:
Rejected - Abandoned
Priority:
Normal
Category:
Social
Target version:
Start date:
15/02/2016
Due date:
% Done:

0%

Estimated time:
Complexity:
Normal
SCRUM pts - complexity:
?

Description

As admin:
  • go to social network
  • go to groups
  • click to create a new group
  • give any name
  • upload the attached JPG
  • click the group creation submit button

This generates the following error:

[Mon Feb 15 15:11:38.401634 2016] [:error] [pid 19723] [client 127.0.0.1:42074] PHP Fatal error:  Uncaught exception 'ErrorException' with message 'imagejpeg(/var/www/chamilo110x/app/upload/groups/4/4/big_4_56c230fa57b6a_event-code.jpg): failed to open stream: No such file or directory' in /var/www/chamilo110x/vendor/imagine/imagine/lib/Imagine/Gd/Image.php:580\nStack trace:\n#0 [internal function]: Imagine\\Gd\\Image->Imagine\\Gd\\{closure}(2, 'imagejpeg(/var/...', '/var/www/chamil...', 580, Array)\n#1 [internal function]: imagejpeg(Resource id #6, '/var/www/chamil...', 90)\n#2 /var/www/chamilo110x/vendor/imagine/imagine/lib/Imagine/Gd/Image.php(580): call_user_func_array('imagejpeg', Array)\n#3 /var/www/chamilo110x/vendor/imagine/imagine/lib/Imagine/Gd/Image.php(233): Imagine\\Gd\\Image->saveOrOutput('jpg', Array, '/var/www/chamil...')\n#4 /var/www/chamilo110x/main/inc/lib/usergroup.lib.php(1135): Imagine\\Gd\\Image->save('/var/www/chamil...', Array)\n#5 /var/www/chamilo110x/main/inc/lib/usergroup.lib.php(1021): UserGroup->update_group_picture('4', 'event-code.jpg', '/tmp/phpsCBVzm')\n#6 /var/www/chamilo110x/main/inc/l in /var/www/chamilo110x/vendor/imagine/imagine/lib/Imagine/Gd/Image.php on line 697, referer: http://my.chamilo110.net/main/social/group_add.php

The error seems to be due to a wrong path. On my system, app/upload/groups exists and is 0777, but it doesn't contains anything.


Files

event-code.jpg (747 KB) event-code.jpg Yannick Warnier, 15/02/2016 21:15

History

#1

Updated by Yannick Warnier almost 4 years ago

The group gets created (surprisingly), but the error message is an issue.

#2

Updated by Yannick Warnier almost 4 years ago

  • Status changed from Assigned to Rejected - Abandoned
  • Assignee changed from Angel Quiroz to Yannick Warnier

Sorry, my fault. The app/upload/groups/ folder was 0775, not 0777 and did not belong to www-data.

Also available in: Atom PDF