Tag Archives: import

Failed to import Media – Solved

If you’re running WordPress and trying to export and import posts with the WordPress Importer you may be getting an error saying Failed to import Media Fortunately this plugin allows error debugging – you just have to turn it on. You can figure out what is causing the error by turning debugging on. There are two methods for this. First, you can edit the plugin file: /wp-content/plugins/wordpress-importer/wordpress-importer.php Change line 17: define( ‘IMPORT_DEBUG’, false ); to instead be true: define( ‘IMPORT_DEBUG’, true ); You can also edit your wp-config.php file and add this line: define( ‘IMPORT_DEBUG’, true ); That should hopefully help you stop this error: However since the plugin will attempt to redefine a constant that is already defined it may add errors to your log files, which means you should probably use the first method, or just remove line 17 from the plugin file.

Posted in Web Development | Tagged , | Leave a comment

fix “max_allowed_packet” on MySql

MySQL Error 1153 – Got a packet bigger than ‘max_allowed_packet’ bytes To fix this I ran these two commands in mySQL before executing the queries that were giving me the error message about the max allowed packet bytes. set global net_buffer_length=1000000; set global max_allowed_packet=1000000000;

Posted in Server Admin, Server Administration, Tech Tips, Web Development | Tagged , , | Leave a comment