We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 3688
    • 43 Posts
    Hi,

    this problem maybe similar to the problem of sjscosta, but I don’t get the solution how he solved it (because his focus was a little bit different).

    When I create a new document (strictly according to the things said in this thread) I get this error:
    PHP Fatal error: Class ’modResource’ not found in /Users/xy/Sites/101231_spamschlucker_v2-206/core/model/modx/moddocument.class.php on line 14

    I am using MODx 2.0.6pl. Already have replaced the installation-files, but no change.
    I am using this code:
    require_once '/Users/xy/Sites/101231_spamschlucker_v2-206/config.core.php';
    			 require_once MODX_CORE_PATH.'config/'.MODX_CONFIG_KEY.'.inc.php';
    			require_once MODX_CORE_PATH.'model/modx/modx.class.php';
    
    			$modx = new modX();
    
    			$objekt	= $modx->newObject('modDocument');


    The problem occurs at the last line with the newObject-method.

    Would appreciate help very much, thanks in advance!
      • 3688
      • 43 Posts
      Perhaps this may be useful out of the php_error.log
      [07-Jan-2011 13:21:16] PHP Stack trace:
      [07-Jan-2011 13:21:16] PHP   1. {main}() /Users/xyz/Sites/101231-mvc-spamschlucker-v3/index.php:0
      [07-Jan-2011 13:21:16] PHP   2. Controller->mailsHolen() /Users/xyz/Sites/101231-mvc-spamschlucker-v3/index.php:15
      [07-Jan-2011 13:21:16] PHP   3. Model::getMail() /Users/xyz/Sites/101231-mvc-spamschlucker-v3/controller/controller.class.php:46
      [07-Jan-2011 13:21:16] PHP   4. Dbwrite->mailsInDatenbankSchreiben() /Users/xyz/Sites/101231-mvc-spamschlucker-v3/model/model.class.php:43
      [07-Jan-2011 13:21:16] PHP   5. xPDO->newObject() /Users/xyz/Sites/101231-mvc-spamschlucker-v3/model/dbwrite.class.php:121
      [07-Jan-2011 13:21:16] PHP   6. xPDO->loadClass() /Users/xyz/Sites/101231_spamschlucker_v2-206/core/xpdo/xpdo.class.php:596
      [07-Jan-2011 13:21:16] PHP   7. xPDO->_loadClass() /Users/xyz/Sites/101231_spamschlucker_v2-206/core/xpdo/xpdo.class.php:464
      [07-Jan-2011 13:21:16] PHP   8. include_once() /Users/xyz/Sites/101231_spamschlucker_v2-206/core/xpdo/xpdo.class.php:491
      [07-Jan-2011 13:21:16] PHP   9. include_once() /Users/xyz/Sites/101231_spamschlucker_v2-206/core/model/modx/mysql/moddocument.class.php:6
      [07-Jan-2011 13:21:16] PHP Notice:  Unknown: SECURITY PROBLEM: insecure server advertised AUTH=PLAIN (errflg=1) in Unknown on line 0
      [07-Jan-2011 13:21:16] PHP Stack trace:
      [07-Jan-2011 13:21:16] PHP   1. {main}() /Users/xyz/Sites/101231-mvc-spamschlucker-v3/index.php:0
      [07-Jan-2011 13:21:16] PHP   2. Controller->mailsHolen() /Users/xyz/Sites/101231-mvc-spamschlucker-v3/index.php:15
      [07-Jan-2011 13:21:16] PHP   3. Model::getMail() /Users/xyz/Sites/101231-mvc-spamschlucker-v3/controller/controller.class.php:46
      [07-Jan-2011 13:21:16] PHP   4. Dbwrite->mailsInDatenbankSchreiben() /Users/xyz/Sites/101231-mvc-spamschlucker-v3/model/model.class.php:43
      [07-Jan-2011 13:21:16] PHP   5. xPDO->newObject() /Users/xyz/Sites/101231-mvc-spamschlucker-v3/model/dbwrite.class.php:121
      [07-Jan-2011 13:21:16] PHP   6. xPDO->loadClass() /Users/xyz/Sites/101231_spamschlucker_v2-206/core/xpdo/xpdo.class.php:596
      [07-Jan-2011 13:21:16] PHP   7. xPDO->_loadClass() /Users/xyz/Sites/101231_spamschlucker_v2-206/core/xpdo/xpdo.class.php:464
      [07-Jan-2011 13:21:16] PHP   8. include_once() /Users/xyz/Sites/101231_spamschlucker_v2-206/core/xpdo/xpdo.class.php:491
      [07-Jan-2011 13:21:16] PHP   9. include_once() /Users/xyz/Sites/101231_spamschlucker_v2-206/core/model/modx/mysql/moddocument.class.php:6

        • 3688
        • 43 Posts
        Sorry ... does anybody see a solution for this or has any idea?
        thanks for help!

        *bump* wink