Fatal error: Uncaught Error: Call to undefined method DrupalArticle::selectAgrar_new() in /var/www/modx_new/manager/includes/document.parser.class.inc.php(1964) : eval()'d code on line 39 Error: Call to undefined method DrupalArticle::selectAgrar_new() in /var/www/modx_new/manager/includes/document.parser.class.inc.php(1964) : eval()'d code on line 39 Call Stack: 0.0000 399256 1. {main}() /var/www/modx_new/index.php:0 0.0006 520744 2. DocumentParser->executeParser() /var/www/modx_new/index.php:176 0.0023 774000 3. DocumentParser->prepareResponse() /var/www/modx_new/manager/includes/document.parser.class.inc.php:2862 0.2742 2221928 4. DocumentParser->outputContent() /var/www/modx_new/manager/includes/document.parser.class.inc.php:2986 0.2743 2471784 5. DocumentParser->parseDocumentSource() /var/www/modx_new/manager/includes/document.parser.class.inc.php:917 0.2748 2471848 6. DocumentParser->evalSnippets() /var/www/modx_new/manager/includes/document.parser.class.inc.php:2717 1.0766 2832368 7. DocumentParser->_get_snip_result() /var/www/modx_new/manager/includes/document.parser.class.inc.php:2027 1.0768 2833688 8. DocumentParser->evalSnippet() /var/www/modx_new/manager/includes/document.parser.class.inc.php:2115 1.0768 2862128 9. eval('/** * ------------------------------------------------------------------------------ * Article Snippet * ------------------------------------------------------------------------------ * Article Snippet for handling article render functions * * @author tdc * @version 0.0.1 <2012-12-28> **/ // set up parameters $config = array(); $config['tpl'] = isset($tpl) ? $tpl : false; $config['tip_id'] = isset($tip_id) ? $tip_id: false; $config['imageSize'] = isset($imageSize) ? $imageSize : '100x100'; $config['picture_shift'] = isset($picture_shift) ? 1 : 0; // set the base path $path = $modx->config['base_path'] . 'assets/snippets/maskinbladet/article/'; // check if required files exist $classfile = $path . 'article.class.php'; if(!file_exists($classfile)){ $modx->messageQuit('Article Snippet Error: Unable to locate article.class.php'); return; } // include files if (!class_exists('DrupalArticle')) { require($classfile); } try { $handler = new DrupalArticle($config); if(isset($_GET['t']) && trim($_GET['t']) == 'mt'){ //return $handler->renderMaskinteknikArticleView(); return $handler->selectAgrar_new(); } else { return $handler->renderMaskinbladetFullArticle(); } } catch (Exception $ex){ // only display the exception if we have a error code above 0. otherwise remain silent if($ex->getCode() > 0){ // if we get a code above or equal to 128, we just exit if($ex->getCode() >= 128){ return $ex->getMessage(); } else { $modx->messageQuit('Article Snippet Error: ' . $ex->getMessage()); } } } return;') /var/www/modx_new/manager/includes/document.parser.class.inc.php:1964