Icy Phoenix

     
 


Post new topic  Reply to topic 
Page 2 of 2
Goto page Previous  1, 2
 
Reply with quote Download Post 
Post 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
 



 
Edited by moreteavicar, Fri 11 Apr, 2008 10:04: Edited for better clarity
moreteavicarSend private message  
Back to topPage bottom
Icy Phoenix is an open source project, you can show your appreciation and support future development by donating to the project.

Support us
 
Reply with quote Download Post 
Post Re: [BUG] Critical Error - Line : 1010 - File : Functions.ph 
 


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.

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?

Off Topic: Hey! mtv, it's about time you were concentrating on finishing your Thesis, not hanging around here.  
 
 
Last edited by Guest on Fri 11 Apr, 2008 13:39; edited 5 times in total 
 
Back to topPage bottom
Reply with quote Download Post 
Post Re: SOLVED - [BUG] Critical Error - Line : 1010 - File : Fun 
 
Edited because I was Drunk...
 




____________
Luca
SEARCH is the quickest way to get support.
Icy Phoenix ColorizeIt - CustomIcy - HON
 
Edited by Mighty Gorgon, Wed 16 Apr, 2008 00:39: Edited because I was Drunk...
Mighty GorgonSend private messageSend e-mail to userVisit poster's website  
Back to topPage bottom
Reply with quote Download Post 
Post Re: SOLVED - [BUG] Critical Error - Line : 1010 - File : Fun 
 
I think MG posted in the wrong thread, hey Lopalong ?
 



 
moreteavicarSend private message  
Back to topPage bottom
Reply with quote Download Post 
Post 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".

 
 
 
 
Back to topPage bottom
Reply with quote Download Post 
Post 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...  
 



 
moreteavicarSend private message  
Back to topPage bottom
Reply with quote Download Post 
Post Re: SOLVED - [BUG] Critical Error - Line : 1010 - File : Fun 
 
You are right... I have edited my post...
 




____________
Luca
SEARCH is the quickest way to get support.
Icy Phoenix ColorizeIt - CustomIcy - HON
 
Mighty GorgonSend private messageSend e-mail to userVisit poster's website  
Back to topPage bottom
Post new topic  Reply to topic  Page 2 of 2
Goto page Previous  1, 2


Display posts from previous:    

HideWas this topic useful?

Link this topic
URL
BBCode
HTML




 
Permissions List
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