We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 36613
    • 328 Posts
    I create an import script custom form modx. I upgrade the site to modx 2.2.15 an then the script result me:

    Fatal error: Call to a member function get() on a non-object in /home/mysite/public_html/core/model/modx/modlexicon.class.php on line 161


    the problem is this line:

    $modx->lexicon->load('import');


    if i commenti the line i recive this error:

     Fatal error: Call to a member function get() on a non-object in /home/mysite/public_html/core/model/modx/modresource.class.php on line 730


    What change in the new modx ?
    • What version did you upgrade from?
        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
        • 36613
        • 328 Posts
        From 2.2.3. However i resolve the error, i comment
        $modx->lexicon->load('import');

        and i change the declaration of modx class.