By krzysiek on Monday, 14 September 2015
Replies 4
Likes 0
Views 1.4K
Votes 0
Event detail page > ical button > Save ical
produces:


Warning: Cannot modify header information - headers already sent by (output started at /(site)/plugins/jevents/jevjcomments/jevjcomments.php:2) in /(site)/components/com_jevents/views/icals/tmpl/export.php on line 19

Warning: Cannot modify header information - headers already sent by (output started at /(site)/plugins/jevents/jevjcomments/jevjcomments.php:2) in /(site)/components/com_jevents/views/icals/tmpl/export.php on line 21
(ical detail)



PHP Version : 5.4.4-14+deb7u11
MySQL Version : 5.1.49-3-log
Fix jQuery? : Yes
Load JEvents Bootstrap CSS? : No
Load JEvents Bootstrap JS? : Yes
Max Input Vars ? : 1000
Club code set? : Yes
Joomla : 3.4.4
component_com_jevents : 3.2.20
component_com_jevlocations : 3.2.16
component_com_jce : 2.5.7
module_mod_jevents_cal : 3.2.20
module_mod_jevents_categories : 3.0.7
module_mod_jevents_custom : 3.2.20
module_mod_jevents_dynamiclegend : 3.0.5
module_mod_jevents_filter : 3.2.20
module_mod_jevents_latest : 3.2.20
module_mod_jevents_legend : 3.2.20
module_mod_jevents_notify : 3.0.5
module_mod_jevents_switchview : 3.2.20
module_mod_jevlocations : 3.2.16
layout_iconic : 3.4.5
layout_smartphone : 3.0.10
plugin_content_jevents : 3.2.20
plugin_content_jevlocation_embed : 3.2.16
plugin_finder_jevents : 3.2.20 (not enabled)
plugin_jevents_jevcustomfields : 3.1.23
plugin_jevents_jevfiles : 3.0.14
plugin_jevents_jevjcomments : 3.1.2
plugin_jevents_jevlocations : 3.2.16
plugin_jevents_jevnotify : 3.0.14
plugin_search_eventsearch : 3.2.20
plugin_search_jevlocsearch : 3.2.16
Can you show me the first few lines of the file plugins/jevents/jevjcomments/jevjcomments.php on your server? It looks as though there may be some stray whitespace ???
·
Monday, 14 September 2015 17:40
·
0 Likes
·
0 Votes
·
0 Comments
·

<?php
// no direct access
defined( '_JEXEC' ) or die( 'Restricted access' );

jimport( 'joomla.plugin.plugin' );

// Lets load the language file
$lang = JFactory::getLanguage();
$lang->load("plg_jevjcomments", JPATH_ADMINISTRATOR);

class plgJEventsjevjcomments extends JPlugin
{


function onDisplayCustomFields(&$row){

//We set JEvents as default component to avoid breaking old installations
if( in_array('jevents',$this->params->get('whenenabled',array('jevents'))) )
{
·
Tuesday, 15 September 2015 00:00
·
0 Likes
·
0 Votes
·
0 Comments
·
there was an empty line at the beginning - I've removed it and now it works ok
·
Tuesday, 15 September 2015 00:03
·
0 Likes
·
0 Votes
·
0 Comments
·
Thanks for letting us know.
·
Tuesday, 15 September 2015 08:27
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post