We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 13986
    • 90 Posts
    Upgrade seemed to work fine, but when I try to create a new user I get the following error:

    Fatal error: Call to undefined function quoted_printable() in /var/www/manager/processors/save_user.processor.php on line 477

    It creates the user but doesn’t send out the password via email.

    update: works fine if you set it to show password on screen, but gives error when set to email password
      Jeremy Foster
      • 21257 MODX Staff
      • 730 Posts
      Jeremy,
      Could you please share some system information? Server OS, PHP version?
      Thanks
        Mike Schell
        Lead Developer, MODX Cloud
        Email: [email protected]
        GitHub: https://github.com/netProphET/
        Twitter: @mkschell
        • 13986
        • 90 Posts
        PHP 5.2.6-5 (with the Suhosin Patch 0.9.6.2)
        Apache/2.2.9 (Debian)
        MySQL 5.0.51a
          Jeremy Foster
          • 25663 MODX Staff
          • 12,272 Posts
          That particular version of MySQL is notoriously problematic and has been discussed probably hundreds of times in the forums over the last year, give or take. Can you try to upgrade or downgrade it to see if you have the same issue.
            Ryan Thrash, MODX Co-Founder
            Follow me on Twitter at @rthrash or catch my occasional unofficial thoughts at thrash.me
            • 21257 MODX Staff
            • 730 Posts
            I suspect that the Suhosin patch may be causing function_exists(’quoted_printable’) on line 442 to return true.
            http://us3.php.net/manual/en/function.function-exists.php#77980

            Since you’re using the patch, and not the extension, you’re not able to specify
            suhosin.executor.func.whitelist
            in php.ini

            Would you be able to do a test in Suhosin’s simulation mode? (Maybe not, again because it’s the patch.)
            http://www.hardened-php.net/suhosin/configuration.html#suhosin.simulation

            Do your Suhosin logs tell you anything?

            It would be possible to "fix" this for you by removing that function_exists call on line 442, wrapping the actual quoted_printable() function, but I fear that we could end up with "function already declared" errors if a MODx plugin is installed and also has a quoted_printable() function.
              Mike Schell
              Lead Developer, MODX Cloud
              Email: [email protected]
              GitHub: https://github.com/netProphET/
              Twitter: @mkschell
              • 21191
              • 236 Posts
              Everything looks correct, except I now have an odd looking homepage in the manager
              has a bunch of text that looks like this :
              ��������This resource fork intentionally left blank �����������

              I’ll attach a screenshot
              EDIT: crap, this is in the wrong section.. can an admin move it?
                ~Shawn Himmelberger
                Check out my MODx Development and MODx Design Company - Himmelberger Design
                • 21257 MODX Staff
                • 730 Posts
                Jeremy: Attached is a new version of manager/processors/save_user.processor.php
                I’m fairly confident that the error you’re seeing will go away.
                Please respond to the bug report in Jira with any further problems related to this:
                http://svn.modxcms.com/jira/browse/MODX-1065
                  Mike Schell
                  Lead Developer, MODX Cloud
                  Email: [email protected]
                  GitHub: https://github.com/netProphET/
                  Twitter: @mkschell
                  • 13986
                  • 90 Posts
                  Thanks netProphET, that solved it.
                    Jeremy Foster
                    • 36549
                    • 572 Posts
                    Cheers netProphET, that solved it for me too.

                      www.9thwave.co.uk
                         WEB | DESIGN | PRINT