Welcome, Guest
Username: Password: Secret Key Remember me

TOPIC: Content PayToReadMore Plugin gives a Notice

Content PayToReadMore Plugin gives a Notice 20 Jan 2012 10:01 #1262

  • ABTOP
  • ABTOP's Avatar
  • Offline
  • New Member
  • Posts: 2
Notice: Undefined property: stdClass::$id in D:\xampp\htdocs\j16\plugins\content\paytoreadmore\paytoreadmore.php on line 41

It looks like (line 39)
function onContentPrepare($context, &$article, &$params, $page = 0)
	{
		$article->text = $this->_processText($article->text, $article->id);
	}
fires in any view but article id is only available in article view.
Hence attempting to set it for $article results in this notice.

You might want to consider checking for what view you are in.
somethiny along the lines of
if ( JRequest::getVar( 'view' ) == 'article')

Cheers.
The administrator has disabled public write access.

Re: Content PayToReadMore Plugin gives a Notice 20 Jan 2012 21:10 #1264

  • Ratmil
  • Ratmil's Avatar
  • Offline
  • Administrator
  • Posts: 1487
  • Thank you received: 25
I will fix that right away.
If I don't provide the answers you are looking for, I may provide the questions you need to find the answers yourself.
The administrator has disabled public write access.

Re: Content PayToReadMore Plugin gives a Notice 04 Feb 2012 18:34 #1287

  • ABTOP
  • ABTOP's Avatar
  • Offline
  • New Member
  • Posts: 2
Hey it's me again.
Thanks for fixing that but guess what? I have another notice.
It comes from the same place so I'll just continue this topic.
So, the combination of DOCman and paytoreadmore gives this in every page:
Notice: Undefined property: stdClass::$id in D:\xampp\htdocs\j16\plugins\content\paytoreadmore\paytoreadmore.php on line 36

It is repeated by the number of content items. That is, if I am looking at a category containing two documents, for example, I'll get the notice three times.

Also, please keep in mind that DOCman doesn't support readmore so this Pay to Read More plugin has no chance of working. Well, at least not in my hands. :lol:

Hasta.
Last Edit: 04 Feb 2012 18:36 by ABTOP.
The administrator has disabled public write access.

Re: Content PayToReadMore Plugin gives a Notice 05 Feb 2012 04:49 #1288

  • Ratmil
  • Ratmil's Avatar
  • Offline
  • Administrator
  • Posts: 1487
  • Thank you received: 25
Hi, ABTOP.
I already checked that. It has been fixed for next version to come in a couple of days.
Next version will also be fully compatible with J2.5.
If I don't provide the answers you are looking for, I may provide the questions you need to find the answers yourself.
The administrator has disabled public write access.

Re: Content PayToReadMore Plugin gives a Notice 08 Nov 2012 14:38 #1973

Hi,

Have it been fiexed this issue?

I have the same error message:
paytoreadmore.php on line 41

Joomla 2.5.7 and I just downloaded the demo of payperdownload component.
The administrator has disabled public write access.

Re: Content PayToReadMore Plugin gives a Notice 08 Nov 2012 21:13 #1976

  • Ratmil
  • Ratmil's Avatar
  • Offline
  • Administrator
  • Posts: 1487
  • Thank you received: 25
I will fix it right away.
If I don't provide the answers you are looking for, I may provide the questions you need to find the answers yourself.
The administrator has disabled public write access.
Time to create page: 0.226 seconds
Powered by Kunena Forum