Icy Phoenix

     
 


Post new topic  This topic is locked: you cannot edit posts or make replies. 
Page 1 of 1
 
 
Reply with quote Download Post 
Post SOLVED BOTH BUGS Just Another Bug Or Two 
 
Forget this bit, I have solved it, but the second part of the question still needs addressing.

Quote:
Hi there again just found this one when trying to access  the home page;

Quote:
You are not authorized to view this page.


This only happens on the home page, all other pages are acessable.


The second bug that as now appeared is at the top of every page and reads as follows;

Quote:
Warning: sprintf() [function.sprintf]: Too few arguments in /homepages/8/d69702653/htdocs/includes/page_header.php on line 1000


Hope these can help you with debugging, if I can help in any way let me know.

A test account as been created for anybody who wishes to have a look, username is Test and the password is Test.

Site is here http://www.steve-daggers.co.uk
 




____________
MY BRAIN HURTS
 
Last edited by Daggers on Tue 09 Jan, 2007 21:33; edited 2 times in total 
DaggersSend private messageVisit poster's website  
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: Just Another Bug Or Two 
 
Forget the authorisation error I have sorted that one out, I just needed to reset all my page permissions back to all, and then back to my prefered settings to clear the bug.
 




____________
MY BRAIN HURTS
 
DaggersSend private messageVisit poster's website  
Back to topPage bottom
Reply with quote Download Post 
Post Re: [Solved] Just Another Bug Or Two 
 
Put SOLVED on the subject of the first post .
 




____________
My 2 IP Forums:
ModMovil: Motorola, Nokia, SonyEricsson
 
tiolaluSend private messageVisit poster's website  
Back to topPage bottom
Reply with quote Download Post 
Post Re: Just Another Bug Or Two 
 
Only the first part of the question has been solved the bit regarding aurthorisation, the second part of the question still needs to be addressed.
 




____________
MY BRAIN HURTS
 
DaggersSend private messageVisit poster's website  
Back to topPage bottom
Reply with quote Download Post 
Post Re: Just Another Bug Or Two 
 
Quote:
Warning: sprintf() [function.sprintf]: Too few arguments in /homepages/8/d69702653/htdocs/includes/page_header.php on line 1000


Ok I have found what is causing this error and it is quite easy to rectify.

To prevent this error from appearing goto ACP - CrackerTracker - Settings - Check Password, go down to the option for "Password Validity" and deactivate this option, this stops the error message from being displayed at the top of the page above Page Header.
 




____________
MY BRAIN HURTS
 
DaggersSend private messageVisit poster's website  
Back to topPage bottom
Reply with quote Download Post 
Post Re: SOLVED BOTH BUGS Just Another Bug Or Two 
 
Daggers wrote: [View Post]
Quote:
Warning: sprintf() [function.sprintf]: Too few arguments in /homepages/8/d69702653/htdocs/includes/page_header.php on line 1000


Ok I have found what is causing this error and it is quite easy to rectify.

To prevent this error from appearing goto ACP - CrackerTracker - Settings - Check Password, go down to the option for "Password Validity" and deactivate this option, this stops the error message from being displayed at the top of the page above Page Header.

Mmmm... that is strange... you shouldn't get that error anyway...

This needs some more testing, because it could be a bug... I'll have a try tomorrow.

This is row 1000:
Code: [Download] [Hide] [Select]
            'L_MESSAGE_TEXT' => sprintf($lang['ctracker_info_pw_expired'], $ctracker_config->settings['pw_validity']),

and the error states that we are missing an argument...
 




____________
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
Reply with quote Download Post 
Post Re: SOLVED BOTH BUGS Just Another Bug Or Two 
 
In fact it is a bug... the lang var requires two arguments, while the page_header is just passing one to it...

I'm going to fix this.

Thanks!
 




____________
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
Reply with quote Download Post 
Post Re: SOLVED BOTH BUGS Just Another Bug Or Two 
 
Ok... the bug should be fixed with this:

OPEN includes/page_header.php
FIND
Code: [Download] [Hide] [Select]
            'L_MESSAGE_TEXT' => sprintf($lang['ctracker_info_pw_expired'], $ctracker_config->settings['pw_validity']),

REPLACE WITH
Code: [Download] [Hide] [Select]
            'L_MESSAGE_TEXT' => sprintf($lang['ctracker_info_pw_expired'], $ctracker_config->settings['pw_validity'], $userdata['user_id']),


Let me know if it works...
 




____________
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
Reply with quote Download Post 
Post Re: SOLVED BOTH BUGS Just Another Bug Or Two 
 
Thanks MG, that solved the problem the error has now disappeared from the top of the page header when I switch password checking back on, also the correct info box appears on portal body with the message;

The administrator has made adjustments so that a password may be valid only for 30 days. days. We recommend for safety reasons that you change your password now. (Profile)

Thats some more bugs fixed hooraah.
 




____________
MY BRAIN HURTS
 
DaggersSend private messageVisit poster's website  
Back to topPage bottom
Reply with quote Download Post 
Post Re: SOLVED BOTH BUGS Just Another Bug Or Two 
 
Daggers wrote: [View Post]
Thats some more bugs fixed hooraah.

Great!
 




____________
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  This topic is locked: you cannot edit posts or make replies.  Page 1 of 1
 


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


  

 

  cron