News:

Wondering if this will always be free?  See why free is better.

Main Menu

Theme Error. Spamming my Error Log

Started by SleePy, December 10, 2005, 12:24:54 AM

Previous topic - Next topic

SleePy

ok i got this error that keeps creating tons and tons of errors in my error log.

the error is
Quote
8: Undefined index: theme_color
/home/mdccla2/public_html/forums/Themes/default/languages/index.english.php
5

by putting


    if ($options['theme_color'] == '') { $options['theme_color'] = 'blue';}



i thought that would stop it. cuss that is how the theme sets it up in its index.template.php


if(!$context['user']['is_guest'] && isset($_POST['options']['theme_color']))
{
   include_once($GLOBALS['sourcedir'] . '/Profile.php');
   makeThemeChanges($context['user']['id'], $settings['theme_id']);
   $options['theme_color'] = $_POST['options']['theme_color'];
}
elseif ($context['user']['is_guest'])
{
   if (isset($_POST['options']['theme_color']))
   {
      $_SESSION['theme_color'] = $_POST['options']['theme_color'];
      $options['theme_color'] = $_SESSION['theme_color'];
   }
   elseif (isset($_SESSION['theme_color']))
      $options['theme_color'] = $_SESSION['theme_color'];
}


but that does not fix it...
what can i do besides going into phpmyadmin and adding this into the smf_themes for every user ID... which is the only way. oddly this theme uses that instead of smf_members...
Jeremy D ~ Site Team / SMF Developer ~ GitHub Profile ~ Join us on IRC @ Libera.chat/#smf ~ Support the SMF Support team!

Advertisement: