We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 18961 ☆ A M B ☆
    • 237 Posts
    I get this message on the page when trying to get to my gallery page.

    Can anyone offer any assistance?

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

    Basic info
    REQUEST_URI http://www.ballyspringinn.com/gallery
    Resource [5] Gallery
    Referer http://www.ballyspringinn.com/
    User Agent Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_4) AppleWebKit/603.1.30 (KHTML, like Gecko) Version/10.1 Safari/603.1.30
    IP 24.229.202.79
    Current time 2017-05-23 09:04:41

    Benchmarks
    MySQL 0.0014 s (4 Requests)
    PHP 0.0254 s
    Total 0.0268 s
    Memory 1.123291015625 mb

    Backtrace
    DocumentParser->executeParser()
    index.php on line 128
    DocumentParser->prepareResponse()
    manager/includes/document.parser.class.inc.php on line 2141
    DocumentParser->outputContent()
    manager/includes/document.parser.class.inc.php on line 2234
    DocumentParser->parseDocumentSource(string $var1)
    manager/includes/document.parser.class.inc.php on line 668
    DocumentParser->evalSnippets(string $var1)
    manager/includes/document.parser.class.inc.php on line 2003
    DocumentParser->_get_snip_result(string $var1)
    manager/includes/document.parser.class.inc.php on line 1408
    DocumentParser->evalSnippet(string $var1, array $var2)
    manager/includes/document.parser.class.inc.php on line 1466
    eval()
    manager/includes/document.parser.class.inc.php on line 1360
    include(string $var1)
    manager/includes/document.parser.class.inc.php(1360) : eval()'d code on line 3
    mysql_fetch_assoc(mysqli_result $var1)
    assets/modules/easy2/snippet.easy2gallery.php on line 25
      Michael Smull
      http://www.bigpixelstudio.com
      twitter: @mdsdesign
      • 13226
      • 953 Posts
      I don't want to step on toes here, but a simple search would have given you the following:

      I also mentioned in a previous post, that changing the MYSQLi extension in the config.inc.php to MYSQL will give you breathing room for such errors
        • 18961 ☆ A M B ☆
        • 237 Posts
        Well, I did do a "Simple Search" and didn't find the answers I was looking for. I was searching more on the error than on the plugin, which probably was my mistake. I will look closer at the last link you posted for the newer version of Easy 2 Gallery.

        Quote from: iusemodx at May 23, 2017, 08:54 AM
        I don't want to step on toes here, but a simple search would have given you the following:

        I also mentioned in a previous post, that changing the MYSQLi extension in the config.inc.php to MYSQL will give you breathing room for such errors
          Michael Smull
          http://www.bigpixelstudio.com
          twitter: @mdsdesign
          • 18961 ☆ A M B ☆
          • 237 Posts
          I was able to install the latest version of the Easy2Gallery and it is now working. The instructions were confusing and I did it a different way, but seems to be doing what it's supposed to.
            Michael Smull
            http://www.bigpixelstudio.com
            twitter: @mdsdesign