vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   Picture attachments stopped working. (https://vborg.vbsupport.ru/showthread.php?t=293308)

gajinoz 12-27-2012 08:46 PM

Quote:

Originally Posted by Lynne (Post 2393075)
What is in your error_logs (if you don't know where they are, ask your host)?

Also, have your host set up an upload_tmp_dir for you and make sure he enters the full path into the php.ini file.

I'll check those things, thanks.

When the forum was moved it was done by taking a full site backup via cpanel. Database, file structure, the lot. Well, hopefully that's what happened. Shouldn't the upload_tmp_dir and the php.ini have been copied as well? If so, great, if not it makes me think about what else might not have made it.

Lynne 12-27-2012 11:07 PM

No, they would not have copied over the php.ini or upload_tmp_dir. The upload_tmp_dir is just a temporary directory for the image as it is uploaded. It can be anywhere, but it needs to be specified in the php.ini file.

gajinoz 12-27-2012 11:47 PM

Quote:

Originally Posted by Lynne (Post 2393116)
No, they would not have copied over the php.ini or upload_tmp_dir. The upload_tmp_dir is just a temporary directory for the image as it is uploaded. It can be anywhere, but it needs to be specified in the php.ini file.

OK, great, I'll have a chat with them about that.

gajinoz 12-29-2012 07:38 PM

I had an FTP problem with the host, their firewall was blocking me! Got that fixed up but the attachment issue is still there.

Can you tell me where I would find the php.ini file on my VPS? Is it something I should be able to access or is it likely only the host service can get to it?

Does the temp directory need to be in the forum root directory or somewhere above that?

Thanks.

Lynne 12-30-2012 04:54 PM

You will need to ask your host where the php.ini file is and whether you are allowed to alter it.

Usually the /tmp dir is above the root.

gajinoz 12-30-2012 08:10 PM

OK, thanks.

pitzerwm 01-01-2013 11:08 PM

I have never had this working , but am now following the directions. I had the host add the folder and edit the php,ini file, but I get this when I try to upload a small photo:

Could not create file system directory to hold your attachment.

What am I missing?

Thanks

gajinoz 01-01-2013 11:16 PM

I now have the attachments working, sort of.

I think the thumbnail issue was, maybe, because GD is not installed on the server. I've asked the host to look into that.

Second problem: I can upload and attach picture that are BELOW approximately 150 kB, anything bigger fails. I have set the size in the attachment manager to 200000

What else do I need to look at?

Lynne 01-02-2013 04:56 PM

Did you ever say if the attachments were in the filesystem or the database? Depending on which, you need to look at these settings:

PHP Settings:
max_execution_time
memory_limit
post_max_size
upload_max_filesize
max_input_time

MySQL Settings:
max_allowed_packet
wait_timeout

gajinoz 01-02-2013 10:29 PM

Quote:

Originally Posted by Lynne (Post 2394271)
Did you ever say if the attachments were in the filesystem or the database? Depending on which, you need to look at these settings:

PHP Settings:
max_execution_time
memory_limit
post_max_size
upload_max_filesize
max_input_time

MySQL Settings:
max_allowed_packet
wait_timeout

They're stored in the database so I'm guessing I need to look at the last two.


All times are GMT. The time now is 10:45 AM.

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.01919 seconds
  • Memory Usage 1,736KB
  • 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
  • (3)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