Keyword

Undefined variable error in 3.0

More
4 years 7 months ago #136201 by Sam
Sam created the topic: Undefined variable error in 3.0
Hi,
We are getting a
Notice: Undefined variable: feedItemLinkRedirect in /modules/mod_jw_srfr/helper.php on line 78 appearing for every post and the proper output below the errors.
How do we get rid of this error? does this module work in Joomla 3.27
Deleted the module and tried again, same problem.

thanks,
Sam

Please Log in or Create an account to join the conversation.

More
4 years 7 months ago #136237 by Lefteris
Lefteris replied the topic: Undefined variable error in 3.0
Hi,

This is just a notice. Go to global configuration and set error reporting to "Simple" or "None". In the meantime we will fix the notice for the next release.

IMPORTANT: Please search the forum before posting a question!

JoomlaWorks Support Team Member

---
JoomlaWorks
www.joomlaworks.net/

Please Log in or Create an account to join the conversation.

More
4 years 4 months ago #143109 by Paul
Paul replied the topic: Undefined variable error in 3.0
I have this same problem with ver. 3.3.35 I have changed the error_reporting variable to 'simple' and 'none' but the error messages are still appearing.

Please Log in or Create an account to join the conversation.

More
4 years 4 months ago #143119 by Lefteris
Lefteris replied the topic: Undefined variable error in 3.0
@Paul

Are you sure you are using this extension? There is no version 3.3.35 in Simple RSS Feed reader. Also try to clean the Joomla! cache.

IMPORTANT: Please search the forum before posting a question!

JoomlaWorks Support Team Member

---
JoomlaWorks
www.joomlaworks.net/

Please Log in or Create an account to join the conversation.

More
4 years 4 months ago - 4 years 4 months ago #143163 by Paul
Paul replied the topic: Undefined variable error in 3.0
3.3.35 was the Joomla version. I fixed the problem by making the following change;

The error indicated that both $feedItemLinkRedirect and $siteUrl were undefined variables.

In module mod_jw_srfr.php I added two parameters at the end the getFeeds call at line 63, they are underlined below.

getFeeds($srfrFeedsArray,$totalFeedItems,$perFeedItems,$feedTimeout,$feedItemDateFormat,$feedItemDescriptionWordlimit, $cacheLocation,$srfrCacheTime,$feedItemImageHandling,$feedItemImageResizeWidth,$feedItemLinkRedirect,$siteUrl);

And added the same parameters to function getFeeds() in helper.php at line 15, underlined below

function getFeeds($feedsArray,$totalFeedItems,$perFeedItems,$feedTimeout,$dateFormat,$wordLimit,$cacheLocation,$cacheTime, $imageHandling,$riWidth,$feedItemLinkRedirect,$siteUrl)

There are no error messages now.
Last edit: 4 years 4 months ago by Paul. Reason: correct word wrap

Please Log in or Create an account to join the conversation.

More
4 years 4 months ago #143177 by Lefteris
Lefteris replied the topic: Undefined variable error in 3.0
Hacking the extension is not recommended. I suggest to install the latest version of the extension from www.joomlaworks.net/extensions/free/simple-rss-feed-reader . After that ensure that you have setup the module correctly and you have entered at least one valid feed URL.

IMPORTANT: Please search the forum before posting a question!

JoomlaWorks Support Team Member

---
JoomlaWorks
www.joomlaworks.net/

Please Log in or Create an account to join the conversation.

More
4 years 4 months ago #143388 by Mel Corley
Mel Corley replied the topic: Undefined variable error in 3.0
I just updated to version 3.3 of the Simple RSS Feed Reader with Joomla 3.4.1 and now I'm getting the same undefined variable message.

Please Log in or Create an account to join the conversation.

More
4 years 4 months ago #143398 by Lefteris
Lefteris replied the topic: Undefined variable error in 3.0

IMPORTANT: Please search the forum before posting a question!

JoomlaWorks Support Team Member

---
JoomlaWorks
www.joomlaworks.net/

Please Log in or Create an account to join the conversation.


Powered by Kunena Forum