Simple Machines Community Forum

SMF Support => SMF 2.0.x Support => Topic started by: wladymeer on August 26, 2009, 09:08:13 PM

Title: Zero Sized Reply
Post by: wladymeer on August 26, 2009, 09:08:13 PM
All of sudden I get this page:

QuoteThe following error was encountered:
Zero Sized Reply

Squid did not receive any data for this request.

Everything was working fine until hour ago and I haven't made any changes recently and now I get this message on every single forum link I try to open  - any ideas what could go wrong or at least how to examine what went wrong?
Title: Re: Zero Sized Reply
Post by: Norv on August 26, 2009, 09:13:08 PM
Perhaps it would be a good idea to ask your host what they changed lately, and what impact their changes can have.
Title: Re: Zero Sized Reply
Post by: wladymeer on August 26, 2009, 09:16:56 PM
Hmmm.. It's a little bit late 3 AM here - if you may know, could this type of error be result of some maintance mode from them then?

On the other side, just want to be sure, could this be result of some "hack attack" or similar?

Just to add, using SMF 2.0 RC1-1 version of the forum with default theme.
Title: Re: Zero Sized Reply
Post by: Antechinus on August 26, 2009, 09:44:34 PM
Possibly a hack but ask your host about maintenance or any other changes at their end first before jumping to the worst conclusions. :)
Also it would be best if you upgraded to RC1.2 as soon as your site is open again.
Title: Re: Zero Sized Reply
Post by: wladymeer on August 26, 2009, 09:57:59 PM
E-mail already sent to host - I accessed my server and am copying all /forum data to local drive at the moment - I had glance at it and it seems that all files are there and no new and strange files.

It also seems that not only /forum has this problem but whole link as my home page has same error as /forum links have.

Anyway, would this file copying be enough to do a proper backup of posts in case something bad happened and I need to do a fresh start or I should do something else?
Title: Re: Zero Sized Reply
Post by: Antechinus on August 26, 2009, 10:06:06 PM
Posts and other forum content are stored in the database, so you need a backup of that. Do you have access to phpMyAdmin?
Title: Re: Zero Sized Reply
Post by: wladymeer on August 26, 2009, 10:13:51 PM
Umm... not sure, will have to check it and don't have any free time at the moment to do it properly so I guess I will message back to this thread tomorrow as soon as I manage.

Thank you for your concerns and I hope everything will be fine... eventually :)
Title: Re: Zero Sized Reply
Post by: REDSEW on August 26, 2009, 11:30:11 PM
Hmm, did you let anyone be an admin, and you gave details to the person to access the ftp account and edit anything? Becuase a lot of people damage your website just for money...
Title: Re: Zero Sized Reply
Post by: wladymeer on August 26, 2009, 11:55:17 PM
Nope. I'm the only admin on the forum and there is only one guy (very long term friendship, actually he is one from the "host" company) have access to the forum. And even he doesn't have all permissions on my forum as Admin would have.

As I said before, nothing was odd or seemed that might get odd until I tried to login to the forum.

edit: it seems that I have backup before I added my last mod (it was nneonneo shoutbox) in my packages/backups forum - will that help to restore anything?

edit2: now when I recall it, I did get some errors "Couldn't connect to SMF database" recently from time to time and it seems that forum worked little bit slower than before. Maybe that's some hint.
Title: Re: Zero Sized Reply
Post by: Antechinus on August 27, 2009, 12:18:41 AM
The backup will be useful. Hang onto it. If you can get a more recent one that's always good too. I use a cron job to run automatic backups at 24 hour intervals. Handy if your host will allow it.

If it is temporary and irregular the "can't connect to database" thing is usually the host doing server maintenance. 
Title: Re: Zero Sized Reply
Post by: REDSEW on August 27, 2009, 12:21:18 AM
Backing up helps ;D, anyways, can I have a look at your website?
Title: Re: Zero Sized Reply
Post by: Antechinus on August 27, 2009, 12:29:24 AM
You could, if the site was currently online.:P http://www.gvosh.bb.rs/forum/
Title: Re: Zero Sized Reply
Post by: wladymeer on August 27, 2009, 12:29:47 AM
well sure thing it's http://www.gvosh.bb.rs/forum but I believe there is nothing to be seen at the moment :)

