Announcement

Collapse
No announcement yet.

Array index must be positive integer

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

  • habreu
    replied
    Thanks Scot. Looks like it is this -when I remove it problem solved. I'll poke around at it for a bit.

    Code:
    <mvt:item name="ry_toolbelt" param="Product_NextPrev|g.Product_Code|g.Category_Code" />
    EDIT: Okay not sure if there is a better way but it works now and at my skill level that's a victory. :)

    I just wrapped it with a check for search results page and disabled it

    Code:
    <mvt:if expr="'product-search' CIN s.http_referer AND g.Screen EQ 'PROD'">
    Last edited by habreu; 04-28-21, 02:48 PM.

    Leave a comment:


  • Scot - ScotsScripts.com
    replied
    This is a module error. I'm guessing the module is looking for some kind of url parameter on the link you're clicking and not finding it, and the module does not check for that condition so it goes straight to an engine error. Basically I'm guessing the module is trying to get an array item like l.variable[g.some_url_param] and g.some_url_param is blank which will always throw that kind of error.

    Leave a comment:


  • habreu
    started a topic Array index must be positive integer

    Array index must be positive integer

    Code:
     
    Runtime error in merchant2/5.00/modules/util/ry_toolbelt.mvc @ [00000004:0001532e]: ./tools/product_items.mv: Line 503: (in expression): Array index must be positive integer
    Getting this on several items when I do a search then click on one of the returned results on the search results page. Where is the error likely occuring - in the module or on search results or PROD pages?
Working...
X