Thread tagged as: Error, Addons, Field-Types

Vimeo Fieldtype Error

Just a heads up really…I've been working on a site locally and when I upgraded to Perch 2.5.4 I started to see an error on a page that included a Vimeo fieldtype (v1.1) that wasn't there before.

The error shown by the diagnostic was as follows:


    [type] => 2
    [message] => Cannot modify header information - headers already sent by (output started at C:\wamp\www\SITEDOMAIN\office\addons\fieldtypes\vimeo\vimeo.class.php:228)
    [file] => C:\wamp\www\SITEDOMAIN\office\core\inc\top.php
    [line] => 14

I've managed to remove the error by commenting out lines 227 and 228 from vimeo.class.php and everything seems to be working fine.

$out['rating']      = $item['stats_number_of_likes'];
$out['views']       = $item['stats_number_of_plays'];

Really just wanted to make you aware of the error and the possible fix to it (I'm sure there is probably a better solution than just commenting out or deleting those lines).

Iain Fergus

Iain Fergus 0 points

  • 7 years ago
Drew McLellan

Drew McLellan 2638 points
Perch Support

That's very strange, as those lines are obviously not causing headers to be sent.

If you're not using ratings or views then you should be ok.