We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 593
    • 56 Posts
    Hi all, I have a problem with using of this snippet (2beta)
    When I am opening the page ModX shows the next error:

    « MODx Parse Error »
    MODx encountered the following error while attempting to parse the requested resource:
    « PHP Parse Error »

    PHP error debug
    Error: array_key_exists() [function.array-key-exists]: The second argument should be either an array or an object
    Error type/ Nr.: Warning - 2
    File: /home/u23547/kalugaonline.ru/www/assets/snippets/star_rating/rating.class.php
    Line: 297
    Line 297 source: if (array_key_exists($this->passedId, $cArray)) {

    Parser timing
    MySQL: [^qt^] ([^q^] Requests)
    PHP: [^p^]
    Total: [^t^]


    As far as I understand, $cArray is empty.
    Anybody knows how to solve this problem?
    Thanks.

    Modx version 0.9.5
    [!star_rating? &docID=`[*id*]`!]