We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 24017
    • 88 Posts
    Hi,
    I have uploaded modx on a test server , changed the config file in the manager folder , migrated the database... but I am getting this type of page...http://elhoster.com/mod

    I’m probably missing something ...
    Many thanks
      • 4310
      • 2,310 Posts
      Looks like your Wayfinder snippet has a problem.
      Try uploading the Wayfinder folder again and maybe copy & pasting the snippet content.
        • 24017
        • 88 Posts
        tried reloading the snippets but no luck... what do you mean by pasting the content
          • 4310
          • 2,310 Posts
          In the Manager go to Elements =>Manage Elements => Snippets
          Find the Wayfinder snippet and replace contents of the actual snippet with :
          <?php
          /*
          ::::::::::::::::::::::::::::::::::::::::
           Snippet name: Wayfinder
           Short Desc: builds site navigation
           Version: 2.0
           Authors: 
              Kyle Jaebker (muddydogpaws.com)
              Ryan Thrash (vertexworks.com)
           Date: February 27, 2006
          ::::::::::::::::::::::::::::::::::::::::
          Description:
              Totally refactored from original DropMenu nav builder to make it easier to
              create custom navigation by using chunks as output templates. By using templates,
              many of the paramaters are no longer needed for flexible output including tables,
              unordered- or ordered-lists (ULs or OLs), definition lists (DLs) or in any other
              format you desire.
          ::::::::::::::::::::::::::::::::::::::::
          Example Usage:
              [[Wayfinder? &startId=`0`]]
          ::::::::::::::::::::::::::::::::::::::::
          */
          
          $wayfinder_base = $modx->config['base_path']."assets/snippets/wayfinder/";
          
          //Include a custom config file if specified
          $config = (isset($config)) ? "{$wayfinder_base}configs/{$config}.config.php" : "{$wayfinder_base}configs/default.config.php";
          if (file_exists($config)) {
              include_once("$config");
          }
          
          include_once("{$wayfinder_base}wayfinder.inc.php");
          
          if (class_exists('Wayfinder')) {
             $wf = new Wayfinder();
          } else {
              return 'error: Wayfinder class not found';
          }
          
          $wf->_config = array(
              'id' => isset($startId) ? $startId : $modx->documentIdentifier,
              'level' => isset($level) ? $level : 0,
              'includeDocs' => isset($includeDocs) ? $includeDocs : 0,
              'excludeDocs' => isset($excludeDocs) ? $excludeDocs : 0,
              'ph' => isset($ph) ? $ph : FALSE,
              'debug' => isset($debug) ? TRUE : FALSE,
              'ignoreHidden' => isset($ignoreHidden) ? $ignoreHidden : FALSE,
              'hideSubMenus' => isset($hideSubMenus) ? $hideSubMenus : FALSE,
              'useWeblinkUrl' => isset($useWeblinkUrl) ? $useWeblinkUrl : TRUE,
              'fullLink' => isset($fullLink) ? $fullLink : FALSE,
              'nl' => isset($removeNewLines) ? '' : "\n",
              'sortOrder' => isset($sortOrder) ? strtoupper($sortOrder) : 'ASC',
              'sortBy' => isset($sortBy) ? $sortBy : 'menuindex',
              'limit' => isset($limit) ? $limit : 0,
              'cssTpl' => isset($cssTpl) ? $cssTpl : FALSE,
              'jsTpl' => isset($jsTpl) ? $jsTpl : FALSE,
              'rowIdPrefix' => isset($rowIdPrefix) ? $rowIdPrefix : FALSE,
              'textOfLinks' => isset($textOfLinks) ? $textOfLinks : 'menutitle',
              'titleOfLinks' => isset($titleOfLinks) ? $titleOfLinks : 'pagetitle',
              'displayStart' => isset($displayStart) ? $displayStart : FALSE,
          );
          
          //get user class definitions
          $wf->_css = array(
              'first' => isset($firstClass) ? $firstClass : '',
              'last' => isset($lastClass) ? $lastClass : 'last',
              'here' => isset($hereClass) ? $hereClass : 'active',
              'parent' => isset($parentClass) ? $parentClass : '',
              'row' => isset($rowClass) ? $rowClass : '',
              'outer' => isset($outerClass) ? $outerClass : '',
              'inner' => isset($innerClass) ? $innerClass : '',
              'level' => isset($levelClass) ? $levelClass: '',
              'self' => isset($selfClass) ? $selfClass : '',
              'weblink' => isset($webLinkClass) ? $webLinkClass : '',
          );
          
          //get user templates
          $wf->_templates = array(
              'outerTpl' => isset($outerTpl) ? $outerTpl : '',
              'rowTpl' => isset($rowTpl) ? $rowTpl : '',
              'parentRowTpl' => isset($parentRowTpl) ? $parentRowTpl : '',
              'parentRowHereTpl' => isset($parentRowHereTpl) ? $parentRowHereTpl : '',
              'hereTpl' => isset($hereTpl) ? $hereTpl : '',
              'innerTpl' => isset($innerTpl) ? $innerTpl : '',
              'innerRowTpl' => isset($innerRowTpl) ? $innerRowTpl : '',
              'innerHereTpl' => isset($innerHereTpl) ? $innerHereTpl : '',
              'activeParentRowTpl' => isset($activeParentRowTpl) ? $activeParentRowTpl : '',
              'categoryFoldersTpl' => isset($categoryFoldersTpl) ? $categoryFoldersTpl : '',
              'startItemTpl' => isset($startItemTpl) ? $startItemTpl : '',
          );
          
          //Process Wayfinder
          $output = $wf->run();
          
          if ($wf->_config['debug']) {
              $output .= $wf->renderDebugOutput();
          }
          
          //Ouput Results
          if ($wf->_config['ph']) {
              $modx->setPlaceholder($wf->_config['ph'],$output);
          } else {
              return $output;
          }
          ?>
            • 24017
            • 88 Posts
            well that did the trick ! but brought out another issu if you have a look at the link i now have a parser error..... :’(
              • 24017
              • 88 Posts
              sorry that did not do the trick either huh
                • 3749
                • 24,544 Posts
                It looks like you pasted the Wayfinder code into your template, rather than the Wayfinder snippet.

                  Did I help you? Buy me a beer
                  Get my Book: MODX:The Official Guide
                  MODX info for everyone: http://bobsguides.com/modx.html
                  My MODX Extras
                  Bob's Guides is now hosted at A2 MODX Hosting
                  • 24017
                  • 88 Posts
                  seems like it.... but not this either! undecided
                    • 3749
                    • 24,544 Posts
                    Does the Wayfinder snippet code have <?php at the top?

                    I would start by disabling all plugins. Then, insert a space in your template between the first and second characters of all snippet tags so they won’t execute. Then turn them back on one by one until you find the culprit.

                    It’s also possible that you just have a corrupted or missing file from the transfer.

                      Did I help you? Buy me a beer
                      Get my Book: MODX:The Official Guide
                      MODX info for everyone: http://bobsguides.com/modx.html
                      My MODX Extras
                      Bob's Guides is now hosted at A2 MODX Hosting
                      • 24017
                      • 88 Posts
                      well I restarted a fresh install but still having other issues :

                      Warning: PDO::prepare() [function.PDO-prepare]: SQLSTATE[42S02]: Base table or view not found: 1146 Table ’modx.modx_access_actions’ doesn’t exist in

                      Fatal error: Call to a member function execute() on a non-object in /var/www/vhosts/.../httpdocs/gallery/core/xpdo/om/mysql/xpdomanager.class.php on line 135

                      Everything was so fine n local....