Posted July 22, 200717 yr On my vBulletin forum I have installed some custom skins, but when I try and edit the CSS settings to change the path to images and such, i press Save, but then I get the error message: Updating Style Information for '' and child styles... * ... Fatal error: Invalid styleid specified in /includes/adminfunctions_template.php on line 318 Why does this happen and if it can be fixed, how? Thanks
July 23, 200717 yr post that section of the php file. post some lines before and after pls. it's been a while since i've done anything with php, but i'll take a look. i dunno anything about vbulletin tho. :happysad:
July 24, 200717 yr Author OK, I found it: { $style = $vbulletin->db->query_first(" SELECT styleid, title, parentlist FROM " . TABLE_PREFIX . "style WHERE styleid = $styleid "); if (empty($style)) { trigger_error('Invalid styleid specified', E_USER_ERROR); } } else { $style['parentlist'] = $parentids; } The E_USER_ERROR bit is line 318