vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Forum and Server Management (https://vborg.vbsupport.ru/forumdisplay.php?f=232)
-   -   forum not uploading pics properly (https://vborg.vbsupport.ru/showthread.php?t=210140)

skh 04-02-2009 03:50 PM

forum not uploading pics properly
 
here is the error that some of my members are getting:

Invalid SQL:
INSERT INTO attachment
(dateline, thumbnail_dateline, visible, userid, extension, filename, posthash, thumbnail_filesize, filehash, filesize, filedata, thumbnail)
VALUES
(1238626216, 1238626216, 1, 37, 'jpg',

any ideas on how to fix?

snakes1100 04-02-2009 03:56 PM

Post the entire output from the failure page, i assume you got that either from a email or viewing the page source.

Lynne 04-02-2009 04:10 PM

We need to see the bottom part of the error page. The part that looks like this:
Code:

MySQL Error : some sort of something here
Error Number : another something here
Date : Sunday, April 13th 2008 @ 11:16:43 AM
Script : http://address.path.path/page.php
Referrer :
IP Address : **.***.**.***
Username : username
Classname : database


skh 04-02-2009 08:07 PM

Hi, thanks for the help... my email was only displaying part of the message. viewing the source helped me get to the bottom.

here's the error:

MySQL Error : Got a packet bigger than 'max_allowed_packet' bytes

Error Number : 1153

Request Date : Wednesday, April 1st 2009 @ 01:35:24 AM

Error Date : Wednesday, April 1st 2009 @ 01:35:25 AM

Now that i see this... is it simply a user permissions thing?

Lynne 04-02-2009 08:14 PM

That's a mysql thing. You will have to ask your host to increase the value.

Dismounted 04-03-2009 04:59 AM

You could try storing attachments as files instead of the database.

skh 04-03-2009 06:34 AM

Quote:

Originally Posted by Lynne (Post 1782658)
That's a mysql thing. You will have to ask your host to increase the value.

I'm on a dedicated server... i own a few sites, and have previously raised the limit to 5mb per pic and 32mb per post.

ah, i need to do that for each database... ok, i think i've got it now. thanks much :)

snakes1100 04-03-2009 11:53 AM

max_allowed_packet = 32M or higher until the error goes away.

Change it in my.cnf and restart sql

skh 04-03-2009 01:43 PM

Quote:

Originally Posted by snakes1100 (Post 1783008)
max_allowed_packet = 32M or higher until the error goes away.

Change it in my.cnf and restart sql


hey thanks...


i think this must be it... as i said i'd already increased the php limits in the .ini file and it seems to have changed them for the whole server, so it couldn't have been that.

so yes, this must be it... thanks a lot!

--------------- Added [DATE]1238774515[/DATE] at [TIME]1238774515[/TIME] ---------------

Quote:

Originally Posted by snakes1100 (Post 1783008)
max_allowed_packet = 32M or higher until the error goes away.

Change it in my.cnf and restart sql

Hi... i went into the my.cnf file using vi and i could not find the max_allowed_packet setting. it is not in that file. am i missing something?

snakes1100 04-03-2009 06:54 PM

If its not there simply add it and hup sql


All times are GMT. The time now is 06:33 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.01358 seconds
  • Memory Usage 1,733KB
  • 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
  • (1)bbcode_code_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)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