Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Image wasn't attached. #895

Closed
jpcaruana opened this issue May 13, 2015 · 7 comments
Closed

Image wasn't attached. #895

jpcaruana opened this issue May 13, 2015 · 7 comments

Comments

@jpcaruana
Copy link

I can't upload images any more. I have the following error message : "Image wasn't attached. "

Version: 0.7.8

@benwerd
Copy link
Member

benwerd commented May 16, 2015

Does anything show up in your error logs? Image uploads are confirmed as working fine in the latest version, in the general case.

@benborges
Copy link

got this one too, today..& of course there is no way to re-attach the same image or reupload it after the post is created, so one end up with a "picture" type post without any image in it.

my Known version : Version: 0.7.8.5.1

@kylewm
Copy link
Collaborator

kylewm commented May 22, 2015

@benborges anything in the error log? can you check the permissions (ls -l) on your Uploads folder?

@benborges
Copy link

my error log : http://pastebin.com/HxGi8VbB
permission : drwxrwsr-x 3 www-data 4096 May 5 20:27 Uploads
my config ini upload path is : uploadpath = '/opt/http/nginx/sites/1-m.cc/www/Uploads'

and that's precisely where my Known is stored.

@jpcaruana
Copy link
Author

Known experienced a problem with this page and couldn't continue. The technical details are as follows:

Fatal Error: /var/www/jp/IdnoPlugins/Twitter/Main.php:274 - "Call to undefined function IdnoPlugins\Twitter\site()", on page xxxx/photo/edit

apache log:

[Fri Jun 12 11:40:26 2015] [error] [client 54.247.71.94] PHP Warning:  mkdir(): Permission denied in /var/www/jp/Idno/Files/LocalFileSystem.php on line 78, referer: http://xxx.xxxx.xxx/
[Fri Jun 12 11:40:26 2015] [error] [client 54.247.71.94] PHP Warning:  mkdir(): Permission denied in /var/www/jp/Idno/Files/LocalFileSystem.php on line 78, referer: http://xxx.xxxx.xxx/
[Fri Jun 12 11:40:26 2015] [error] [client 54.247.71.94] PHP Warning:  mkdir(): Permission denied in /var/www/jp/Idno/Files/LocalFileSystem.php on line 78, referer: http://xxx.xxxx.xxx/
[Fri Jun 12 11:40:26 2015] [error] [client 54.247.71.94] PHP Warning:  copy(/var/www/jp/Uploads/xxx.xxxx.xxx/b/5/1/5/b5156c11a866905fb1d1c99140d50101.file): failed to open stream: No such file or directory in /var/www/jp/Idno/Files/LocalFileSystem.php on line 82, referer: http://xxx.xxxx.xxx/
[Fri Jun 12 11:40:26 2015] [error] [client 54.247.71.94] PHP Warning:  file_put_contents(/var/www/jp/Uploads/xxx.xxxx.xxx/b/5/1/5/b5156c11a866905fb1d1c99140d50101.data): failed to open stream: No such file or directory in /var/www/jp/Idno/Files/LocalFileSystem.php on line 83, referer: http://xxx.xxxx.xxx/
[Fri Jun 12 11:40:26 2015] [error] [client 54.247.71.94] Known (xxx.xxxx.xxx): INFO - Pinging http://withknown.superfeedr.com/ with data hub.mode=publish&hub.url=http%3A%2F%2Fxxx.xxxx.xxx%2Fcontent%2Fphotos%2F,http%3A%2F%2Fxxx.xxxx.xxx%2Fcontent%2Fphotos%2F%3F_t%3Drss,http%3A%2F%2Fxxx.xxxx.xxx%2Fcontent%2Fall%2F,http%3A%2F%2Fxxx.xxxx.xxx%2Fcontent%2Fall%2F%3F_t%3Drss 4, referer: http://xxx.xxxx.xxx/
[Fri Jun 12 11:40:26 2015] [error] [client 54.247.71.94] PHP Notice:  Undefined variable: media in /var/www/jp/IdnoPlugins/Twitter/Main.php on line 253, referer: http://xxx.xxxx.xxx/
[Fri Jun 12 11:40:27 2015] [error] [client 54.247.71.94] PHP Fatal error:  Call to undefined function IdnoPlugins\\Twitter\\site() in /var/www/jp/IdnoPlugins/Twitter/Main.php on line 274, referer: http://xxx.xxxx.xxx/
[Fri Jun 12 11:40:27 2015] [error] [client 54.247.71.94] Known (xxx.xxxx.xxx): ERROR - Fatal Error: /var/www/jp/IdnoPlugins/Twitter/Main.php:274 - "Call to undefined function IdnoPlugins\\Twitter\\site()", on page xxx.xxxx.xxx/photo/edit 4, referer: http://xxx.xxxx.xxx/

my permissions seems alright

@jpcaruana
Copy link
Author

Version: 0.7.8.5.1

@jpcaruana
Copy link
Author

I finally solved the issue: the sub directory under Uploads was root:root, and should have been www-data:www-data

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants