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


Goto page Previous  1, 2

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: [Download] [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 ;)

Profile PM  
Inactive User
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:

Last edited by Guest on Fri 11 Apr, 2008 13:39; edited 5 times in total
Subject: Re: SOLVED - [BUG] Critical Error - Line : 1010 - File : Fun
Edited because I was Drunk...

Subject: Re: SOLVED - [BUG] Critical Error - Line : 1010 - File : Fun
I think MG posted in the wrong thread, hey Lopalong ? ;)

Profile PM  
Inactive User
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:

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:

Profile PM  
Subject: Re: SOLVED - [BUG] Critical Error - Line : 1010 - File : Fun
You are right... I have edited my post... :P

Goto page Previous  1, 2

Page 2 of 2


  
You cannot post new topics
You cannot reply to topics
You cannot edit your posts
You cannot delete your posts
You cannot vote in polls
You cannot attach files
You can download files
You cannot post calendar events

   

This is a "Lo-Fi" version of our main content. To view the full version with more information, formatting and images, please click here.

Powered by Icy Phoenix based on phpBB
Generation Time: 0.0997s (PHP: 19% SQL: 81%)
SQL queries: 13 - Debug Off - GZIP Enabled