• Resolved lyraparish

    (@lyraparish)


    Hi,

    I’m in the process of trying to migrate my hosting from godaddy to siteground and I’ve come across this error.

    Critical Environment Error
    We’ve encountered a critical error in your current hosting environment that prevents our plugin to complete the transfer.

    I’ve checked my folder (0755) and file permissions (0644) and made sure they were correct. Any help would be appreciated.

    The page I need help with: [log in to see the link]

Viewing 7 replies - 1 through 7 (of 7 total)
  • Thread Starter lyraparish

    (@lyraparish)

    This is as far as it goes and fails in this process:

    Website Migration in Progress
    Transfer started. Creating archives of files…

    Thread Starter lyraparish

    (@lyraparish)

    I also went and checked in my wp-content folder and got this error. I think I deleted my personal information. How do I solve this? I’d like to get this done ASAP.

    [11-Dec-2020 17:44:15 UTC] INFO: Transfer started. Creating archives of files…
    [11-Dec-2020 17:44:15 UTC] INFO: Updating transfer id.
    [11-Dec-2020 17:44:15 UTC] INFO: Updating transfer psk.
    [11-Dec-2020 17:45:03 UTC] INFO: Critical Environment Error
    [11-Dec-2020 17:45:03 UTC] ERROR: Array
    (
    [type] => 1
    [message] => Uncaught PharException: tar-based phar “/wp-content/uploads/1607677056-a00664c27fb9bea44f3f2e01eedece17ee564011/plugins/deactivate.tar” cannot be created, filename “woocommerce3/packages/woocommerce-admin/dist/chunks/analytics-report-categories~analytics-report-coupons~analytics-report-customers~analytics-report-dow~99eefb40.14e64a592bdaa342c3a7.min.js” is too long for tar file format in public_html/wp-content/plugins/siteground-migrator/includes/class-siteground-migrator-files-service.php:205
    Stack trace:
    #0 public_html/wp-content/plugins/siteground-migrator/includes/class-siteground-migrator-files-service.php(205): PharData->buildFromDirectory(‘/home/…’)
    #1 public_html/wp-content/plugins/siteground-migrator/includes/class-siteground-migrator-files-service.php(146): Siteground_Migrator_Files_Service->create_encrypted_archive(‘/plugins/deacti…’)
    #2 public_html/wp-content/plugins/siteground-mi
    [file] => public_html/wp-content/plugins/siteground-migrator/includes/class-siteground-migrator-files-service.php
    [line] => 205

    Thread Starter lyraparish

    (@lyraparish)

    Can someone please help me? I’d like to get this done ASAP and I’m still having issues. I’ve even emailed the developer. I’m honestly somewhat regretting switching hosting platforms considering this isn’t as easy as they made it sound. Might be asking for a refund and going somewhere else after this.

    Thread Starter lyraparish

    (@lyraparish)

    I’m just going to keep updating here so maybe it helps someone else who comes across this same issue.

    So, I thought maybe it was Woocommerce. I went to the thread that hasn’t been updated in 6 months. I tried to rollback my Woocommerce to 4.2.1 like Site Migrator says, that didn’t work.

    I tried to second option of deactivating and deleting Woocommerce then tried the migration process. Now I’m getting this error.

    [type] => 1
    [message] => Allowed memory size of 268435456 bytes exhausted (tried to allocate 99314224 bytes)

    • This reply was modified 3 years, 4 months ago by lyraparish.
    Thread Starter lyraparish

    (@lyraparish)

    I’ve just edited the file wp-config.php to this.

    define( ‘WP_MEMORY_LIMIT’, ‘768M’ );

    Let’s cross our fingers it works this time. Not hopeful though.

    Plugin Author Stanimir Stoyanov

    (@sstoqnov)

    SiteGround Representative

    Hey @lyraparish

    Regarding the Woocommerce issue, please update to the latest version. If the issue still exists, please open a separate thread and we will try to fix it asap.

    Regarding the memory issue, please check if you have any big files in your themes/plugin folder, like zip archives, database export, etc.

    Regards,
    Stanimir

    I managed to solve the Critical Environment Error – Godaddy to SiteGround by uploading a file with the name “.user.ini” at the root of my site in godaddy with this content:

    memory_limit = 1024M
    max_execution_time = 1200
    post_max_size = 512M
    max_input_vars = 15000
    max_input_time = 1200

    plus adding the command
    define( ‘WP_MEMORY_LIMIT’, ‘768M’ );
    to the wp-config.php file.

    Then i restarted my php version on godaddy to be sure that the server was working with these changes.
    i confirmed these settings were active on the tools>health section of my site.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Critical Environment Error – Godaddy to SiteGround’ is closed to new replies.