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)

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 ?


All times are GMT. The time now is 06:46 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.01011 seconds
  • Memory Usage 1,748KB
  • 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
  • (8)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete