We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 8384
    • 55 Posts
    Evolution v1.0.4; Ditto 2.1.0; YAMS 1.1.9

    Site was working perfectly on other server, moved over to new server, all sections are working except when going to the section that uses Ditto & phx calls. The below error comes up. Any ideas?

    « 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/int2000/39348/html/assets/snippets/ditto/classes/filter.class.inc.php(25) : eval()'d code	 
      Line: 	1	 
     
    Parser timing
      MySQL: 	0.0040 s	(8 Requests)
      PHP: 	0.0680 s	 
      Total: 	0.0720 s
    
    • shell_exec() has been disabled for security reasons
      Does your Ditto tpl use phpthumbs? It uses shell_exec.
        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
        • 8384
        • 55 Posts
        um... I don’t know. Should that impact anything even though it was working fine on one server 10 minutes before, but when I brought everything over to the new server it stopped working?

        and if it does impact, how would I change it?

        undecided

        thanks for your reply! It is very appreciated.
        • Yes, anything that uses shell_exec would stop working if the server it’s put on has it disabled.

            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
            • 8384
            • 55 Posts
            ah ha! okay... do you know how I enable it?

            grin

            Note: did some research and it looks like it’s something set by the hosting server peeps, I will try and get a hold of them on Monday (they’re in Finland and actually take the weekends off!!!) and see what they say.... in the meantime if anyone has any ideas? much obliged.
            smiley
            • Does your server have safe_mode set to ON? That will disable shell_exec. You can find out by looking at the output from the phpinfo() view link in Reports -> System Info. There is a settings block that has an alphabetical list of the PHP settings.
                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
                • 8384
                • 55 Posts
                Oh yes indeedy, when I go there I see:
                Warning: phpinfo() has been disabled for security reasons in /home/int2000/39348/html/manager/actions/phpinfo.static.php on line 29
                .

                Okay, have a cup of tea and wait for Monday.
                undecided