We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 14050
    • 788 Posts
    No problem and I was glad I could help. That solution just struck me out of the blue for some reason.

    Although, before I actually got my hands dirty and created a couple snippets of my own, I would have been the type to say "I can’t get this to work, why?" grin
      Jesse R.
      Consider trying something new and extraordinary.
      Illinois Wine

      Have you considered donating to MODx lately?
      Donate now. Every contribution helps.
      • 25478
      • 26 Posts
      I tried to install wayfinder but i get this error:

      « MODx Parse Error » MODx encountered the following error while attempting to parse the requested resource:
      « Execution of a query to the database failed - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ’s simple and fast to configure.’,’/*\n::::::::::::::::::::::::::::::::::::::::\n’ at line 1 »
      SQL: INSERT INTO modx_site_snippets (name, description, snippet) VALUES (’Wayfinder’,’New v1.0 Completely template-driven menu builder that’s simple and fast to configure.’,’/*\n::::::::::::::::::::::::::::::::::::::::\n Snippet name: Wayfinder\n Short Desc: builds site navigation\n Version: 1.0\n Authors: Ryan Thrash (vertexworks.com)\n Kyle Jaebker (muddydogpaws.com)\n Date: October 23, 2006\n::::::::::::::::::::::::::::::::::::::::\nDescription:\n Totally refactored from original DropMenu nav builder to make it easier to\n create custom navigation by using chunks as output templates. By using templates,\n many of the paramaters are no longer needed for flexible output including tables,\n unordered- or ordered-lists (ULs or OLs), definition lists (DLs) or in any other\n format you desire.\n::::::::::::::::::::::::::::::::::::::::\nExample Usage:\n [[Wayfinder? &startId=`0`]]\n::::::::::::::::::::::::::::::::::::::::\n*/\n\ninclude_once(\"assets/snippets/wayfinder/wayfinder.inc.php\");\n\nif (class_exists(\’Wayfinder\’)) {\n $wf = new Wayfinder();\n} else {\n return \’error: Wayfinder class not found\’;\n}\n\n//parameter overrides\n$wf->id = isset($startId)? $startId: $modx->documentIdentifier;\n$wf->level = isset($level)? $level: 0;\n$wf->ph = isset($ph)? $ph: FALSE;\n$wf->debug = isset($debug)? TRUE: FALSE;\n$wf->ignoreHidden = isset($ignoreHidden)? $ignoreHidden: FALSE;\n$wf->hideSubMenus = isset($hideSubMenus)? $hideSubMenus: FALSE;\n$wf->useWeblinkUrl = isset($useWeblinkUrl)? $useWeblinkUrl: TRUE;\n$wf->showSubDocCount = isset($showSubDocCount)? $showSubDocCount: FALSE;\nisset($removeNewLines)? $wf->ie = \’\’: $wf->ie = \"\\n\";\n//Set ordering options\n$wf->sortOrder = isset($sortOrder)? strtoupper($sortOrder): \’ASC\’;\n$wf->sortBy = isset($sortBy)? $sortBy: \’menuindex\’;\n//Include javascript & css chunks\n$wf->cssTpl = isset($cssTpl)? $cssTpl : FALSE;\n$wf->jsTpl = isset($jsTpl)? $jsTpl : FALSE;\n//get user class definitions\n$wf->css[\’first\’] = isset($firstClass)? $firstClass: \’\’;\n$wf->css[\’last\’] = isset($lastClass)? $lastClass: \’last\’;\n$wf->css[\’here\’] = isset($hereClass)? $hereClass: \’active\’;\n$wf->css[\’parent\’] = isset($parentClass)? $parentClass: \’\’;\n$wf->css[\’row\’] = isset($rowClass)? $rowClass: \’\’;\n$wf->css[\’outer\’] = isset($outerClass)? $outerClass: \’\’;\n$wf->css[\’inner\’] = isset($innerClass)? $innerClass: \’\’;\n$wf->css[\’level\’] = isset($levelClass)? $levelClass: \’\’;\n$wf->css[\’self\’] = isset($selfClass)? $selfClass: \’\’;\n$wf->css[\’weblink\’] = isset($webLinkClass)? $webLinkClass: \’\’;\n//prefix for adding id to each row\n$wf->rowIdPrefix = isset($rowIdPrefix)? $rowIdPrefix: FALSE;\n//get fields to output\n$wf->textOfLinks = (isset($textOfLinks)) ? $textOfLinks : \’menutitle\’;\n$wf->titleOfLinks = (isset($titleOfLinks)) ? $titleOfLinks : \’pagetitle\’;\n//get user templates\n$wf->templates[\’outerTpl\’] = isset($outerTpl) ? $outerTpl : \’\’;\n$wf->templates[\’rowTpl\’] = isset($rowTpl) ? $rowTpl : \’\’;\n$wf->templates[\’parentRowTpl\’] = isset($parentRowTpl) ? $parentRowTpl : \’\’;\n$wf->templates[\’parentRowHereTpl\’] = isset($parentRowHereTpl) ? $parentRowHereTpl : \’\’;\n$wf->templates[\’hereTpl\’] = isset($hereTpl) ? $hereTpl : \’\’;\n$wf->templates[\’innerTpl\’] = isset($innerTpl) ? $innerTpl : \’\’;\n$wf->templates[\’innerRowTpl\’] = isset($innerRowTpl) ? $innerRowTpl : \’\’;\n$wf->templates[\’innerHereTpl\’] = isset($innerHereTpl) ? $innerHereTpl : \’\’;\n$wf->templates[\’activeParentRowTpl\’] = isset($activeParentRowTpl) ? $activeParentRowTpl : \’\’;\n$wf->templates[\’categoryFoldersTpl\’] = isset($categoryFoldersTpl) ? $categoryFoldersTpl : \’\’;\n\n//Process Wayfinder\n$output = $wf->run();\n\n//Ouput Results\nif ($wf->ph) {\n $modx->setPlaceholder

      PLEASE HELP.
        • 28042 ☆ A M B ☆
        • 24,524 Posts
        Doesn’t like the apostrophe in the text "New v1.0 Completely template-driven menu builder that’s simple and fast to configure"
          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
          • 25478
          • 26 Posts
          susan,

          where is that text file?
            • 28042 ☆ A M B ☆
            • 24,524 Posts
            I don’t know. I haven’t looked at the packages. Probably in something with a .sql ending to the file.
              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
              • 25478
              • 26 Posts
              thank you susan!

              i edited the install.php removing the apostrophe ’ in "that’s".

              it’s working now!
                • 28042 ☆ A M B ☆
                • 24,524 Posts
                Sounds to me like something is going into the database without going through $modx->db->escape() first.
                  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
                  • 26435
                  • 1,193 Posts
                  Quote from: sottwell at Nov 14, 2006, 05:44 AM

                  Sounds to me like something is going into the database without going through $modx->db->escape() first.

                  I think your right. Line 284
                  $this->desc = $_POST['resource_desc'];

                  is not properly escaped.
                  I will fix this

                  -sD-
                    Husband, Father, Brother, Son, Programmer, Atheist, Nurse, Friend, Lover, Fighter.
                    All of the above... in no specific order.


                    I send pointless little messages
                    • 2762
                    • 1,198 Posts
                    Scotty I still have the same issue of diggidis

                    This does not appear to be a valid MODx Resource Wizard package.

                    Tryied with two different server undecided
                      Free MODx Graphic resources and Templates www.tattoocms.it
                      -----------------------------------------------------

                      MODx IT  www.modx.it
                      -----------------------------------------------------

                      bubuna.com - Web & Multimedia Design
                      • 26435
                      • 1,193 Posts
                      Quote from: banzai at Nov 14, 2006, 06:29 AM

                      Scotty I still have the same issue of diggidis

                      This does not appear to be a valid MODx Resource Wizard package.

                      Tryied with two different server  undecided
                      Banzai,
                      did you try applying the fix that Jesster444 submitted?
                      http://modxcms.com/forums/index.php/topic,8182.msg63227.html#msg63227

                      -sD-
                        Husband, Father, Brother, Son, Programmer, Atheist, Nurse, Friend, Lover, Fighter.
                        All of the above... in no specific order.


                        I send pointless little messages