View Full Version : Attachment bug , vB4
Hello everyone .
I have a bug/problem with my attachment .
The upload of the attachment are ok and without problems .
https://i.ibb.co/x85BT1w/Screenshot-6.png
... but , the image not displayed .
https://i.ibb.co/9q8GCF8/Screenshot-5.png
Does anyone have a solution of my problem?
:up:
yilmaz
11-05-2020, 12:24 AM
<a href="https://vborg.vbsupport.ru/showpost.php?p=2604411&postcount=2" target="_blank">https://vborg.vbsupport.ru/show...11&postcount=2</a>
https://vborg.vbsupport.ru/showpost.php?p=2604411&postcount=2
There are stored in the Database , but if I go on your link its tell me :
https://i.ibb.co/PjQRX8m/Screenshot-3.png
It is already in the Database .
Please help :)
yilmaz
11-05-2020, 08:55 PM
Click where it says krene and wait until it's done
Click where it says krene and wait until it's done
https://i.ibb.co/xzQdXJF/Screenshot-1.png
:confused:
RichieBoy67
11-05-2020, 09:52 PM
https://vborg.vbsupport.ru/external/2020/11/1.png
:confused:Give the directory permissions.
yilmaz
11-05-2020, 09:55 PM
The Path address is not correct?
www/root/html/forum/images/attachment
Attachment File Path
This file path should be readable AND writeable by your web server (usually chmod 0777)
https://vborg.vbsupport.ru/attachment.php?attachmentid=157925&stc=1&d=1604620711
The Path address is not correct?
www/root/html/forum/images/attachment
Attachment File Path
This file path should be readable AND writeable by your web server (usually chmod 0777)
https://vborg.vbsupport.ru/attachment.php?attachmentid=157925&stc=1&d=1604620711
Give the directory permissions.
Yes , it is correct .
https://i.ibb.co/fGZ7631/Screenshot-2.png
If you think to set " 777 " in premissions of the directory , I do it ...
Or you think something else?
Hostboard
11-05-2020, 10:49 PM
You did not enter the first forward slash: /www/root/html/forum/images/attachment
You did not enter the first forward slash: /www/root/html/forum/images/attachment
https://vborg.vbsupport.ru/external/2020/11/1.png
With or without , its the same ... :(
RichieBoy67
11-05-2020, 10:59 PM
https://i.ibb.co/ykKsp6R/Screenshot-3.png
With or without , its the same ... :(You do not need the full path.
You do not need the full path.
Give me an example please :)
RichieBoy67
11-05-2020, 11:22 PM
Nevermind, I believe you have it correct. What are your directory permissions set at?
yilmaz
11-05-2020, 11:32 PM
Give me an example please :)
This is correct
/www/root/html/forum/images/attachment
Hostboard
11-06-2020, 10:16 AM
The only thing left is making sure that the attachment folder is set with the proper 0777 permissions.
Nevermind, I believe you have it correct. What are your directory permissions set at?
This is correct
/www/root/html/forum/images/attachment
The only thing left is making sure that the attachment folder is set with the proper 0777 permissions.
I successfully move my attachments in the filesystem ...
https://i.ibb.co/B435f3M/Screenshot-2.png
https://i.ibb.co/nsrxn22/Screenshot-3.png
... but it is not fixed . The same problem again , the attachment dose not disply .
https://i.ibb.co/ssVjP1h/Screenshot-6.png
Whan I move/upload the attachment back in the database , it show me this :
https://i.ibb.co/s5ZBtbW/Screenshot-4.png
...and whan it finish :
https://i.ibb.co/3v4f04K/Screenshot-5.png
snakes1100
11-11-2020, 09:15 AM
The server log should tell you why it failed, but its a permissions issue, either owner or folders or files.
Which permission is hard to say without seeing what errors are getting pushed into the logs.
The server log should tell you why it failed, but its a permissions issue, either owner or folders or files.
Which permission is hard to say without seeing what errors are getting pushed into the logs.
I found this in the log whan I was tried to upload a attachmant ...
2020/06/08 21:53:42 [error] 315#315: *4205242 FastCGI sent in stderr: "PHP message: PHP Warning: move_uploaded_file(/www/root/html/forum/images/temp/4b9973a5eb213d73f576c473489fbbda): failed to open stream: No such file or directory in /home/croherze/www/root/html/forum/includes/class_upload.php on line 384
PHP message: PHP Warning: move_uploaded_file(): Unable to move '/tmp/phpdZh6OZ' to '/www/root/html/forum/images/temp/4b9973a5eb213d73f576c473489fbbda' in /home/croherze/www/root/html/forum/includes/class_upload.php on line 384" while reading response header from upstream, client: 2003:d3:8f04:b700:75f3:2b6f:1d10:e176, server: croherze.com, request: "POST /forum/newattachment.php HTTP/1.1", upstream: "fastcgi://unix:/run/php/php5.6-ch-fpm.sock:", host: "croherze.com", referrer: "https://croherze.com/forum/newattachment.php?do=assetmanager&values[albumid]=60&contenttypeid=8&poststarttime=1591646000&posthash=f69139bdfc92e01be59997fed991e305&insertinline=0"
class_upload.php line 384
$moveresult = $this->registry->userinfo['permissions']['adminpermissions'] & $this->registry->bf_ugp_adminpermissions['cancontrolpanel'] ? move_uploaded_file($this->upload['location'], $temppath) : @move_uploaded_file($this->upload['location'], $temppath);
snakes1100
11-11-2020, 08:24 PM
Change path in vb to: /home/croherze/www/root/html/forum/images/attachment
chmod a+rwx /home/croherze/www/root/html/forum/images/attachment
try again
Change path in vb to: /home/croherze/www/root/html/forum/images/attachment
chmod a+rwx /home/croherze/www/root/html/forum/images/attachment
try again
Are you sure /home/croherze/www/root/html/forum/images/attachment
Here is one example off a uploaded attachment that not disply :
https://croherze.com/forum/attachment.php?attachmentid=2160&d=1602151218
Maybe :
chmod a+rwx /home/croherze/www/root/html/forum/attachment ?
snakes1100
11-11-2020, 08:43 PM
Yes thats part of the path you posted & used on page 1, images/attachment
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.