Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"Cannot modify header information" when using iframe #5737

Closed
anonymous-matomo-user opened this issue Jul 25, 2008 · 4 comments
Closed

"Cannot modify header information" when using iframe #5737

anonymous-matomo-user opened this issue Jul 25, 2008 · 4 comments
Labels
Bug For errors / faults / flaws / inconsistencies etc.
Milestone

Comments

@anonymous-matomo-user
Copy link

If I insert an iframe like this:

```

```

I get this output (and error):

Evolution over the period

2 returning visits 2 actions by the returning visits 1 maximum actions by a returning visit 0 min 20 s total time spent by returning visits 2 times that a returning visit has bounced (left the site after one page)

Visits per visit duration
2- 4 min 0-30s 11-15 min 30-60s 6- 8 min 8-11 min 4- 6 min 15 min 1- 2 min
Visits per number of pages
1 page 6-7 pages 4 pages 15-20 pages 11-14 pages 3 pages 5 pages 2 pages 20
pages 8-10 pages

```
Warning: Cannot modify header information – headers already sent by (output started at /var/www/html/piwik/plugins/VisitFrequency/Controller.php:11) in /var/www/html/piwik/modules/View.php on line 87

Backtrace —>

  1. Piwik_ErrorHandler(2, Cannot modify header information – headers already sent by (output started at /var/www/html/piwik/plugins/VisitFrequency/Controller.php:11), /var/www/html/piwik/modules/View.php, 87, Array ())
  2. header(Content-Type: text/html; charset=utf-8) called at [/var/www/html/piwik/modules/View.php:87]
  3. Piwik_View→render() called at [/var/www/html/piwik/plugins/Widgetize/Controller.php:93]
  4. Piwik_Widgetize_Controller→iframe()
  5. call_user_func_array(Array (0 => Piwik_Widgetize_Controller Object ([] => Widgetize,[] => 2008-07-25,[] => Piwik_Date Object ([timestamp] => 1216936800)),1 => iframe), Array ()) called at [/var/www/html/piwik/modules/FrontController.php:150]
  6. Piwik_FrontController→dispatch() called at [/var/www/html/piwik/index.php:55]
    ```
@mattab
Copy link
Member

mattab commented Jul 28, 2008

See #5735

@anonymous-matomo-user
Copy link
Author

Replying to [Ticket 317 – systemaddict](ticket:317):

> If I insert an iframe like this:
>
> <iframe src=“http://domain.com/index.php?module=Widgetize&action=iframe&moduleToWidgetize=VisitFrequency&actionToWidgetize=index&idSite=1&period=day&date=today&showDataTableFooter=0&token_auth=XXXXX” width=“450” height=“200” scrolling=“auto” frameborder=“0” marginheight=“0” marginwidth="0"></iframe>

I’m getting the same error using the latest version from the trunk. This is still an issue and should be fixed, because this widgetize module is absolutely great.
The part “Evolution over the last 30 days” is printed before the actual <html><body> section!

@anonymous-matomo-user
Copy link
Author

Attachment: Error Message when Widgetizing VisitsSummary
[2008-07-30_1110.png](http://issues.piwik.org/attachments/5737/2008-07-30_1110.png)

@mattab
Copy link
Member

mattab commented Oct 29, 2008

Thanks for your report!
I finally fixed that bug. we were using dispatch() which was outputing the data, instead of fetchDispatch()..

available on SVN

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug For errors / faults / flaws / inconsistencies etc.
Projects
None yet
Development

No branches or pull requests

2 participants