vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   Attachment bug , vB4 (https://vborg.vbsupport.ru/showthread.php?t=328331)

nte 11-04-2020 11:33 PM

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>

nte 11-05-2020 08:49 PM

Quote:

Originally Posted by yilmaz (Post 2604554)

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

nte 11-05-2020 09:30 PM

Quote:

Originally Posted by yilmaz (Post 2604564)
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

Quote:

Originally Posted by nte (Post 2604565)

Give the directory permissions.

yilmaz 11-05-2020 09:55 PM

1 Attachment(s)
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/attachmen...1&d=1604620711

nte 11-05-2020 09:56 PM

Quote:

Originally Posted by yilmaz (Post 2604567)
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/attachmen...1&d=1604620711



Quote:

Originally Posted by RichieBoy67 (Post 2604566)
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

nte 11-05-2020 10:54 PM

Quote:

Originally Posted by Hostboard (Post 2604569)
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

Quote:

Originally Posted by nte (Post 2604570)
https://i.ibb.co/ykKsp6R/Screenshot-3.png

With or without , its the same ... :(

You do not need the full path.

nte 11-05-2020 11:08 PM

Quote:

Originally Posted by RichieBoy67 (Post 2604571)
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

Quote:

Originally Posted by nte (Post 2604572)
Give me an example please :)

This is correct
Code:

/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.

nte 11-10-2020 03:32 PM

Quote:

Originally Posted by RichieBoy67 (Post 2604573)
Nevermind, I believe you have it correct. What are your directory permissions set at?

Quote:

Originally Posted by yilmaz (Post 2604574)
This is correct
Code:

/www/root/html/forum/images/attachment

Quote:

Originally Posted by Hostboard (Post 2604579)
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.

nte 11-11-2020 12:33 PM

Quote:

Originally Posted by snakes1100 (Post 2604638)
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 ...

Code:

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

Code:

$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

nte 11-11-2020 08:40 PM

Quote:

Originally Posted by snakes1100 (Post 2604645)
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/attachmen...0&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


All times are GMT. The time now is 06:10 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01258 seconds
  • Memory Usage 1,771KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (4)bbcode_code_printable
  • (14)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (21)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete