phpgroupware-developers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Phpgroupware-developers] Error When deleting messages


From: Chris Weiss
Subject: Re: [Phpgroupware-developers] Error When deleting messages
Date: Fri, 22 Mar 2002 17:21:27 +0000

I believe that is correct.
$nav data['prev msg']['msgball']['uri'] should contain everything after the "?" 
in
the URL on the page being viewed so it alread does contain some variables as 
well
as some values.  Of course, looking at this, if $nav data['prev msg']['msgball']
['uri'] is empty, there will be a problem (the new URL will have "&&sort=").  I
don't know that part of the code well enough to know if it is possible for it to
ever be empty.

Ryan Sclanders (address@hidden) wrote*:
>
>Hi All
>
>At the risk of sounding stupid, on a fresh install of phpgroupware-0.9.14.RC2.
Should the email, Calender, notes work without editing the code in the 
individual
inc files.
>Example: when deleting messages, without editing any files, I get the following
error:
>
>===================================================================================
========================================
>Warning: Index referencing a non-array
in /home/httpd/html/phpgroupware/email/inc/class.boaction.inc.php on line 264
>
>Warning: Cannot add more header information - the header was already sent 
>(header
information may be added only before any output is generated from the script -
check for text or whitespace outside PHP tags, or calls to functions that output
text) in /home/httpd/html/phpgroupware/phpgwapi/inc/class.phpgw.inc.php on line 
138
>
>===================================================================================
==========================================
>
>If I go look at the original class.boaction.inc.php file (On line 264) it looks
like this:
>
>
>                                // ----  "Go To Previous Message" Handling  
> -----
>                                if ($nav data['prev msg'] != $not set)
>                                {
>                                        $this->redirect to = $GLOBALS['phpgw']-
>link(
>                                                '/index.php',
>                                                 
> 'menuaction=email.uimessage.messag
e'
>                                                .'&'.$nav data['prev msg']
['msgball']['uri']
>                                                
> .'&sort='.$GLOBALS['phpgw']->msg-
>get arg value('sort')
>                                                
> .'&order='.$GLOBALS['phpgw']->msg-
>get arg value('order')
>                                                
> .'&start='.$GLOBALS['phpgw']->msg-
>get arg value('start'));
>
>Two lines in particular being : if ($nav data['prev msg'] != $not set) and
>                                            .'&'.$nav data['prev 
> msg']['msgball']
['uri']
>
>Is there not suposed to some variable behind .'& as the later lines have?
>But if I edit the 'if' line to look like this, it works:  if ($nav data['prev
msg'] == $not set)
>
>Can anyone help with this as I'm sure I am doing something drastically wrong 
>and
somehow (Luckily) getting things to work
>
>Thanks
>Ryan
>
>
>
>
>
>




reply via email to

[Prev in Thread] Current Thread [Next in Thread]