I'm looking at forum/packages/backups and file with most recent date is "2009-08-25_before_SB_1.tar.gz" but frankly, don't have any idea how to use it now when the forum is down :)
Title: Re: Zero Sized Reply
Post by: REDSEW on August 27, 2009, 12:33:46 AM
How many members and topics did you have?
If you havent had many, just collect the user information and fresh install a new smf and put the users back in, but not the topics. Try that ;D
Title: Re: Zero Sized Reply
Post by: wladymeer on August 27, 2009, 12:37:51 AM
37 and ~1800 posts :(

I have exam soon so I cannot put too much time for this now, hope there is something I can do instead of re-creating everything :)
Title: Re: Zero Sized Reply
Post by: Antechinus on August 27, 2009, 12:39:13 AM
Redsew: we don't even know what the problem is yet. If it is a hosting problem there is no point reinstalling anything. If it is not a hosting problem reinstallation is still the last option, not the first. I know you want to be helpful but don't go overboard, please.

wladymeer, I really do suggest waiting for a response from your host. That backup is only a couple of days old so should be fine if using it becomes necessary. At the moment we have no reason to suppose you will need to use it.
Title: Re: Zero Sized Reply
Post by: REDSEW on August 27, 2009, 12:41:09 AM
Hmm, what host is he using? I usually spider around websites and see if there are any updates on new hosts, good hosts, and bad hosts.
But I prefer SiteGround the best ;D.
Hope you get your website fixed wladymeer...
Title: Re: Zero Sized Reply
Post by: wladymeer on August 27, 2009, 12:42:20 AM
Oh yes, I didn't think to do any move before I check with my host what's going on. I'm using one my-country-related and haven't any problem... so far :D
Title: Re: Zero Sized Reply
Post by: REDSEW on August 27, 2009, 12:46:36 AM
Quote from: wladymeer on August 27, 2009, 12:42:20 AM
Oh yes, I didn't think to do any move before I check with my host what's going on. I'm using one my-country-related and haven't any problem... so far :D
one my-country-related? I never heard of that host...
Check your error log in your ftp where you smf is, and tell me if you see no error log or if you do see one, copy and paste the errors here so that we can track each error and see what cuased it from step by step   ;)
Title: Re: Zero Sized Reply
Post by: wladymeer on August 27, 2009, 12:51:46 AM
What I tried to say is that I don't think advertising would do any help here.

In last 7 days just got bunch of these in error log:

[27-Aug-2009 01:07:52] PHP Notice:  Undefined offset:  28 in /home/bbrs/public_html/gvosh.bb.rs/forum/Sources/Load.php(2017) : eval()'d code on line 180

I do know this error bumps everytime someone posts message in nneonneo's Shoutbox - wasn't sure should I delete it or not so I left it as it didn't make any trouble and wasn't visible to the others.

I also checked line 180 on Sources/Load.php and it seems it's some utf-8 line:

// UTF-8 in regular expressions is unsupported on PHP(win) versions < 4.2.3.
$utf8 = (empty($modSettings['global_character_set']) ? $txt['lang_character_set'] : $modSettings['global_character_set']) === 'UTF-8' && (strpos(strtolower(PHP_OS), 'win') === false || @version_compare(PHP_VERSION, '4.2.3') != -1);
Title: Re: Zero Sized Reply
Post by: Bec on August 27, 2009, 12:57:18 AM
Ive been getting this message myself but find I get it mostly with facebook, twitter etc... not sure if it has any relevance...
Title: Re: Zero Sized Reply
Post by: wladymeer on August 27, 2009, 01:06:22 AM
Nothing occurs.

I did from time to time as I need that option.
Title: Re: Zero Sized Reply
Post by: Antechinus on August 27, 2009, 01:29:51 AM
Quote from: Bec on August 27, 2009, 12:57:18 AM
Ive been getting this message myself but find I get it mostly with facebook, twitter etc... not sure if it has any relevance...
Probably because Facebook and Twitter have similar server problems.  ;)
Title: Re: Zero Sized Reply
Post by: wladymeer on August 27, 2009, 01:22:11 PM
I had talk with friend from whom I use host services and more or less he is suggesting to first try to remove shoutbox because it was taking a lot of virtual memory on their server.

So, lets try and go step by step, how can I restore my forum to "state before" installing if I don't access to any forum link? I do have in packages/backup file called 2009-08-25_before_SB_1.tar.gz - it's the last backup created - should I paste manually all files in my theme or...?

Also he informed me that there were two guys trying to register on forum but haven't activate their accounts. They are deleted now. Nicknames used were Fratribepearm and FassykatNaike. Does it ring any bells?
Title: Re: Zero Sized Reply
Post by: wladymeer on August 27, 2009, 03:05:44 PM
Copied all files from backup and everything works now.

Thank you all for your time and assistance - I really appreciate your help ;)