Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 0.9.3

Bug #9820 Unsupported operand types
Submitted: 2007-01-13 19:32 UTC
From: alex at alexchamberlain dot co dot uk Assigned: wiesemann
Status: Closed Package: Structures_DataGrid (version 0.8.0)
PHP Version: 4.4.4 OS: Linux
Roadmaps: (Not assigned)    
Subscription  


 [2007-01-13 19:32 UTC] alex at alexchamberlain dot co dot uk (Alex Chamberlain)
Description: ------------ Fatal error: Unsupported operand types in /home/sites/alxcart.co.uk/public_html/include/PEAR/Structures/DataGrid/Renderer.php on line 499 Involves ? and :

Comments

 [2007-01-13 19:59 UTC] wiesemann (Mark Wiesemann)
The ? and the : are not the problem here. Something must have went wrong with the variables used in this line of code. Please show us your code that results in the error message. If you have more than a few lines, please use http://www.phpfi.com and just give us the link instead of putting all the code into the bug tracker. Thanks!
 [2007-01-13 20:05 UTC] alex at alexchamberlain dot co dot uk
 [2007-01-13 20:26 UTC] wiesemann (Mark Wiesemann)
This seems to be both a bug and your fault. ;-) The bug is that the error returned by the internal fetchDataSource() call is not returned--you can't test for it. Your fault seems to be that either your DSN is wrong (unlikely, because this error should be returned) or your query fails. Anyway, I have added the missing error check (and return statement) to the CVS version. I think we should make a bugfix release soon.