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

Recent

Welcome to TinyPortal. Please login or sign up.

Members
  • Total Members: 3,973
  • Latest: NonStop
Stats
  • Total Posts: 196,236
  • Total Topics: 21,353
  • Online today: 252
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 0
  • Guests: 216
  • Total: 216

how to fix this undefined index error

Started by darkangel, April 18, 2012, 05:04:14 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

darkangel

ok, Arantor at SMF came up with a fix for the mysql error that takes over the server error_log file:

Subs-Db-Mysql.php

found:
list ($values, $connection) = $db_callback;


added this directly after it:
    if (!is_resource($connection))
    db_fatal_error();



BUT now I got this page full of the same error over and over

[02-May-2012 09:58:08] PHP Warning:  Cannot modify header information - headers already sent by (output started at /home/xxx/public_html/attic/Sources/TPdlmanager.php:1864) in /home/xxx/public_html/attic/Sources/Errors.php on line 353


as well as many  of these in the admin section error log: this is with several members/themes

8: Undefined variable: settings
Apply Filter: Only show the errors from this file
File: /home/xxx/public_html/attic/Themes/default/TPsubs.template.php(114) : eval()'d code
Line: 47

IchBin

Sorry not much I can do for you. I have no idea why you need that additional code in your DB file that Arantor gave you. It's probably the cause of your header error but I don't know why.

The undefined error you have is because you are using a block that has the $settings variable in it, but it is not declared as a global.

darkangel

the code Arantor gave was for a multiplying error log file filled with mysql error that nobody seems to find the origin of---smf says it is not a bug, he says not a bug but many hosts, virtual and shared servers and all since 2.0 started, never before and he says that would stop the error. yup it stopped it alrighty but now these errors about TP

Thanks will try to hunt down naughty block

This website is proudly hosted on Crocweb Cloud Website Hosting.