We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 35055
    • 2 Posts
    Hi all! Can you help me, please, with some image gallery for Modx, it called mGallery, very simply installation, but when i trying to upload some photos and going to watch them on the page, i see an error:
    « MODx Parse Error »
    MODx encountered the following error while attempting to parse the requested resource:
    « PHP Parse Error »

    PHP error debug
    Error: mysql_fetch_array(): supplied argument is not a valid MySQL result resource
    Error type/ Nr.: Warning - 2
    File: Z:\home\more\www\assets\modules\mGallery\snippet.php
    Line: 38
    Line 38 source: $myrow228 = mysql_fetch_array($result228);

    Parser timing
    MySQL: 0.0056 s (2 Requests)
    PHP: 0.0557 s
    Total: 0.0613 s

    when i`m changing some options in the module, i see another error:
    Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in Z:\home\more\www\assets\modules\mGallery\upload.php on line 372

    « MODx Parse Error »
    MODx encountered the following error while attempting to parse the requested resource:
    « Execution of a query to the database failed - Table ’more.modx_mgallery_setting’ doesn’t exist »
    SQL: INSERT INTO modx_mgallery_setting VALUES (NULL,’23’, ’23’, ’’, ’’)
    [Copy SQL to ClipBoard]
    Parser timing
    MySQL:
    0.0025 s
    (0 Requests)
    PHP:
    1311940958.6984 s
    Total:
    1311940958.7010 s


    version of MODx - 1.0.5, mGallery - 0.23

    huh