[BUG] Critical Error - Line : 1010 - File : Functions.php »  Show posts from    to     

Icy Phoenix


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



moreteavicar [ Wed 09 Apr, 2008 13:43 ]
Post subject: Re: [BUG] Critical Error - Line : 1010 - File : Functions.ph
Well, I'm not convinced it is a bug, because if you uninstall a theme through XS styles, it checks that the theme you are unistalling is not set as the default theme:

Uninstalling styles and Default Style settings

If you uninstall themes in ACP XS styles, it checks that the selected theme to uninstall is not set to board config, or else display an error message. The relevant lines are in adm/xs_uninstall.php:

Code: [Hide] [Select]

$remove_id = intval($_GET['remove']);
if($board_config['default_style'] == $remove_id)
{
xs_error(str_replace('{URL}', append_sid('xs_styles.' . $phpEx), $lang['xs_uninstall_default']) . '<br /><br />' . $lang['xs_uninstall_back']);
}


If an error message is not displayed, then there is a possible problem with xs_error() not being included, however, I cannot see why this is the case - the function is defined in xs_include.php, and that file is included at the top of xs_uninstall.php, and more to the point, if that function didn't exist, then you would get an error for a call to an undefined function.

Another possibility might be suggested that the variables are not correctly parsed to the function, but if that was the case, a blank error message would be displayed, so there would still be something to stop you removing a theme defined as the site default - so far this has always worked for me.

However, if a theme is removed by deleting it from the themes directory, or else renaming the folder, then the xs styles uninstall script will not have had any chance of being executed, and thus it would be possible to remove a theme that was defined as a default style. In this final scenario, the bug is definitely the user ;)


Lopalong [ Wed 09 Apr, 2008 21:59 ]
Post subject: Re: [BUG] Critical Error - Line : 1010 - File : Functions.ph
8)

Thanks for your time and effort in helping to resolve this, but as I'm only a novice to IP and the way the code is laid out, you lost me a few times. :P

So the end result to fix, or avoid this error (In layman's terms) appears to be (for whatever reason the style is missing?):

ACP > Site >

Default Style: "Change This"

Override user style: (N)

Clear cache's, optimise the Database and then use Override user style: (Y) ONLY if you need to.

And Note: Setting (Y) is not recommended if you are using IP to create / modify or are re-naming themes etc.


Is that too short? :P

Off Topic: Hey! mtv, it's about time you were concentrating on finishing your Thesis, not hanging around here. :mricy:


Mighty Gorgon [ Wed 09 Apr, 2008 23:34 ]
Post subject: Re: SOLVED - [BUG] Critical Error - Line : 1010 - File : Fun
Edited because I was Drunk...


moreteavicar [ Fri 11 Apr, 2008 11:08 ]
Post subject: Re: SOLVED - [BUG] Critical Error - Line : 1010 - File : Fun
I think MG posted in the wrong thread, hey Lopalong ? ;)


Lopalong [ Fri 11 Apr, 2008 13:17 ]
Post subject: Re: SOLVED - [BUG] Critical Error - Line : 1010 - File : Fun
moreteavicar wrote: [View Post]
I think MG posted in the wrong thread, hey Lopalong ? ;)


Don't know? But there is a certain influence about his presence in a thread. Maybe it's because the "Hand that wields the sword, also rocks the cradle".

:mryellow:


moreteavicar [ Tue 15 Apr, 2008 20:54 ]
Post subject: Re: SOLVED - [BUG] Critical Error - Line : 1010 - File : Fun
I think maybe a little too much vino rosso caused him to wield the sword in an unsteady manner... :mrgreen:


Mighty Gorgon [ Wed 16 Apr, 2008 00:39 ]
Post subject: Re: SOLVED - [BUG] Critical Error - Line : 1010 - File : Fun
You are right... I have edited my post... :P




Powered by Icy Phoenix