Announcement

Collapse
No announcement yet.

The filter operation returned a script error. The error was: [SyntaxError: parseJSON]

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

    The filter operation returned a script error. The error was: [SyntaxError: parseJSON]

    The filter operation returned a script error. Please try again, and contact us if the error persists. The error was: [SyntaxError: parseJSON]

    In a Swift site when searching for some but not all search terms an error was generated as above.

    This error persisted despite applying the fixes at:
    https://community.sellerdeck.com/for...rror-parsejson
    and
    https://community.sellerdeck.com/for...taining-quotes

    Sellerdeck Development have kindly come up with a solution:

    Please go to the current site folder and take a backup copy of 'SearchScript.pl'

    Open the script in a plain text editor and find the following lines of code:

    Code:
    my $nResultCount = scalar (@arrProductFields);
    my $sResults = join ('","', @arrProductFields);
    and replace it with:

    Code:
    my $nResultCount = scalar (@arrProductFields);
    for (@arrProductFields)
    { s/"/\\"/g; }
    
    my $sResults = join ('","', @arrProductFields);
    Save the changes and upload the site

    Thanks and acknowledgements to Gary Green and Sellerdeck Developers
    Jonathan Chappell
    Website Designer
    SellerDeck Website Designer
    Actinic to SellerDeck upgrades
    Graphicz Limited - www.graphicz.co.uk
Working...
X