Uploaded pictures & Smileys do not display

Dan Dowson Posted in Technical Support 7 years ago

Not sure why... Fresh install of 4.4 on Ubuntu 16.04 Any help would be greatly appreciated....

Error logs show the following:

[03-Sep-2017 22:38:42 UTC] PHP WARNING: 2017-09-03 22:38:42 (UTC): "mkdir(): Permission denied" in file /var/www/html/ossn/classes/OssnFile.php (line 207)
[03-Sep-2017 22:38:42 UTC] PHP WARNING: 2017-09-03 22:38:42 (UTC): "file_put_contents(/var/www/ossndatadirobject/21/ossnwall/images/b41c01e2d9258a7006b9cc14c99c00cd.jpg): failed to open st$
[03-Sep-2017 22:44:29 UTC] PHP WARNING: 2017-09-03 22:44:29 (UTC): "mkdir(): Permission denied" in file /var/www/html/ossn/classes/OssnFile.php (line 207)
[03-Sep-2017 22:44:29 UTC] PHP WARNING: 2017-09-03 22:44:29 (UTC): "file_put_contents(/var/www/ossndatadirobject/22/ossnwall/images/564c0a72124f014d7c61cce5c47f0695.jpg): failed to open st$
[03-Sep-2017 22:44:54 UTC] PHP WARNING: 2017-09-03 22:44:54 (UTC): "mkdir(): Permission denied" in file /var/www/html/ossn/classes/OssnFile.php (line 207)
[03-Sep-2017 22:44:54 UTC] PHP WARNING: 2017-09-03 22:44:54 (UTC): "file_put_contents(/var/www/ossndatadirobject/23/ossnwall/images/1eeb5a42be8d23268f0e0d3c80868446.jpg): failed to open st$
[03-Sep-2017 22:51:29 UTC] PHP WARNING: 2017-09-03 22:51:29 (UTC): "mkdir(): Permission denied" in file /var/www/html/ossn/classes/OssnFile.php (line 207)
[03-Sep-2017 22:51:29 UTC] PHP WARNING: 2017-09-03 22:51:29 (UTC): "exif_read_data(phpvHXcAt): File not supported" in file /var/www/html/ossn/classes/OssnFile.php (line 452)
[03-Sep-2017 22:51:29 UTC] PHP WARNING: 2017-09-03 22:51:29 (UTC): "file_put_contents(/var/www/ossndatadirobject/24/ossnwall/images/a590ba055d3146a7e31ae80638ab0f1e.png): failed to open st$
[03-Sep-2017 22:51:46 UTC] PHP WARNING: 2017-09-03 22:51:46 (UTC): "mkdir(): Permission denied" in file /var/www/html/ossn/classes/OssnFile.php (line 207)
[03-Sep-2017 22:51:46 UTC] PHP WARNING: 2017-09-03 22:51:46 (UTC): "exif_read_data(phpO7yFwX): File not supported" in file /var/www/html/ossn/classes/OssnFile.php (line 452)
[03-Sep-2017 22:51:46 UTC] PHP WARNING: 2017-09-03 22:51:46 (UTC): "file_put_contents(/var/www/ossndatadiruser/1/profile/photo/65fb95885f809840bd10b29bf53518c9.png): failed to open stream:$
[03-Sep-2017 22:51:46 UTC] PHP WARNING: 2017-09-03 22:51:46 (UTC): "getimagesize(/var/www/ossndatadiruser/1/profile/photo/65fb95885f809840bd10b29bf53518c9.png): failed to open stream: No s$
[03-Sep-2017 22:51:46 UTC] PHP WARNING: 2017-09-03 22:51:46 (UTC): "file_put_contents(/var/www/ossndatadiruser/1/profile/photo/topbar_65fb95885f809840bd10b29bf53518c9.png): failed to open $
[03-Sep-2017 22:51:46 UTC] PHP WARNING: 2017-09-03 22:51:46 (UTC): "getimagesize(/var/www/ossndatadiruser/1/profile/photo/65fb95885f809840bd10b29bf53518c9.png): failed to open stream: No s$
[03-Sep-2017 22:51:46 UTC] PHP WARNING: 2017-09-03 22:51:46 (UTC): "file_put_contents(/var/www/ossndatadiruser/1/profile/photo/small_65fb95885f809840bd10b29bf53518c9.png): failed to open s$
[03-Sep-2017 22:51:46 UTC] PHP WARNING: 2017-09-03 22:51:46 (UTC): "getimagesize(/var/www/ossndatadiruser/1/profile/photo/65fb95885f809840bd10b29bf53518c9.png): failed to open stream: No s$
[03-Sep-2017 22:51:46 UTC] PHP WARNING: 2017-09-03 22:51:46 (UTC): "file_put_contents(/var/www/ossndatadiruser/1/profile/photo/smaller_65fb95885f809840bd10b29bf53518c9.png): failed to open$
[03-Sep-2017 22:51:46 UTC] PHP WARNING: 2017-09-03 22:51:46 (UTC): "getimagesize(/var/www/ossndatadiruser/1/profile/photo/65fb95885f809840bd10b29bf53518c9.png): failed to open stream: No s$
[03-Sep-2017 22:51:46 UTC] PHP WARNING: 2017-09-03 22:51:46 (UTC): "file_put_contents(/var/www/ossndatadiruser/1/profile/photo/large_65fb95885f809840bd10b29bf53518c9.png): failed to open s$
[03-Sep-2017 22:51:46 UTC] PHP WARNING: 2017-09-03 22:51:46 (UTC): "getimagesize(/var/www/ossndatadiruser/1/profile/photo/65fb95885f809840bd10b29bf53518c9.png): failed to open stream: No s$
[03-Sep-2017 22:51:46 UTC] PHP WARNING: 2017-09-03 22:51:46 (UTC): "file_put_contents(/var/www/ossndatadiruser/1/profile/photo/larger_65fb95885f809840bd10b29bf53518c9.png): failed to open $
[03-Sep-2017 22:51:46 UTC] PHP WARNING: 2017-09-03 22:51:46 (UTC): "filesize(): stat failed for /var/www/ossndatadiruser/1/profile/photo/larger_65fb95885f809840bd10b29bf53518c9.png" in fil$
[03-Sep-2017 22:51:46 UTC] PHP WARNING: 2017-09-03 22:51:46 (UTC): "readfile(/var/www/ossndatadiruser/1/profile/photo/larger_65fb95885f809840bd10b29bf53518c9.png): failed to open stream: N$
[03-Sep-2017 23:35:42 UTC] PHP WARNING: 2017-09-03 23:35:42 (UTC): "filesize(): stat failed for /var/www/ossndatadiruser/1/profile/photo/small_65fb95885f809840bd10b29bf53518c9.png" in file$
[03-Sep-2017 23:35:42 UTC] PHP WARNING: 2017-09-03 23:35:42 (UTC): "readfile(/var/www/ossndatadiruser/1/profile/photo/small_65fb95885f809840bd10b29bf53518c9.png): failed to open stream: No$
[03-Sep-2017 23:35:42 UTC] PHP WARNING: 2017-09-03 23:35:42 (UTC): "filesize(): stat failed for /var/www/ossndatadiruser/1/profile/photo/smaller_65fb95885f809840bd10b29bf53518c9.png" in fi$
[03-Sep-2017 23:35:42 UTC] PHP WARNING: 2017-09-03 23:35:42 (UTC): "readfile(/var/www/ossndatadiruser/1/profile/photo/smaller_65fb95885f809840bd10b29bf53518c9.png): failed to open stream: $
[03-Sep-2017 23:35:51 UTC] PHP WARNING: 2017-09-03 23:35:51 (UTC): "mkdir(): Permission denied" in file /var/www/html/ossn/classes/OssnFile.php (line 207)
[03-Sep-2017 23:35:51 UTC] PHP WARNING: 2017-09-03 23:35:51 (UTC): "exif_read_data(phpgfK0ne): File not supported" in file /var/www/html/ossn/classes/OssnFile.php (line 452)
[03-Sep-2017 23:35:51 UTC] PHP WARNING: 2017-09-03 23:35:51 (UTC): "file_put_contents(/var/www/ossndatadirobject/26/ossnwall/images/c368ebc96aca7307dd84c685cf59bf4a.png): failed to open st$
[03-Sep-2017 23:36:18 UTC] PHP WARNING: 2017-09-03 23:36:18 (UTC): "mkdir(): Permission denied" in file /var/www/html/ossn/classes/OssnFile.php (line 207)
[03-Sep-2017 23:36:18 UTC] PHP WARNING: 2017-09-03 23:36:18 (UTC): "file_put_contents(/var/www/ossndatadirobject/27/ossnwall/images/867d1ded132d7aee97de0deb4303e7b2.jpg): failed to open st$
Replies
Turkish YILMAZ DURU Replied 7 years ago

fetch the ".htaccess" file on your server's host as you see it now. It is probably like ".htaccess.txt". delete the ".txt" at the end and save the file as ".htaccess".

As root admin, you must give the necessary permissions to the file.

Catalan Dan Dowson Replied 7 years ago

Nevermind. I'm dumb and didn't have write permissions on my data directory.