We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 53004
    • 5 Posts
    Hello guys, I have updgraded from modx evolution 1.0.15 to 1.2

    But i get this error.

    Trying to get property of non-object
    « MODX Parse Error »
    Error : mysql_fetch_array() expects parameter 1 to be resource, object given
    Error information
    ErrorType[num] WARNING[2]
    File /home/elran85/public_html/assets/modules/easy2/snippet.easy2gallery.php
    Line 26
    Source while ($row = mysql_fetch_array($query_configs)) {
    Current Snippet easy2

    Basic info
    REQUEST_URI http://www.elranchodejonas.com/
    Resource [1] Inicio
    Referer http://www.elranchodejonas.com/manager/index.php?a=1&f=menu
    User Agent Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/54.0.2840.99 Safari/537.36
    IP 181.134.151.235
    Current time 2016-12-06 05:55:01

    Benchmarks
    MySQL 0.0204 s (11 Requests)
    PHP 0.1319 s
    Total 0.1523 s
    Memory 3.76586151123 mb

    Backtrace
    DocumentParser->executeParser()
    index.php on line 128
    DocumentParser->prepareResponse()
    manager/includes/document.parser.class.inc.php on line 2118
    DocumentParser->outputContent()
    manager/includes/document.parser.class.inc.php on line 2184
    DocumentParser->parseDocumentSource(string $var1)
    manager/includes/document.parser.class.inc.php on line 658
    DocumentParser->evalSnippets(string $var1)
    manager/includes/document.parser.class.inc.php on line 1968
    DocumentParser->_get_snip_result(string $var1)
    manager/includes/document.parser.class.inc.php on line 1393
    DocumentParser->evalSnippet(string $var1, array $var2)
    manager/includes/document.parser.class.inc.php on line 1443
    eval()
    manager/includes/document.parser.class.inc.php on line 1341
    include(string $var1)
    manager/includes/document.parser.class.inc.php(1341) : eval()'d code on line 1
    mysql_fetch_array(mysqli_result $var1)
    assets/modules/easy2/snippet.easy2gallery.php on line 26

    Attached the error image.

    What can I do?

    Thanks. [ed. note: carloscardonasd last edited this post 7 years, 4 months ago.]
      • 4041
      • 788 Posts
      I think you'll have to disable the snippet / module until the e2g code gets updated.
        xforum
        http://frsbuilders.net (under construction) forum for evolution
        • 53004
        • 5 Posts
        Hello Breezer,

        Thanks for reply, I had have disabled the plugin, but the message follow appearing.
          • 36528
          • 3 Posts
          You could try changing
          $row = mysql_fetch_array($query_configs)
          to
          $row = mysqli_fetch_array($query_configs)
            • 4041
            • 788 Posts
            That small change is a drop in the bucket as I've been looking into updating the e2g code and there are alot of changes that have to be made and tested, it'll be a while I'm afraid. Perhaps this thread will help in the meantime:

            https://forums.modx.com/thread/101397/modx-parse-error-after-updating-to-evo-1-2#dis-post-547060
              xforum
              http://frsbuilders.net (under construction) forum for evolution