[4628]action=viewquery

Started by lucas-ruroken, February 12, 2011, 11:20:48 PM

Previous topic - Next topic

lucas-ruroken

I don't know If this is an error or not....

When I put in the browser (localhost url):

http://127.0.0.1/project/blog/?action=viewquery


Nothings appears (look at the image attached)... and the error log says:

Only show the error messages of this URL
http://127.0.0.1/project/blog/index.php?action=viewquery
Only show the errors with the same message
2: Invalid argument supplied for foreach()
Only show the errors from this file
File: C:/project/blog/Sources/ViewQuery.php
Line: 85


Regards
Adk Portal 3.1 is coming....

Design your universe!

Arantor

Needs $db_show_debug to be enabled in the first place, isn't there a test against it to ensure that that's set (and === true) since that's what triggers the log being stored in the first place.
Holder of controversial views, all of which my own.


JBlaze

Indeed, this action only gets called when $db_show_debug is set to true, and will show any queries that were run on the given pageload. Although, an empty check could be added to prevent the error like above.
Jason Clemons
Former Team Member 2009 - 2012

Arantor

empty isn't actually accurate. For it to display, bring db_show_debug into scope and check isset() && === true. It won't be logged unless that's the case (you can't just set it to 1 somewhere which will match !empty())
Holder of controversial views, all of which my own.


lucas-ruroken

Ok, I understand.

but I think It should not say any error.
Adk Portal 3.1 is coming....

Design your universe!

JBlaze

Jason Clemons
Former Team Member 2009 - 2012

lucas-ruroken

Adk Portal 3.1 is coming....

Design your universe!

emanuele

Solved in tracker, moving to fixed.


Take a peek at what I'm doing! ;D




Hai bisogno di supporto in Italiano?

Aiutateci ad aiutarvi: spiegate bene il vostro problema: no, "non funziona" non è una spiegazione!!
1) Cosa fai,
2) cosa ti aspetti,
3) cosa ottieni.

Advertisement: