TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

Members
Stats
  • Total Posts: 196,004
  • Total Topics: 21,330
  • Online today: 141
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 0
  • Guests: 86
  • Total: 86

8: Undefined index: align="middle"

Started by rossweb, July 13, 2009, 12:38:10 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

rossweb

(I've also posted this on the SMF board)

Interesting one this, my error log rapidly fills up with this error - no other ones - the actual error is:-
.....................................

" http://xxxxxxx.xxxxx/index.php?topic=495.0

8: Undefined index: align="middle"
File: /home/xxxxxxxxx/public_html/Sources/Subs.php
Line: 3617"
..........................................................

the "topic" number changes but the rest stays the same.

Yup, I've searched and found loads of "undefined index" posts but none that apply or point in a specific direction.

The interesting thing is that the text "align="middle"" does not appear on line 3617 in "subs.php" - in fact it doesn't appear anywhere in "subs.php", the only files it appears in are in some of the theme files, "smf_api_2.php", "sources/TPmodules.php" and "SSI.php" and is all to do with images.
Tried clearing log and "disableTemplateEval = 0 and 1", get the same in the error log both times.

As far as I can see it's not posing any problems with my site - it just fills up the error log very very quickly.

Using SMF 1.1.9 with CleanBlue theme.

Only mods installed are -
SMF 1.0.17 / 1.1.9 / 2.0 RC1 Update      V1.0
TinyPortal    V1.083 - NOTE:- Says TinyPortal v1.0 beta 4 at bottom of pages
Custom Profile Field Mod     V3.20

Mods which had been installed but are now uninstalled (using smf's uninstall)-
EmailValidator      V1.0
PM On Registration     V1.0.2

Any advice or suggestions (keep it clean please) appreciated.

Ross

Renegd98

Do you get this error when using the default theme?

IchBin

Do you get the error on every page in your forum. Meaning like, on the board index, topic index, and post index etc? If you do, please attach your index.template.php file. If not, try to narrow it down to which page you are seeing the error on. If you are only seeing the error on the page for viewing the topic, attach your display.template.php file from your theme.

rossweb

Renegd98 - No.. Tried "smf default", "classic yabb se", "babylon" with no errors appearing in the log.

IchBin - not on every page, only viewing a topic with CleanBlue theme - "display.template.php" attached.

Thanks
Ross

rossweb

OK, seem to have fixed it - problem seemed to be in generating buttons (cleanblue theme "display.template.php" starting at line 216, "// These are some cache image buttons we may want.". lines 217,218,219,220 all ended with "align="middle"", so I removed that portion - now there're no errors showing in the log, and no apparent change to the appearance of the page.
Hope this might help someone else.
Thanks for pointing me at the right file.
:)
Ross

This website is proudly hosted on Crocweb Cloud Website Hosting.