Announcement

Collapse
No announcement yet.

search description buffer error

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    search description buffer error

    I thought it would be a good idea to use Product descriptions in my search results - but to limit the text using Normans description patch.

    I hacked at the code and simply swapped in the search product description

    Code:
    $sShort = "";
    $nCount = 0;
    $sOriginal = '<actinic:variable name="SearchResultFullDescription" />'; 
    foreach(explode(" ", $sOriginal) as $sWord)
    	{
       if ($nCount > 14)
       	{
       	$sShort .= "... ";
       	break;
       	}
       $sShort .= $sWord . " ";
       $nCount++;
       }
    echo $sShort;
    but the site won't upload - I get the attached image error box. Any ideas?
    Attached Files

    #2
    Perhaps try reducing the number of characters as a test to try and find the limit. Maybe it's possible to increase the 2048 limit somewhere. (Does the size limit performance?)

    Comment


      #3
      Originally posted by drounding
      (Does the size limit performance?)
      I was tempted to comment but decided not to...
      www.yandles.co.uk
      www.websilk.co.uk
      Today is the tomorrow that I worried about yesterday.
      So far, all is well. Am I still worried? YES! Watch some b.....d mess it up!

      Comment


        #4
        In fact, just adding product descriptions to the search results results in the above error.

        So how do i get round the buffer problem?

        Stating in the original post that i am using norman's patch to reduce the size of the description is a red herring, whether i use it with 14 words or 6 words makes no difference.

        Comment


          #5
          Hi there

          On the results page, the description is inserted from the online search index , whereas the fix in the advanced user guide only works on pages that are generated on the desktop, where the text comes directly from the database. Sorry about that.

          Comment

          Working...
          X