-
AuthorPosts
-
compcard Friend
compcard
- Join date:
- November 2010
- Posts:
- 97
- Downloads:
- 99
- Uploads:
- 12
- Thanks:
- 19
- Thanked:
- 1 times in 1 posts
June 23, 2011 at 9:44 pm #165590I just update the ja thumbnail plugin to its latest version 1.0.2, now i get this error on my blogs. Notice: Undefined property: stdClass::$text in /home/content/29/6268229/html/live/plugins/content/plg_jathumbnail/plg_jathumbnail.php on line 46
how can i fix this?
url: caracol.com
click on new or any other section you should see the errorgray Friendgray
- Join date:
- October 2009
- Posts:
- 957
- Downloads:
- 0
- Uploads:
- 17
- Thanks:
- 28
- Thanked:
- 292 times in 230 posts
June 24, 2011 at 12:06 am #398124Roll back to 1.0.1. as somebody did here (v. 1.0.1 is available in Teline IV package).
The issue is caused by preg_match($this->_plgCodeDisable, $article->text) on line 46 of the plugin. It seems Joomla 1.6 has some problems with rendering content in plugins as reported here.1 user says Thank You to gray for this useful post
thangnn1510 Friendthangnn1510
- Join date:
- October 2014
- Posts:
- 1608
- Downloads:
- 0
- Uploads:
- 80
- Thanks:
- 73
- Thanked:
- 278 times in 256 posts
June 24, 2011 at 7:38 am #398167Please give us the login information FTP/Admin account to your support ticket AIY-697-44672 in http://support.joomlart.com. We’ll check for you. Thanks.
compcard Friendcompcard
- Join date:
- November 2010
- Posts:
- 97
- Downloads:
- 99
- Uploads:
- 12
- Thanks:
- 19
- Thanked:
- 1 times in 1 posts
June 24, 2011 at 2:28 pm #398261<em>@gray 249264 wrote:</em><blockquote>Roll back to 1.0.1. as somebody did here (v. 1.0.1 is available in Teline IV package).
The issue is caused by preg_match($this->_plgCodeDisable, $article->text) on line 46 of the plugin. It seems Joomla 1.6 has some problems with rendering content in plugins as reported here.</blockquote>thanks man but i already went to the ja teline Iv package and they only have ja thumbnail 1.0.2 , where else can i get the older version?
of this pluginthangnn1510 Friendthangnn1510
- Join date:
- October 2014
- Posts:
- 1608
- Downloads:
- 0
- Uploads:
- 80
- Thanks:
- 73
- Thanked:
- 278 times in 256 posts
June 25, 2011 at 7:12 am #398345<em>@compcard 249424 wrote:</em><blockquote>thanks man but i already went to the ja teline Iv package and they only have ja thumbnail 1.0.2 , where else can i get the older version?
of this plugin</blockquote>
We don’t store older version. Please give us the login information FTP/Admin account to your support ticket AIY-697-44672 in http://support.joomlart.com. We’ll check for you. Thanks.gray Friendgray
- Join date:
- October 2009
- Posts:
- 957
- Downloads:
- 0
- Uploads:
- 17
- Thanks:
- 28
- Thanked:
- 292 times in 230 posts
June 28, 2011 at 4:48 pm #398905<em>@compcard 249258 wrote:</em><blockquote>I just update the ja thumbnail plugin to its latest version 1.0.2, now i get this error on my blogs. Notice: Undefined property: stdClass::$text in /home/content/29/6268229/html/live/plugins/content/plg_jathumbnail/plg_jathumbnail.php on line 46
how can i fix this?
url: caracol.com
click on new or any other section you should see the error</blockquote>Found a solution. This error is caused by the fact that $article->text is not available on category (blog) view, but only $article->introtext. So I fixed it by changing /plugins/content/plg_jathumbnail/plg_jathumbnail.php
[php]
if(preg_match($this->_plgCodeDisable, $article->introtext) || preg_match($this->_plgCodeDisable, $article->text)) {
$article->introtext = preg_replace($this->_plgCodeDisable, ”, $article->introtext);
$article->text = preg_replace($this->_plgCodeDisable, ”, $article->text);
}
[/php]
to
[php]
if(preg_match($this->_plgCodeDisable, $article->introtext)) {
$article->introtext = preg_replace($this->_plgCodeDisable, ”, $article->introtext);
} else if ($view != ‘category’ && preg_match($this->_plgCodeDisable, $article->text)) {
$article->text = preg_replace($this->_plgCodeDisable, ”, $article->text);
}
[/php]4 users say Thank You to gray for this useful post
thangnn1510 Friendthangnn1510
- Join date:
- October 2014
- Posts:
- 1608
- Downloads:
- 0
- Uploads:
- 80
- Thanks:
- 73
- Thanked:
- 278 times in 256 posts
June 29, 2011 at 4:17 am #398987Thanks for sharing the resolution.
hengstler Friendhengstler
- Join date:
- August 2006
- Posts:
- 123
- Downloads:
- 7
- Uploads:
- 23
- Thanks:
- 106
- Thanked:
- 4 times in 1 posts
July 16, 2011 at 3:42 pm #401435Hi …
unfortunately, this solution doesn’t work on my test environment. After deleting the cache, I still receive the error message:
Notice: Undefined property: stdClass::$text in /var/www/web258/public_html/test16/plugins/content/plg_jathumbnail/plg_jathumbnail.php on line 47
I’m using Joomla 1.6.5 and JA Thumbnail plugin 1.0.2 …
Kind regards
Stefan
gray Friendgray
- Join date:
- October 2009
- Posts:
- 957
- Downloads:
- 0
- Uploads:
- 17
- Thanks:
- 28
- Thanked:
- 292 times in 230 posts
-
AuthorPosts
This topic contains 9 replies, has 4 voices, and was last updated by gray 13 years, 4 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum