We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 43123
    • 9 Posts
    heloo... can any body help me please ?? i have a problem in @EVAL return $modx->runSnippet('SnippetName'); ..

    my snippet code like image below..

    i don't know what happen, my code is working in modx evolution 1.0.8 but in modx evolution in 1.0.9 is not working ...

    thank you ...

    sorry my english is not good ..

      • 43123
      • 9 Posts
      i'm forgoted.. when i'm click ok. the result is ok.. but the message error make me don't understand what wrong with my code ..

      thank you ..
      • Maybe the following issues: The snippet should not return FALSE but '' in line 8. $type is not set in Line 17.
          • 3749
          • 24,544 Posts
          Also, add this at the top:

          $list='';


          BTW, if you run the snippet from a tag in a resource while you're developing, you'll get more meaningful error messages.

          Also, your server has E_NOTICE errors turned on. It should be off for a live site. Otherwise, trivial coding errors that would not cause a problem may make a plugin or @EVAL TV hang with no error message. [ed. note: BobRay last edited this post 10 years, 8 months ago.]
            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
          • Indeed, for a live site, all errors should be sent to an error log rather than displayed on-screen.

              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