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

 
 

You are not allowed to post comments on this tracker with your current authentication 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.012 Category:  bookmarks
Severity:  3 - Normal Priority:  5 - Normal
Status:  None Privacy:  Public
Assigned to:  None Open/Closed:  Open
Component Version:  ZIP Operating System:  Other
Reproducibility:  Every Time Planned 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 (38KiB - 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
  • -email is unavailable- added by skwashd (Updated the item)
  • -email is unavailable- added by Caeies (Posted a comment)
  • -email is unavailable- added by jackoneil (Submitted the item)
  • -email is unavailable- added by jackoneil
  •  

    Do you think this task is very important?
    If so, you can 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
    03/06/2010 skwashd Assigned toskwashd => None
    02/29/2008 Caeies Assigned toNone => skwashd
    01/18/2008 jackoneil Attached File- => Added class.ui.inc.php, #14824
        Carbon-Copy- => Added jackoneil

    Back to the top


    Powered by Savane 3.3