Search found 17 matches

by bobbitt
Mon Jun 14, 2010 12:22 pm
Forum: Help & Support for DHTML Menu Version 5+
Topic: Cannot modify header information - headers already sent
Replies: 15
Views: 15674

Re: Cannot modify header information - headers already sent

Thanks Andy... I tried for literally hours to juggle things around, and no combo I found would work, so I'm satisfied with this. If the problem starts to recur I can take another look... or just increase the PHP buffer. ;)


Cheers
Mike
by bobbitt
Tue Jun 08, 2010 8:30 pm
Forum: Help & Support for DHTML Menu Version 5+
Topic: Cannot modify header information - headers already sent
Replies: 15
Views: 15674

Re: Cannot modify header information - headers already sent

Andy,

Good news... I finally solved this problem. In mm_phpmenu.php, there are 2 flush() commands... they were clearing the output buffer and preventing any further changes to the header. As soon as I commented out those 2 lines, the warning went away. I am now a happy camper.


Cheers
Mike
by bobbitt
Mon Feb 08, 2010 3:15 pm
Forum: Help & Support for DHTML Menu Version 5+
Topic: Cannot modify header information - headers already sent
Replies: 15
Views: 15674

Re: Cannot modify header information - headers already sent

Wow, thanks! Here's where I inserted the call... it's close to line 175:

// Output any remaining HTML headers. (from mods, maybe?)
echo $context['html_headers'];

echo '
</head>
<body>';

// MIKE - Show menu bar
include_once "$include_dir/menu/index.php";

}


I'd be happy to run tests if there ...
by bobbitt
Mon Feb 08, 2010 2:03 pm
Forum: Help & Support for DHTML Menu Version 5+
Topic: Cannot modify header information - headers already sent
Replies: 15
Views: 15674

Re: Cannot modify header information - headers already sent

Thanks Andy. It's a tricky problem because the menu alone won't generate the error, and the rest of my board without the menu won't generate the error. The moment I combine them, every pageload generates the error, so there's some interaction going on here.

My forums are SMF 2.0 RC2, and I've added ...
by bobbitt
Sun Feb 07, 2010 11:08 pm
Forum: Help & Support for DHTML Menu Version 5+
Topic: Cannot modify header information - headers already sent
Replies: 15
Views: 15674

Re: Cannot modify header information - headers already sent

Hi All,

I'm now at 5.830 and still seeing the same problem. If I don't manually clean out the error logs on my forums, they grow without bound because of the header already sent messages. As a result, it's impossible to use the error logs to isolate any "real" problems. The problem is also still ...
by bobbitt
Sun May 10, 2009 2:52 am
Forum: Help & Support for DHTML Menu Version 5+
Topic: Cannot modify header information - headers already sent
Replies: 15
Views: 15674

Re: Cannot modify header information - headers already sent

A quick follow-up... I wish I had a solution to report, but unfortunately not yet. In fact I've been able to conclusively determine that the menu is the central to the issue. I recently discovered that my links program isn't working, for the same reason. When I click a link, I'm not redirected, and ...
by bobbitt
Fri Apr 10, 2009 2:55 pm
Forum: Help & Support for DHTML Menu Version 5+
Topic: Cannot modify header information - headers already sent
Replies: 15
Views: 15674

Re: Cannot modify header information - headers already sent

Thanks Dave, that gives me an idea where to start looking! If I figure it out I'll post it here.


Cheers
Mike
by bobbitt
Fri Apr 03, 2009 3:04 pm
Forum: Help & Support for DHTML Menu Version 5+
Topic: Cannot modify header information - headers already sent
Replies: 15
Views: 15674

Re: Cannot modify header information - headers already sent

Hi Ruth,

Thanks... the site in question is http://forums.army.ca/. The menu works fine so there's not much to see there, but in my erorrlog, every pave visit shows the "headers alraedy sent" message. Just wondering if the menu script tries to output any HTTP headers... if so I've probably already ...
by bobbitt
Fri Apr 03, 2009 2:11 am
Forum: Help & Support for DHTML Menu Version 5+
Topic: Cannot modify header information - headers already sent
Replies: 15
Views: 15674

