Skip to content

Instantly share code, notes, and snippets.

@ihorduchenko
Created August 11, 2017 08:27
Show Gist options
  • Save ihorduchenko/47060472e59cdf0e66a33277dbf17351 to your computer and use it in GitHub Desktop.
Save ihorduchenko/47060472e59cdf0e66a33277dbf17351 to your computer and use it in GitHub Desktop.
Removing the 512MB size limit on All-in-One WP Migration Plugin
Path:
/wp-content/plugins/all-in-one-wp-migration/constants.php
Change this block:
// =================
// = Max File Size =
// =================
define( 'AI1WM_MAX_FILE_SIZE', 536870912 );
to this block
// =================
// = Max File Size =
// =================
define( 'AI1WM_MAX_FILE_SIZE', 536870912 * 8 );
@linuskom
Copy link

This has changed now they have it as;

// =================
// = Max File Size =
// =================
define( 'AI1WM_MAX_FILE_SIZE', 2 << 28 );

// ==================
// = Max Chunk Size =
// ==================
define( 'AI1WM_MAX_CHUNK_SIZE', 5 * 1024 * 1024 );

// =====================
// = Max Chunk Retries =
// =====================
define( 'AI1WM_MAX_CHUNK_RETRIES', 10 );

@Budolfsen
Copy link

Change this code from

// =================
// = Max File Size =
// =================
define( 'AI1WM_MAX_FILE_SIZE', 2 << 28 );

// =================
// = Max File Size =
// =================
define( 'AI1WM_MAX_FILE_SIZE', 20 << 28 );

Then you got 5 gb

@seanbperiod
Copy link

Change this code from

// =================
// = Max File Size =
// =================
define( 'AI1WM_MAX_FILE_SIZE', 2 << 28 );

// =================
// = Max File Size =
// =================
define( 'AI1WM_MAX_FILE_SIZE', 20 << 28 );

Then you got 5 gb

This no longer works.. Any other solution?

@Dreadstunlock
Copy link

Change this code from
// =================
// = Max File Size =
// =================
define( 'AI1WM_MAX_FILE_SIZE', 2 << 28 );
// =================
// = Max File Size =
// =================
define( 'AI1WM_MAX_FILE_SIZE', 20 << 28 );
Then you got 5 gb

This no longer works.. Any other solution?

I can confirm for some reason it doesn't work anymore, someone got a solution? Bump*

@louson21
Copy link

It's still working. Make sure to install the all-in-one-wp-migration-file-extension.zip first before applying the method from @Budolfsen

@Gabula145
Copy link

it has worked for me after spending two days on YouTube tutorials, thanks man

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment