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

    what does this message mean?

    « MODx Parse Error »
    MODx encountered the following error while attempting to parse the requested resource:
    « PHP Parse Error »

    PHP error debug
    Error: shell_exec() has been disabled for security reasons
    Error type/ Nr.: Warning - 2
    File: /home/vol2/nexethosting.com/nexet_1097593/steunpunt.nexethosting.com/htdocs/manager/includes/document.parser.class.inc.php(766) : eval()’d code
    Line: 9

    Parser timing
    MySQL: 1.7060 s (6 Requests)
    PHP: 0.3219 s
    Total: 2.0279 s

    I get it when I want to run an snippet, if that code is necessarily to solve my problem please say it and I will post it.

    Ivar
      • 21496
      • 225 Posts
      Messages like that only talk to Ryan and Jason ... grin

      You have definitely a problem in your snippet that makes modx stumble when the document.parser tries to parse the document, because your snippet probably tries to pass something to the parser it cannot digest.

      It seems something is trying to call shell_exec, which is turned off on your server. Is your snippet using that?
        René
        • 7231
        • 4,205 Posts
        Your PHP configuration doesn’t allow the ’shell_exec()’ function. This is one of the functions disabled when PHP is run in Safe Mode.
        I got this fro a google search, I guess it means that your server is running in safe-mode.
          [font=Verdana]Shane Sponagle | [wiki] Snippet Call Anatomy | MODx Developer Blog | [nettuts] Working With a Content Management Framework: MODx

          Something is happening here, but you don't know what it is.
          Do you, Mr. Jones? - [bob dylan]
          • 28042 ☆ A M B ☆
          • 24,524 Posts
          So basically you have a snippet or a plugin that is using the shell_exec() function on its line 9, but your PHP is configured to run in safe_mode, so you can’t do that.
            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
            • 13246
            • 42 Posts
            oké

            I will try to put the safe-mode off via htaccess (to much c’s or s’s) and look if it works than.