Cannot modify header information - headers already sent

Hi all,

I'm having a *small* problem with the menu... with every page view, I now get a "Cannot modify header information - headers already sent" warning. It doesn't affect the functionality, and isn't visible to my users, but it's filling up my error log pretty quickly.

I checked but could not ...
by bobbitt
Fri Apr 03, 2009 1:36 am
Forum: Help & Support for DHTML Menu Version 5+
Topic: Error: _menuCloseDelay is not defined
Replies: 10
Views: 29332

Re: Error: _menuCloseDelay is not defined

As a followup, I made $menuVars global in the PHP page that contains the menu bits, and that solved the problem. No need to add the raw HTML any more.

Thanks!
by bobbitt
Wed Apr 01, 2009 3:48 am
Forum: Help & Support for DHTML Menu Version 5+
Topic: Error: _menuCloseDelay is not defined
Replies: 10
Views: 29332

Re: Error: _menuCloseDelay is not defined

Heheh, you're right again... but in order to get it to work I had to manually add the js code Ruth noted above. That makes it work for forum pages, but note that non-forum pages now have these definitions twice. So something is blocking them from appearing "naturally" on forums pages. The only ...
by bobbitt
Tue Mar 31, 2009 8:50 pm
Forum: Help & Support for DHTML Menu Version 5+
Topic: Error: _menuCloseDelay is not defined
Replies: 10
Views: 29332

Re: Error: _menuCloseDelay is not defined

Thanks for your help Ruth, I'll do that!

Cheers
Mike
by bobbitt
Tue Mar 31, 2009 7:56 pm
Forum: Help & Support for DHTML Menu Version 5+
Topic: Error: _menuCloseDelay is not defined
Replies: 10
Views: 29332

Re: Error: _menuCloseDelay is not defined

Thanks Ruth, you're definitely on to it there!

I'm using the PHP based menu (under the extras dir) so the items you noted above are defined in mm_phpconfig.php for me:

$menuVars=array();
$menuVars["menuCloseDelay"]=500;
$menuVars["menuOpenDelay"]=150;
$menuVars["subOffsetTop"]=0;
$menuVars ...
by bobbitt
Tue Mar 31, 2009 4:26 pm
Forum: Help & Support for DHTML Menu Version 5+
Topic: Error: _menuCloseDelay is not defined
Replies: 10
Views: 29332

Re: Error: _menuCloseDelay is not defined

Hi John,

That's true... I have the old menu still in place for regular users, and the new only just for site admins, but that makes it pretty hard to test. :) So Now if you pass in "newmenu=1" (E.G. http://forums.army.ca/?newmenu=1) then you should be able to see the new menu in action ...
by bobbitt
Sun Mar 29, 2009 10:41 pm
Forum: Help & Support for DHTML Menu Version 5+
Topic: Error: _menuCloseDelay is not defined
Replies: 10
Views: 29332

Error: _menuCloseDelay is not defined

Hi all,

Been working with the menu for a while now getting it ready to go up on my site. Works great with one small exception... when I include the menu on a page from my forums (Simple Machines) the drop-downs don't work. They work fine on non-forum pages. I'm using the PHP based menu (non-final ...
by bobbitt
Thu Mar 12, 2009 8:28 pm
Forum: Help & Support for DHTML Menu Version 5+
Topic: Semicolons in URLs
Replies: 2
Views: 3156

Re: Semicolons in URLs

Good to know, thanks Andy!
by bobbitt
Thu Mar 12, 2009 4:55 pm
Forum: Help & Support for DHTML Menu Version 5+
Topic: Semicolons in URLs
Replies: 2
Views: 3156

Semicolons in URLs

Hi all,

I've hit a minor snag with the DHTML menu. Some of the URLs I want to use have a ; in them, which of course causes the menu to think a new attribute is being passed in. I found the solution and wanted to post in in case others are also struggling with this. Simply replace the ; with %3B in ...