?
avatar BarendGoussard
BarendGoussard
6 Sep 2017

Hi. I have 2 websites, 100% identical, except for configuration.php file, and of course the physical server.
On original site, my Joomla extension module RSS Marquee (Gopiplus) works 100%, but not on my new site.
Original Site: cybersec.group - RSS works Fine
New Site: cybersec.co.nz - RSS does not get feed

Expected result

Feed RSS normaly

Actual result

Undefined variable: http_response_header in home/user/path/modules/mod_rss_marquee/helper.php on line 32

System information (as much as possible)

Joomla 3.7.5
RSS Marquee 3.6
Server PHP version 4.6.6

Additional comments

  1. Ther expected RSS feed is located underneath Image Slider.
    CODE FOR DOCUMENT POINTED OUT IN ERROR= PHP

`<?php
/**

// No direct access
defined('_JEXEC') or die;

class modMarquee
{
public static function getMarquee($args)
{
$rss = $args["marquee_rss"];
$items = array();
$j = 0;
$MarqueeTitle = "";
$MarqueeLink = "";

	if($rss <> "")
	{
		$xml = "";
		$content = @file_get_contents($rss);
		if (strpos($http_response_header[0], "200")) 
		{
			$f = fopen( $rss, 'r' );
			while( $data = fread( $f, 4096 ) ) { $xml .= $data; }
			fclose( $f );
			preg_match_all( "/\<item\>(.*?)\<\/item\>/s", $xml, $itemblocks );
			
			if ( ! empty($itemblocks) ) 
			{
				foreach( $itemblocks[1] as $block )
				{
					preg_match_all( "/\<title\>(.*?)\<\/title\>/",  $block, $title );
					preg_match_all( "/\<link\>(.*?)\<\/link\>/", $block, $link );
					
					$MarqueeTitle = $title[1][0];
					$MarqueeTitle = trim($MarqueeTitle);
					$MarqueeLink = $link[1][0];
					$MarqueeLink = trim($MarqueeLink);
			
					$items[$j] = new stdClass;
					$items[$j]->marque_title = $MarqueeTitle;
					$items[$j]->marque_link	= $MarqueeLink;
					$j = $j+1;
				}
			}
		}
		else
		{
			echo "Invalid or Broken rss link.";
		}
	}
	return $items;
}	

}
?>`

avatar BarendGoussard BarendGoussard - open - 6 Sep 2017
avatar joomla-cms-bot joomla-cms-bot - change - 6 Sep 2017
Labels Added: ?
avatar joomla-cms-bot joomla-cms-bot - labeled - 6 Sep 2017
avatar brianteeman
brianteeman - comment - 6 Sep 2017

As stated in the error message that you are seeing this is a bug in the module you are using. This module is not part of the core of joomla so please contact the author of the module directly or use the forum for support.

avatar brianteeman brianteeman - change - 6 Sep 2017
Status New Closed
Closed_Date 0000-00-00 00:00:00 2017-09-06 08:24:46
Closed_By brianteeman
avatar brianteeman brianteeman - close - 6 Sep 2017
avatar BarendGoussard
BarendGoussard - comment - 6 Sep 2017

Good day.

I did attempt to use different readers, all resulting either in the same,
or similar issues. I will attempt to contact the manufacturers of the
component. Thanks for the response

On Sep 6, 2017 10:25, "Brian Teeman" notifications@github.com wrote:

Closed #17886 #17886.


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
#17886 (comment), or mute
the thread
https://github.com/notifications/unsubscribe-auth/AeBbcqohvsr_AttgV7-b3m9Wm7ixSVG8ks5sflbvgaJpZM4PN76D
.

Add a Comment

Login with GitHub to post a comment