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-26-2012 08:47 PM

Picture attachments stopped working.
 
I recently moved my forum from a shared hosting service to a virtual private server. Pretty much everything went OK, a few minor glitches but nothing serious.

One thing though did stop working, picture attachments in posts no longer works. The process itself works OK, you can select a pic from your PC and upload it but the thumbnail does not show. All you get is a little square where the thumbnail should be. No settings have been changed, I really can't figure out what is going on. Anyone have any ideas?

Thanks.

Vers. 4.1.7

kh99 12-26-2012 08:50 PM

What is the path in the html for the missing image? (view the html source or right click it and get the info).

gajinoz 12-26-2012 09:00 PM

This is what I found:

<img src="http://www.australianbladeforums.com/vb4/attachment.php?attachmentid=2216&amp;d=1355390723& amp;thumb=1" border="0" alt="Name: LightHorsePainting.jpg
Views: 0
Size: 157 Bytes" class="thumbnail" style="float:CONFIG" title="Name: LightHorsePainting.jpg
Views: 0
Size: 157 Bytes">

kh99 12-26-2012 09:10 PM

Hmm...to be honest that didn't help me a lot (but it's my fault for asking). Do you have your forum set to save attachments in the database or the file system? And if it's the file system, did you copy over the directory they were being saved in?

gajinoz 12-26-2012 09:25 PM

Currently being stored in the database and always have been since I installed vB

Lynne 12-27-2012 12:01 AM

What are the results from maintenance > diagnostics > upload?

gajinoz 12-27-2012 12:22 AM

Quote:

Originally Posted by Lynne (Post 2392911)
What are the results from maintenance > diagnostics > upload?

This is the exact message when I run that:

No errors occurred while opening the uploaded file for reading.

It's bizarre, everything appears to be OK, it just doesn't work.

Is there a list of all appropriate/related PHP modules that might be needed for the thumbnail part to work? Maybe my new server is missing one or more.

Lynne 12-27-2012 12:42 AM

That isn't all it says - it should give some php settings along with it. What are they?

gajinoz 12-27-2012 05:24 AM

1 Attachment(s)
Quote:

Originally Posted by Lynne (Post 2392917)
That isn't all it says - it should give some php settings along with it. What are they?

Here is a screenshot:



Attachment 143037

Lynne 12-27-2012 05:26 PM

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.

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.

Lynne 01-03-2013 12:16 AM

Well, you actually will need to look at the php settings also since it is the php script that is 'talking' with mysql.

gajinoz 01-09-2013 07:54 PM

I'vve managed to sort out a few problem including where the php.ini file is and how I can edit it. Unfortunately I have never played with one of these before and I have no idea what settings should be in there that are relevant to vbulletin. I know that you can enter parameters like: this_thing=something
I just don't know what I need.

It would be extremely helpful if somebody could post an example of the contents of theirs.

I just need stuff like "upload_tmp_dir" and values for the PHP settings lynne has mentioned above. I would really appreciate it.

Also example values for the DB settings mentioned.

Thanks.

Lynne 01-10-2013 01:41 AM

I would suggest posting in the Server Configuration forum on vbulletin.com for help with the settings because every server is going to need different settings.


All times are GMT. The time now is 02:13 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.01105 seconds
  • Memory Usage 1,759KB
  • 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
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (23)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