bugphpGroupWare - Bugs: bug #22043, Warning: Invalid argument supplied...

 
 

You are not allowed to post comments on this tracker with your current authentification level.

bug #22043: Warning: Invalid argument supplied for foreach() in .../phpgroupware/bookmarks/inc/class.ui.inc.php on line 861

Submitted by:  Marco Eller <jackoneil>
Submitted on:  Fri 18 Jan 2008 07:18:10 AM UTC  
 
Item Group: 0.9.16.012Category: bookmarks
Severity: 3 - NormalPriority: 5 - Normal
Status: NonePrivacy: Public
Assigned to: NoneOpen/Closed: Open
Component Version: ZIPOperating System: Other
Reproducibility: Every TimePlanned Release: None
Fixed Release: 

Fri 29 Feb 2008 05:52:51 PM UTC, comment #1:

Hi Marco,

Thanks for the report. You're right about the problem, but you shouldn't display php errors on screen, log them is better in production environment.

Anyway, can you be more explicit in how to reproduce this ? I guess that you're using the old app bookmarks, so what you're seeing is in that app. IIRC bookmarks is not well supported in last branches, So we will look at your 'patch' and see if we can integrate it.

Regards.

Caeies

Caeies <Caeies>
Project Administrator
Fri 18 Jan 2008 07:18:10 AM UTC, original submission:

If you create a category in which you havn't put in a bookmark, you'll get the following error message 2 to 3 times in the tree view:

Warning: Invalid argument supplied for foreach() in .../htdocs/phpgroupware/bookmarks/inc/class.ui.inc.php on line 861
Warning: Invalid argument supplied for foreach() in .../htdocs/phpgroupware/bookmarks/inc/class.ui.inc.php on line 861
Warning: Invalid argument supplied for foreach() in .../htdocs/phpgroupware/bookmarks/inc/class.ui.inc.php on line 861

Solving problem:
wrapping this foreach- in an if-statement

Marco Eller <jackoneil>

 

Attached Files
file #14824:  class.ui.inc.php added by jackoneil (38kB - application/octet-stream - file with solved problem)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by skwashd (Updated the item)
  • -unavailable- added by Caeies (Posted a comment)
  • -unavailable- added by jackoneil (Submitted the item)
  • -unavailable- added by jackoneil
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 4 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Sat 06 Mar 2010 02:19:06 AM UTCskwashdAssigned toskwashd=>None
    Fri 29 Feb 2008 05:52:51 PM UTCCaeiesAssigned toNone=>skwashd
    Fri 18 Jan 2008 07:18:11 AM UTCjackoneilAttached File-=>Added class.ui.inc.php, #14824
      Carbon-Copy-=>Added jackoneil

    Back to the top


    Powered by Savane 3.1-cleanup