Go Back   vb.org Archive > vBulletin 4 Discussion > vB4 General Discussions

Reply
 
Thread Tools Display Modes
  #11  
Old 11-05-2020, 10:59 PM
RichieBoy67's Avatar
RichieBoy67 RichieBoy67 is offline
 
Join Date: Apr 2004
Location: CT - Down in a hole..
Posts: 3,057
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by nte View Post


With or without , its the same ...
You do not need the full path.
Reply With Quote
  #12  
Old 11-05-2020, 11:08 PM
nte nte is offline
 
Join Date: May 2015
Posts: 27
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by RichieBoy67 View Post
You do not need the full path.
Give me an example please
Reply With Quote
  #13  
Old 11-05-2020, 11:22 PM
RichieBoy67's Avatar
RichieBoy67 RichieBoy67 is offline
 
Join Date: Apr 2004
Location: CT - Down in a hole..
Posts: 3,057
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Nevermind, I believe you have it correct. What are your directory permissions set at?
Reply With Quote
  #14  
Old 11-05-2020, 11:32 PM
yilmaz's Avatar
yilmaz yilmaz is offline
 
Join Date: Sep 2004
Posts: 751
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by nte View Post
Give me an example please
This is correct
Code:
/www/root/html/forum/images/attachment
Reply With Quote
  #15  
Old 11-06-2020, 10:16 AM
Hostboard's Avatar
Hostboard Hostboard is offline
 
Join Date: May 2002
Location: CT
Posts: 843
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

The only thing left is making sure that the attachment folder is set with the proper 0777 permissions.
Reply With Quote
  #16  
Old 11-10-2020, 03:32 PM
nte nte is offline
 
Join Date: May 2015
Posts: 27
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by RichieBoy67 View Post
Nevermind, I believe you have it correct. What are your directory permissions set at?
Quote:
Originally Posted by yilmaz View Post
This is correct
Code:
/www/root/html/forum/images/attachment
Quote:
Originally Posted by Hostboard View Post
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 ...



... but it is not fixed . The same problem again , the attachment dose not disply .


Whan I move/upload the attachment back in the database , it show me this :


...and whan it finish :
Reply With Quote
  #17  
Old 11-11-2020, 09:15 AM
snakes1100 snakes1100 is offline
 
Join Date: Dec 2001
Location: Michigan
Posts: 3,733
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #18  
Old 11-11-2020, 12:33 PM
nte nte is offline
 
Join Date: May 2015
Posts: 27
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by snakes1100 View Post
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);
Reply With Quote
  #19  
Old 11-11-2020, 08:24 PM
snakes1100 snakes1100 is offline
 
Join Date: Dec 2001
Location: Michigan
Posts: 3,733
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #20  
Old 11-11-2020, 08:40 PM
nte nte is offline
 
Join Date: May 2015
Posts: 27
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by snakes1100 View Post
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 ?
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 08:02 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.04405 seconds
  • Memory Usage 2,272KB
  • Queries Executed 12 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (4)bbcode_code
  • (8)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete