On March 26, 2019 we launched new MODX Forums. Please join us at the new MODX Community Forums.
Subscribe: RSS
  • 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
      • From 2.2.3. However i resolve the error, i comment
        $modx->lexicon->load('import');

        and i change the declaration of modx class.