SMF Support > SMF 1.1.x Support

Error log table becomes massive (SMF 1.1.16)

<< < (2/4) > >>

irmurray:
Hi,

I am not aware that I am using Tinyportal.

Selection of  error messages:

?action=profile;u=12959;sa=forumProfile   8: Undefined offset:  295<br />/home1/scotfli1/public_html/smf/Sources/Subs.php<br />2440
?action=profile;u=12959;sa=forumProfile   8: Undefined offset:  451<br />/home1/scotfli1/public_html/smf/Sources/Subs.php<br />2440
?action=profile;u=12959;sa=forumProfile   8: Undefined offset:  296<br />/home1/scotfli1/public_html/smf/Sources/Subs.php<br />2440
?action=profile;u=12959;sa=forumProfile   8: Undefined index:  smf240<br />/home1/scotfli1/public_html/smf/Sources/Subs.php<br />1434
?action=profile;u=12959;sa=forumProfile   8: Undefined index:  smf239<br />/home1/scotfli1/public_html/smf/Sources/Subs.php<br />1443
?action=profile;u=12959;sa=forumProfile   8: Undefined index:  smf239<br />/home1/scotfli1/public_html/smf/Sources/Subs.php<br />1450
?action=profile;u=12959;sa=forumProfile   8: Undefined index:  smf239<br />/home1/scotfli1/public_html/smf/Sources/Subs.php<br />1462
?action=profile;u=12959;sa=forumProfile   8: Undefined offset:  176<br />/home1/scotfli1/public_html/smf/Sources/Subs.php<br />1462
?action=profile;u=12959;sa=forumProfile   8: Undefined index:  smf239<br />/home1/scotfli1/public_html/smf/Sources/Subs.php<br />1471
?action=profile;u=12959;sa=forumProfile   8: Undefined offset:  289<br />/home1/scotfli1/public_html/smf/Sources/Subs.php<br />2440

Thanks,


Iain.

a10gf:
Am just curious...

Are all errors related to u=12959 (member no 12959) and the corresponding Forum Profile Information ?
Then maybe start by taking a look at what entries are in that member's Forum Profile Information.

MrPhil:
All of these missing $txt[] elements are defined in Themes/default/languages/index.english.php. For example, there should be a section of code:

--- Code: ---// Escape any single quotes in here twice.. 'it\'s' -> 'it\\\'s'.
$txt[279] = 'Posted by';

$txt[287] = 'Smiley';
$txt[288] = 'Angry';
$txt[289] = 'Cheesy';
$txt[290] = 'Laugh';
$txt[291] = 'Sad';
$txt[292] = 'Wink';
$txt[293] = 'Grin';
$txt[294] = 'Shocked';
$txt[295] = 'Cool';
$txt[296] = 'Huh';
$txt[450] = 'Roll Eyes';
$txt[451] = 'Tongue';
$txt[526] = 'Embarrassed';
$txt[527] = 'Lips sealed';
$txt[528] = 'Undecided';
$txt[529] = 'Kiss';
$txt[530] = 'Cry';

$txt[298] = 'Moderator';
$txt[299] = 'Moderators';

$txt[300] = 'Mark Topics as Read for this Board';
$txt[301] = 'Views';
$txt[302] = 'New';

$txt[303] = 'View all members';
$txt[305] = 'View';
$txt[307] = 'Email';

$txt[308] = 'Viewing Members';
$txt[309] = 'of';
$txt[310] = 'total members';
$txt[311] = 'to';
$txt[315] = 'Forgot your password?';

$txt[317] = 'Date';
--- End code ---
For example, the missing 295 element says 'Cool'.

No idea why it would be only for member number 12959. These concern the "smileys" set, so it's probably happening when someone tries to make a post (or PM?), and the editor with all the smiley buttons comes up. Maybe a spammer is repeatedly trying to send a message. Anyway, check your copy of the file for damage and compare it with a stock version (attached is version 1.1.12 -- there should be little or no difference from 1.1.16). If you had installed mods that changed this file, it might have some additional entries. Possibly your file was corrupted by a hack attempt, but if the date on it was still quite old, more likely your host had a filesystem problem that resulted in the corruption of (at least) this file.

What mods do you have installed, and are you using standard English or UTF-8 English language?

irmurray:
Hi again,

I checked the index.english.php against my own (which had no recent changes) and they seem to be the same.

The errors do not all relate to the same "U=" number, though they come in blocks ... lots with one number, then a block with another number and so on. If "U=" member number, then my member numbers are all less than 2000 - I have no member 12959 for instance.

In case more of the errors would be useful, I have placed about 1300 lines of the error log at:
www.scotflightscenery.com/test/errors.txt [nofollow]

Overnight, my error log grew to over 500,000 messages ...

Thanks for your continuing help and suggestions.

Regards,


Iain.

MrPhil:
The problem is that your code isn't seeing various $txt[] elements that are defined in *.english.php files. Assuming someone didn't remove global $txt from your various files reporting the problem (Load.php, Subs.php, etc.), it sounds like the *.english.php files aren't being processed. Are you getting any error messages to that effect?

Is your character encoding still Latin-1 (ISO-8859-1) or have you changed to UTF-8? If UTF-8, do you have all the *.english-utf8.php language files installed? For English, I think they should be identical to the *.english.php files -- compare them. If you are running another language, there may also be UTF-8 and non-UTF-8 versions of the language files. I saw elsewhere where someone said their host had upgraded to MySQL 5 and that Latin-1 was no longer supported, which is a false claim. Could your host have done such a thing, and incorrectly updated your SMF to use UTF-8 without telling you? Bring up any page and check what its encoding is.

When you bring up pages on your forum, are you missing system labels text in some cases or all cases? The error messages say that the code is trying to use various words and phrases defined in *.english.php (or *.english-utf8.php, if UTF-8) and they were never defined. Does it matter which language is in use? This means that 1) you're in UTF-8 and you have no english-utf8 files (or other language) installed, or 2) your *.english.php (or other language) have been badly damaged, or 3) someone edited your files to either remove "global" statements that make $txt available, or the code to include/require such files in the first place.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version