Registrations to Open-AudIT forums are now closed. To ask any new questions please visit Opmantek Community Questions.

Open-AudIT

What's on your network?
It is currently Thu Mar 28, 2024 10:31 pm

All times are UTC + 10 hours




Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 8 posts ] 
Author Message
 Post subject: [fixed] List problems
PostPosted: Sat Aug 19, 2006 4:21 am 
Offline
Newbie

Joined: Thu Aug 17, 2006 11:27 pm
Posts: 20
Location: Montreal
When I'm trying to list something like all my audited system ... all I have is a page with only lines saying undefined index or undefined variable

Example :
[code]
Notice: Undefined index: height in c:\easyphp1-8\www\openaudit\trunk\list.php on line 188
Notice: Undefined variable: headline_1 in c:\easyphp1-8\www\openaudit\trunk\list.php on line 189[/code]

I checked the code to find the info is now in $query_array instead of $_REQUEST


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Sat Aug 19, 2006 4:39 am 
Yep, this will happen if your php.ini is set to report all errors and warnings. I hope to have all the php warnings gone by the end of the weekend.


Top
  
Reply with quote  
 Post subject:
PostPosted: Sat Aug 19, 2006 5:17 am 
Offline
Moderator

Joined: Sun Aug 06, 2006 1:13 am
Posts: 362
Location: Germany
I try to reproduce the errrors, but I can't. At my php.ini I configured "error_reporting = E_ALL & E_STRICT". Is there anything else?

kind regards
matze


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Sat Aug 19, 2006 5:37 am 
Offline
Newbie

Joined: Thu Aug 17, 2006 11:27 pm
Posts: 20
Location: Montreal
I was in the submenu All Audited Systems from the Queries menu ...
Here's a screenshot of what I see

[url=http://img143.imageshack.us/my.php?image=openauditbugue5.jpg][img]http://img143.imageshack.us/img143/2810/openauditbugue5.th.jpg[/img][/url]


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Sat Aug 19, 2006 5:50 am 
matze, try E_ALL | E_STRICT

The problem is that your code checks to see if a var is eqaul to "" rather than using isset to see if a variable exists. PHP gives a warning for this.


Top
  
Reply with quote  
 Post subject:
PostPosted: Sat Aug 19, 2006 6:07 am 
Offline
Moderator

Joined: Sun Aug 06, 2006 1:13 am
Posts: 362
Location: Germany
I see it and work at this time on it.


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Sat Aug 19, 2006 7:06 am 
Offline
Moderator

Joined: Sun Aug 06, 2006 1:13 am
Posts: 362
Location: Germany
I've found many errors and had uploaded it to svn. Could you test the code?


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Mon Aug 21, 2006 10:59 pm 
Offline
Newbie

Joined: Thu Aug 17, 2006 11:27 pm
Posts: 20
Location: Montreal
It seems to work fine for me !
thx guys


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 8 posts ] 

All times are UTC + 10 hours


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group