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

Submitter:  Marco Eller <jackoneil>
Submitted:  Fri 18 Jan 2008 07:18:10 AM UTC
   
 
Category:  bookmarks Item Group:  0.9.16.012
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>
Group 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>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

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
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

     

    Follow 4 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2010-03-06 skwashd Assigned toskwashd None
    2008-02-29 Caeies Assigned toNone skwashd
    2008-01-18 jackoneil Attached File- Added class.ui.inc.php, #14824
        Carbon-Copy- Added jackoneil

    Back to the top

    Powered by Savane 3.13-cf05.
    Corresponding source code