We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 43368
    • 7 Posts
    I'm trying to upload a video of 45 mega. It's uploaded successfully but the problem is that when i tried to do any query on the modx database i got this error call to fetch on a non object. This is not happening when i uploaded small files up to 25 Mega.
    The modx upload_size limit is about one Giga
    And this is the php settings:
    upload_max_filesize 500M
    post_max_size 500M
    max_input_time -1
    max_execution_time -1
    memory_limit -1

    I'm not sure what's the issue.I think it may be that the xPdo connection expired or lost ??

    Need Help urgently.

    Thanks,
    Mohamed
    • Can you paste the actual error here? I don't see what uploading a file has to do with any MODx database queries.
        Studying MODX in the desert - http://sottwell.com
        Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
        Join the Slack Community - http://modx.org
        • 43368
        • 7 Posts
        <b>Fatal error</b>: Call to a member function fetch() on a non-object in <b>/home/igo4sale/public_html/core/cache/includes/elements/modsnippet/89.include.cache.php</b> on line <b>50</b>

        This only happened when files are larger than 45 mega
        • What is snippet #86? Look in the Elements tab to see which one it is.
            Studying MODX in the desert - http://sottwell.com
            Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
            Join the Slack Community - http://modx.org
            • 43368
            • 7 Posts
            This is the snippet which upload the file and do some database queries