https://www.icyphoenix.com/viewtopic.php?f=35&t=4009&p=27264#p27264
-----------------------------------
Lopalong
Sun 06 Apr, 2008 04:51

[BUG] Critical Error - Line : 1010 - File : Functions.php
-----------------------------------
Critical Error 

Could not get theme data for themes_id [32]

DEBUG MODE

Line : 1010
File : functions.php

I've read everything here that pertains to the problem (After sifting through such useless titles as "Locked Out" "Big Errors" :( and nothing suggested works to fix the problem.

Something as simple as "Disabling the Site" - logging out - clear cache and cookies, and logging back in created this error message in IE7, FF and Opera - with the /cache cleared, and all browser cookies and caches cleared.

I've had this before, and I thought it was me, ;) and the only way I could get it back then was to edit the DB and change one of the theme_id's to the number it was looking for. :(

Here's the current dump for ip_themes that returns the error.

[code linenumbers=false]DROP TABLE IF EXISTS `ip_themes`;
CREATE TABLE `ip_themes` (
  `themes_id` mediumint(8) unsigned NOT NULL auto_increment,
  `template_name` varchar(30) collate latin1_general_ci NOT NULL default '',
  `style_name` varchar(30) collate latin1_general_ci NOT NULL default '',
  `head_stylesheet` varchar(100) collate latin1_general_ci default NULL,
  `body_background` varchar(100) collate latin1_general_ci default NULL,
  `body_bgcolor` varchar(6) collate latin1_general_ci default NULL,
  `body_text` varchar(6) collate latin1_general_ci default NULL,
  `body_link` varchar(6) collate latin1_general_ci default NULL,
  `body_vlink` varchar(6) collate latin1_general_ci default NULL,
  `body_alink` varchar(6) collate latin1_general_ci default NULL,
  `body_hlink` varchar(6) collate latin1_general_ci default NULL,
  `tr_color1` varchar(6) collate latin1_general_ci default NULL,
  `tr_color2` varchar(6) collate latin1_general_ci default NULL,
  `tr_color3` varchar(6) collate latin1_general_ci default NULL,
  `tr_class1` varchar(25) collate latin1_general_ci default NULL,
  `tr_class2` varchar(25) collate latin1_general_ci default NULL,
  `tr_class3` varchar(25) collate latin1_general_ci default NULL,
  `th_color1` varchar(6) collate latin1_general_ci default NULL,
  `th_color2` varchar(6) collate latin1_general_ci default NULL,
  `th_color3` varchar(6) collate latin1_general_ci default NULL,
  `th_class1` varchar(25) collate latin1_general_ci default NULL,
  `th_class2` varchar(25) collate latin1_general_ci default NULL,
  `th_class3` varchar(25) collate latin1_general_ci default NULL,
  `td_color1` varchar(6) collate latin1_general_ci default NULL,
  `td_color2` varchar(6) collate latin1_general_ci default NULL,
  `td_color3` varchar(6) collate latin1_general_ci default NULL,
  `td_class1` varchar(25) collate latin1_general_ci default NULL,
  `td_class2` varchar(25) collate latin1_general_ci default NULL,
  `td_class3` varchar(25) collate latin1_general_ci default NULL,
  `fontface1` varchar(50) collate latin1_general_ci default NULL,
  `fontface2` varchar(50) collate latin1_general_ci default NULL,
  `fontface3` varchar(50) collate latin1_general_ci default NULL,
  `fontsize1` tinyint(4) default NULL,
  `fontsize2` tinyint(4) default NULL,
  `fontsize3` tinyint(4) default NULL,
  `fontcolor1` varchar(6) collate latin1_general_ci default NULL,
  `fontcolor2` varchar(6) collate latin1_general_ci default NULL,
  `fontcolor3` varchar(6) collate latin1_general_ci default NULL,
  `span_class1` varchar(25) collate latin1_general_ci default NULL,
  `span_class2` varchar(25) collate latin1_general_ci default NULL,
  `span_class3` varchar(25) collate latin1_general_ci default NULL,
  `img_size_poll` smallint(5) unsigned default NULL,
  `img_size_privmsg` smallint(5) unsigned default NULL,
  `online_color` varchar(6) collate latin1_general_ci default NULL,
  `offline_color` varchar(6) collate latin1_general_ci default NULL,
  `hidden_color` varchar(6) collate latin1_general_ci default NULL,
  PRIMARY KEY  (`themes_id`)
) ENGINE=MyISAM  DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci AUTO_INCREMENT=32;

-- 
-- Dumping data for table `ip_themes`
-- 

INSERT INTO `ip_themes` (`themes_id`, `template_name`, `style_name`, `head_stylesheet`, `body_background`, `body_bgcolor`, `body_text`, `body_link`, `body_vlink`, `body_alink`, `body_hlink`, `tr_color1`, `tr_color2`, `tr_color3`, `tr_class1`, `tr_class2`, `tr_class3`, `th_color1`, `th_color2`, `th_color3`, `th_class1`, `th_class2`, `th_class3`, `td_color1`, `td_color2`, `td_color3`, `td_class1`, `td_class2`, `td_class3`, `fontface1`, `fontface2`, `fontface3`, `fontsize1`, `fontsize2`, `fontsize3`, `fontcolor1`, `fontcolor2`, `fontcolor3`, `span_class1`, `span_class2`, `span_class3`, `img_size_poll`, `img_size_privmsg`, `online_color`, `offline_color`, `hidden_color`) VALUES 
(14, 'mg_themes', 'Icy Phoenix', 'style_ice.css', 'ice', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', 'row1', 'row2', 'row3', '', '', '', 10, 11, 12, '', '22BB33', 'DD2222', '', '', '', 0, 0, NULL, NULL, NULL),
(30, 'vista', 'Crystal', 'style_crystal.css', 'crystal', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', 'row1', 'row2', 'row3', '', '', '', 10, 11, 12, '', '22BB33', 'DD2222', '', '', '', 0, 0, NULL, NULL, NULL);[/code]

If I change this - (30, 'vista', 'Crystal', 'style_crystal.css', 'crystal' to - (32 Then everything goes back to normal. :)

Q. Where is IP getting the information from for themes_id [32] when it doesn't exist in the Db, and all caches / cookies etc, etc, have been cleared ??


