• Resolved redkite

    (@redkite)


    I’ve tried to move this site several times from Inmotion to Cloudways today. Plenty of resources – the file is 1GB, max upload size is 2GB, execution limit 3600s, mem limit 4GB.

    This is the error:

    [proxy_fcgi:error?[pid 522523:tid 140403479144192?[client 38.75.238.61:0?AH01071: Got error ‘PHP message: PHP Fatal error: Uncaught Error: Call to undefined function putenv() in /public_html/wp-config.php(86): require_once(‘…’)/public_html/w…’, referer: /wp-admin/admin.php?page=ai1wm_import

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Yani

    (@yaniiliev)

    It looks like you’re encountering a fatal error due to the putenv() function being undefined. This function is often disabled for security reasons on some hosting environments. Here are a few steps you can take to resolve this issue:

    1. Ensure that the putenv() function is enabled in your PHP configuration. You can do this by contacting your hosting provider or checking the php.ini file for a line that disables putenv() (e.g., disable_functions).

    2. If you can’t enable putenv(), you may need to modify the wp-config.php file to avoid using this function. Look for the line in wp-config.php that uses putenv() and comment it out or replace it with a different method.

    3. Contact Cloudways support and explain the issue. They might be able to adjust the server configuration to enable putenv() or provide an alternative solution.

    Thread Starter redkite

    (@redkite)

    There is no reference to putenv() in wp-config.php or php.ini from the Inmotion site. Cloudways confirms it’s disabled on their servers. Still talking to them about alternatives.

    Thread Starter redkite

    (@redkite)

    So, Cloudways enabled it for this application only and I was able to complete the migration. Once I’ve rebuilt the theme and removed many of the old plugins, we’ll try to disable it again. Thanks.

Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.