Can anyone tell me why I am getting this error at the top of any page that I use the word_limit_plus plugin.
Notice: Undefined offset: 22 in plugins/pi.word_limit_plus.php on line 70
It actually seems as though it is doing what I want it to do, with the exception of this random error. From my untrained eyes it looks like it is pointing out an error in the actual php plugin. That wouldn’t be my error would it.
Here is the code that I am using as of now.
{exp:word_limit_plus if_exceeds="25" stop_after="22" }
{summary}
{/exp:word_limit_plus}
Thanks for the help. And yes I am new to this.
Derik
Mod Edit:This is a plugin, not an extension. Added code tags
I realise I’m posting to a long-dead thread here, but I think this may be down to a bug in the word_limit_plus plugin.
A (admittedly rather quick) look at the code makes me think that this (around line 70):
for ($i = 0; $i < $stop_after + 1; $i++)
{
$str .= $word[$i]." ";
}
Should be changed to this:
for ($i = 0; $i < $stop_after; $i++)
{
$str .= $word[$i]." ";
}
It solved the problem for me, certainly.
Cheers, Stephen
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.