Import Wordpress xml file larger than 8mb
-
-
Wenn Sie übereinen Befehlszeilenzugriff verfügen,können Sie WP_CLI ausprobieren.If you have command line access, you could try WP_CLI.
- 0
- 2014-12-23
- Welcher
-
10 Antworten
- Stimmen
-
- 2013-11-15
OPTION 1: Wenneine WordPress WXR-Datei,eine aus WordPressexportierte XML-Datei,zugroß zum Importierenist,können Sie versuchen,diese Grenze zu überwinden.
Erhöhen Sie den Speicherbedarfeines PHP-Skripts. Hinweis: Wenn Sieeinen gemeinsamgenutzten Hosting-Dienst verwenden,müssen Siemöglicherweise Ihren Hostbitten,das Limit zuerhöhen.
Erhöhen Sie die Speicherbegrenzungseinstellungin php.ini (z. B.memory_limit=64M;). Viele Hostserlauben diesmöglicherweisenicht.
Erhöhen Sie das Speicherlimit über .htaccess (z. B.php_valuememory_limit 64M). Viele Hostserlauben diesmöglicherweisenicht.
Erhöhen Sie das Speicherlimit über wp-config.php (z. B. define ('WP_MEMORY_LIMIT','64MB');)
Erhöhen Sie diemaximale Zeit,dieein PHP-Skript ausgeführt wird. Hinweis: Wenn Sieeinen gemeinsamgenutzten Hosting-Dienst verwenden,müssen Siemöglicherweise Ihren Hostbitten,das Limit zuerhöhen.
Erhöhen Sie diemaximale Ausführungszeitin php.ini (z. B.max_execution_time=600;). Viele Hostserlauben diesmöglicherweisenicht.
Erhöhen Sie die Größeneinstellungenfür PHP-Upload-Dateien. Hinweis: Wenn Sieeinen gemeinsamgenutzten Hosting-Dienst verwenden,müssen Siemöglicherweise Ihren Hostbitten,das Limit zuerhöhen.
Erhöhen Sie die Einstellungswertein php.ini (z. B. upload_max_filesize=64M; undpost_max_size=64M;). Viele Hostserlauben diesmöglicherweisenicht.
Erhöhen Sie die Einstellungswerte über .htaccess (z. B.php_value upload_max_filesize 64M undphp_valuepost_max_size=64M). Viele Hostserlauben diesmöglicherweisenicht.
Erhöhen Sie die Einstellwerte überini_set-Zeilenin wp-config.php. Sprechen Siemit Ihrem Host,um die richtigen Werte zuerhalten.
Erhöhen Sie die Größenbeschränkungfür das Hochladen von Dateien und/oder die Speicherplatzbeschränkungfür das Hochladen von Dateien:
Melden Sie sich als Administratorbei wp-admin an.
Klicken Sieim Navigationsfeld Site Admin auf "Optionen"
Scrollen Sienach unten und ändern Sie die Einstellungenfür "Maximale Upload-Dateigröße" und/oder "Blog-Upload-Speicherplatz"
GZip die Datei. Beieinigen Hosting-Diensten kanneine komprimierte Datei automatischim Hintergrunderweitert werden,ohne dass WordPressjemals den Unterschiedbemerkt. Auf diese Weise können Sie die Datei so kleinmachen,dass sie denmaximalen Einschränkungenfür die Upload-Größeentspricht.
Verwenden Sie unter Windows 7Zip,umein gz-Archiv aus der wxr-Datei zuerstellen.
Verwenden Sie unter Linux die Befehlszeilegzip.
Stellen Sie vor dem Hochladen sicher,dass die resultierende Datei die Dateierweiterung ".gz" hat,da dies häufigerforderlichist.
Diesfunktioniertgarantiertnicht,da dies stark von der Hosting-Konfiguration abhängt. Wenn diesfehlschlägt,versuchen Sie stattdesseneine andere Methode.
-
Brechen Sie die WordPress WXR-Dateiin kleinere Teile indem Sie die Daten zwischen Poststrennen und die Kopf-/Fußzeilein jede Dateieinfügen.
Sichern Sie wieimmer vor dem Importieren derneuen XML-Dateien die Datenbank des Blogs,in das Sie die XML-Dateienimportieren,undexportieren Sie auch die XML-Datei dieses Blogs.
Zu Ihrer Information,diese Informationenfinden Sieim WP Migrate zu verwenden DB Pro (kostenpflichtig) Plugin. Trotz des Namens werdenmit einem Add-On auch Mediendateienimportiert. Ichbin persönlich auf Situationengestoßen,in denen keine der obengenannten Methodenfunktioniert hat - dieeinzige Lösungbestand darin,dieses Plugin zu verwenden.
OPTION 1: If a WordPress WXR file, an XML file exported from WordPress, is too large to import, there are several things you might try to overcome that limit.
Increase the amount of memory a PHP script may consume. Note: If using a shared hosting service, you may need to ask your host to increase the limit.
Increase the memory limit setting in php.ini (e.g. memory_limit = 64M ;). Many hosts may not allow this.
Increase the memory limit via .htaccess (e.g. php_value memory_limit 64M). Many hosts may not allow this.
Increase the memory limit via wp-config.php (e.g. define('WP_MEMORY_LIMIT', '64MB');)
Increase the maximum amount of a time a PHP script will run. Note: If using a shared hosting service, you may need to ask your host to increase the limit.
Increase the maximum execution time in php.ini (e.g. max_execution_time = 600 ;). Many hosts may not allow this.
Increase the PHP upload files size settings. Note: If using a shared hosting service, you may need to ask your host to increase the limit.
Increase the setting values in php.ini (e.g. upload_max_filesize = 64M ; and post_max_size = 64M ;). Many hosts may not allow this.
Increase the setting values via .htaccess (e.g. php_value upload_max_filesize 64M and php_value post_max_size = 64M). Many hosts may not allow this.
Increase the setting values via ini_set lines in wp-config.php. Talk to your host for the correct values.
Increase the file upload size limit and/or file upload space limit:
Login to wp-admin as an administrator.
In the Site Admin navigation box, click "Options"
Scroll down and change the settings for "Max upload file size" and/or "Blog upload space"
GZip the file. On some hosting services, a gzipped file can be automatically expanded in the background, without WordPress ever knowing the difference. This can allow you to make the file small enough to be fit into the maximum upload size constraints.
On Windows, use 7Zip to create a gz archive out of the wxr file.
On Linux, use the gzip command line.
Make sure that the resulting file has the file extension of ".gz" before uploading it, as this is often necessary.
This is not guaranteed to work, as it highly depends on the hosting configuration. If this fails, then try another method instead.
Break the WordPress WXR file into smaller pieces by separating the data between posts and pasting the header/footer into each file.
As always, before importing the new XML's, backup the database of the blog you are importing the XML files to and might as well export XML file of that blog as well for good measure.
FYI, this info is available in the Codex.
OPTION 2: It is definitely more robust and probably easier to use the WP Migrate DB Pro (paid) plugin. Despite the name, with an add-on it also imports media files. I have personally encountered situations where none of the above methods worked - the only solution was to to use this plugin.
-
Diebestätigte GZip-Lösung hatbei mir hervorragendfunktioniert.Eine 25-MB-Datei wurde zueiner 2-MB-Datei,und WordPress verstandesperfekt.Confirmed GZip solution worked great for me. Had a 25mb file turn into a 2mb one, and WordPress perfectly understood it.
- 0
- 2017-10-25
- Tobiah Zarlez
-
Die GZip-Importlösung hatbei mirfunktioniert,Medien werdenjedochnicht hochgeladenGZip import solution worked for me, however medias won't upload
- 0
- 2018-08-29
- iamkingsleyf
-
- 2013-08-27
wenn Sie Zugriff auf die .htaccess-Dateiin Ihrem www-Ordner haben.Fügen Sieeinfach diefolgenden 2 Zeilenin .htaccessein:
php_value upload_max_filesize 50M php_value post_max_size 50M
Auf andere Weise können Sie diesen Codein die Dateifunctions.php Ihres Themaseinfügen.
@ini_set( 'upload_max_size' , '50M' ); @ini_set( 'post_max_size', '50M');
if you have access to the .htaccess file in your www folder. Just include the following 2 lines in .htaccess:
php_value upload_max_filesize 50M php_value post_max_size 50M
Other way .. you can place this piece of code in your theme's functions.php file
@ini_set( 'upload_max_size' , '50M' ); @ini_set( 'post_max_size', '50M');
-
Ich habe keinen Zugriff auf die .htaccess-Datei. Der zweite Vorschlag scheinterreichbar zu sein.Sollteesirgendwoin der Dateifunctions.phpplatziert werden?I don't have access to the .htaccess file the second suggestion seems achievable. Should it be placed anywhere particular in the functions.php file?
-
yap versuchen Siees und sagen Sie,obesgeholfen hat.yap try it and tell if it did help .
- 0
- 2013-08-27
- Prince Singh
-
Leider @ini_set ('upload_max_size','50M'); @ini_set ('post_max_size','50M');funktioniertnicht,es wirdein Serverfehler zurückgegeben.Irgendwelche anderen Vorschläge?Sicheristjemand schoneinmal daraufgestoßen.Unfortunately @ini_set( 'upload_max_size' , '50M' ); @ini_set( 'post_max_size', '50M'); doesn't work it returns a server error. Any other suggestions? Surely someone has come across this before.
-
Haben Sie Zugriff auf die Dateiphp.ini?do you have access to php.ini file ?
- 0
- 2013-08-27
- Prince Singh
-
Sie können dies versuchen http://docs.appthemes.com/tutorials/how-to-increase-upload-size-in-wordpress/you can try this http://docs.appthemes.com/tutorials/how-to-increase-upload-size-in-wordpress/
- 0
- 2013-08-27
- Prince Singh
-
Entschuldigung,haben Sie Ihre Anfragenichterhalten?sorry didnt get your query ?
- 0
- 2013-08-29
- Prince Singh
-
Ichglaubenicht,dass die WordPress-Importfunktion die Auswahleiner XML-Datei vorsieht,die sichbereits auf dem Serverbefindet.Dasist schade,es würdein einer solchen Situation wirklich helfen.I don't think the WordPress import feature has a provision for choosing an XML file that is already on the server. That's too bad, it would really help for a situation like this.
- 0
- 2013-09-05
- Ben Miller - Remember Monica
-
- 2013-09-05
Laut dem Codex sollten Siein der Lage sein,die XML-Dateiin Teile aufzuteilen und zuimportieren sie separat. Hierist,wieichesmachen würde.
Die WordPress-XML-Exportdatei hatein Format,das sie WordPresseXtended RSS (WXR)nennen,und siehtfolgendermaßen aus (einige Zeilen weggelassen):
<?xml version="1.0" encoding="UTF-8" ?> <rss version="2.0" > <channel> <!-- several tags about your blog, including title, link, description, etc. --> <wp:author><!-- a list of your post authors here --></wp:author> <wp:category><!-- a list of your categories --></wp:category> <wp:tag><!-- first tag info --></wp:tag> <wp:tag><!-- second tag info, etc. --></wp:tag> <generator>http://wordpress.org/?v=3.6</generator> <item> <!-- first blog post here --> </item> <item> <!-- second blog post here, etc. --> </item> </channel>
Siemüssen diesin mindestens 6 verschiedene Dateien aufteilen,um unter Ihrem 8-MB-Limit zubleiben. Kopieren Sie die Datei,bis Sie 6 oder 7 Kopien der Datei haben. Entfernen Sie dannin jeder Kopieeinige der
<item>
-Elemente (Beiträge),bis Sie unter 8 MB sind. Daherenthältjede Dateiim ersten Teil der Dateiidentische Informationen und unterscheidet sichnurim Abschnitt<item>
. Stellen Sie sicher,dass Sienicht denselben Beitragin mehr alseine Datei aufnehmen,daer sonst zweimalimportiert wird. Importieren Sie dannjede Dateieinzeln.According to the codex, you should be able to split the XML file into pieces and import them separately. Here is how I would do it.
The WordPress XML export file is in a format they call WordPress eXtended RSS (WXR), and looks like this (some lines left out):
<?xml version="1.0" encoding="UTF-8" ?> <rss version="2.0" > <channel> <!-- several tags about your blog, including title, link, description, etc. --> <wp:author><!-- a list of your post authors here --></wp:author> <wp:category><!-- a list of your categories --></wp:category> <wp:tag><!-- first tag info --></wp:tag> <wp:tag><!-- second tag info, etc. --></wp:tag> <generator>http://wordpress.org/?v=3.6</generator> <item> <!-- first blog post here --> </item> <item> <!-- second blog post here, etc. --> </item> </channel>
You'll need to split this into at least 6 different files to stay under your 8MB limit. Copy the file until you have 6 or 7 copies of the file. Then in each copy, remove some of the
<item>
elements (posts) until you are under 8MB. So each file will have identical information in the first part of the file, and will only differ in the<item>
section. Make sure you don't include the same post in more than one file, or it will get imported twice. Then import each file, one at a time. -
- 2013-10-15
Sie könneneine Anwendung herunterladen,um große XML/WXR-Dateien zuteilen in kleinere Dateien
Oder Sie können den Upload & amp;Veröffentlichen Sie Limitsin Ihrerphp.ini-Dateiin cPanel.
There's a application you can download to split large XML/WXR files into smaller files
Or you can change the upload & post limits in your php.ini file in cPanel.
-
- 2014-04-13
Diesist die Lösung ..... hoffe,Sie werdenesgenießen
Sie können diese Einstellung ändern,indem Sieeine einfache Textdateierstellen undin den Ordner
wp-admin
legen.Um diese Datei zuerstellen,müssen Sie lediglichein einfaches Textprogramm wietextedit aufeinem Mac odereinen Editor unter Windows öffnen und diesebeiden Codezeileneingeben.
upload_max_filesize = 64M; post_max_size = 32M;
Sie könneneinen beliebigen Werteingeben. Ich habenur 64 und 32 ausgewählt,weil sie wiegute Zahlen aussahen.Jetzt speichern Sieeinfach die Datei undnennen sie
php.ini
. Das Programmfragt Sie,ob Sie die Erweiterung.ini
verwendenmöchten. Klicken Sie auf use.ini
und speichern.Jetztmüssen Sie die Dateinurnoch auf Ihren Server hochladen undim Ordner "wp-admin
" ablegen. Einebeliebige Stelleim Stammbereich des Ordnersistin Ordnung.Melden Sie sichjetztin Ihrem WordPress-Kontrollfeld an und versuchen Sie,etwas Großes hochzuladen.Es sollte Ihnen keine Problemebereiten und hochladen,was Sie wollen!
This is the solution..... hope you will enjoy
You can change that setting by making a simple text file and putting it into the
wp-admin
folder.So to make this file all you have to do is open a simple text program like textedit on Mac or notepad on Windows and type these two lines of code.
upload_max_filesize = 64M; post_max_size = 32M;
You can put in any value you want I just chose 64 and 32 because they seemed like good numbers. So now you just save the file and name it
php.ini
the program will ask you if you want to use the.ini
extension, click use.ini
and save. Now all that is left to do is upload the file to your server and place it in the "wp-admin
" folder, anywhere in the root section of the folder is fine.Now login to your WordPress control panel and try and upload something large. It shouldn't give you any problems and upload whatever you want!
-
- 2016-10-13
Alles was Siebrauchenist dieses Plugin
Maximale Upload-Dateigrößeerhöhen
Herunterladen und Installieren von wordpress.org
Geben Sie den Wert (bis zu 250 MB)in Byteein undgenießen Sie.
Wenn Siejedocheine große Datei hochladen,müssen Siemöglicherweise das Memory Bump-Plugininstalliert haben oder die Ausführungszeitmanuell verlängern.
all you need is this plugin
Increase Max Upload Filesize
Download and install from wordpress.org
enter the value (up to 250mb) in bytes, and enjoy.
However, if you are uploading a large file, you may need to have installed memory bump plugin or increasse execution time manually
-
Bitte [bearbeiten Sie Ihre Frage] (http://wordpress.stackexchange.com/posts/242533/edit),umeinen Link zu dem von Ihnen vorgeschlagenen Pluginbereitzustellen.Beachten Sie auch,dass dieses Pluginnichtfunktioniert,wenn Ihr Hosting-Anbieteres Ihnennichterlaubt,die PHP-Wertefür "upload_max_filesize" (undmöglicherweise "memory_limit") zuerhöhen.Please [edit your question](http://wordpress.stackexchange.com/posts/242533/edit) to provide a link to the plugin you're suggesting. Also note that this plugin won't work if your hosting provider doesn't allow you to increase PHP's `upload_max_filesize` (and possibly `memory_limit`) value(s).
- 0
- 2016-10-13
- Pat J
-
Hierist der Link,aber Sie können aucheinfachin Ihrem Abschnitt Plugins hinzufügen suchen: https://wordpress.org/plugins/upload-max-file-size/Here's the link, but you can also just search in your Add Plugins section: https://wordpress.org/plugins/upload-max-file-size/
- 0
- 2018-11-28
- tmarkiewicz
-
- 2016-10-13
Wennes Ihnen zur Verfügung steht,bietet WP-CLIeinen Importbefehl an,der unbestreitbar deristbeste Weg,umgroße WXR-Dateien zuimportieren.Esbietet aucheinen Exportbefehl ,mit dem Sie WXR-Dateienexportieren undin die aufteilen könnenVon Ihnen angegebene Dateigröße.
If it's available to you, WP-CLI offers an import command which is inarguably the best way to import large WXR files. It also offers an export command which allows you to export WXR files and it will split them into the file size you specify.
-
- 2017-01-25
Ich habe diese Methode von Gaia ausprobiert undes hat dank Gia
problemlosfunktioniertGZip die Datei.Beieinigen Hosting-Diensten kanneine komprimierte Datei automatischim Hintergrunderweitert werden,ohne dass WordPressjemals den Unterschiedbemerkt.Auf diese Weise können Sie die Datei so kleinmachen,dass sie denmaximalen Einschränkungenfür die Upload-Größeentspricht.
Verwenden Sie unter Windows 7Zip,umein gz-Archiv aus der wxr-Datei zuerstellen.
Verwenden Sie unter Linux die Befehlszeilegzip.
Stellen Sie vor dem Hochladen sicher,dass die resultierende Datei die Dateierweiterung ".gz" hat,da dies häufigerforderlichist.
Diesfunktioniertgarantiertnicht,da dies stark von der Hosting-Konfiguration abhängt.Wenn diesfehlschlägt,versuchen Sie stattdesseneine andere Methode.
• Teilen Sie die WordPress WXR-Dateiin kleinere Teile,indem Sie die Daten zwischen den Poststrennen und die Kopf-/Fußzeilein jede Dateieinfügen.
I tried this method by Gaia and it worked no problem thanks Gia
GZip the file. On some hosting services, a gzipped file can be automatically expanded in the background, without WordPress ever knowing the difference. This can allow you to make the file small enough to be fit into the maximum upload size constraints.
On Windows, use 7Zip to create a gz archive out of the wxr file.
On Linux, use the gzip command line.
Make sure that the resulting file has the file extension of ".gz" before uploading it, as this is often necessary.
This is not guaranteed to work, as it highly depends on the hosting configuration. If this fails, then try another method instead.
•Break the WordPress WXR file into smaller pieces by separating the data between posts and pasting the header/footer into each file.
-
- 2018-09-07
Ich habeimmerfestgestellt,dass dereinfachste Weg darinbesteht,die Datei user.iniim Stammverzeichnis der WP-Installation zubearbeiten odereine hinzuzufügen.
Plugins wie WordFence und andere,diemit Systemeinstellungen arbeitenmüssen,tun dies häufig,da siemit WordPress undmehreren Systemengutfunktionieren.
Bearbeiten odererstellen Sieeine user.ini-Dateiim WP-Stammverzeichnis,kopieren Sie denfolgenden Code,fügen Sieihnein und speichern Sieihn.Wenn Sie Caching verwenden,leeren Sie diese und aktualisieren Sie die Seite,auf die Sie hochladen.
Inmeiner WP-Installationist der Speicher auf 64 MBeingestellt undich habe die Dateigröße auf 5 MBbegrenzt. Ändern Sie sowohl
upload_max_filesize
als auchpost_max_size
in etwas Größeres als die Datei,die Sie hochladen.; Memory and file sizes memory_limit = 64M upload_max_filesize = 5M post_max_size = 5M file_uploads = On max_execution_time = 300 ; End Upload Restrictions
I've always found the simplest way is be editing the user.ini file in the root of the WP installation, or adding one.
Plugins like WordFence and others that need to operate on system settings, will often do that because it plays nice with WordPress and several systems.
Edit or create a user.ini file in the WP root directory, copy/paste the code below, and save it. If you're using any kind of caching, flush them, then refresh the page you're uploading on.
In my WP installation the memory is set to 64M and I limited file sizes to 5M. Change both
upload_max_filesize
andpost_max_size
to something larger than the file you're uploading.; Memory and file sizes memory_limit = 64M upload_max_filesize = 5M post_max_size = 5M file_uploads = On max_execution_time = 300 ; End Upload Restrictions
-
- 2019-06-25
Ich habe
wpcli
als Befehlszeile ausprobiert. Viele Dinge werden auch am Endeerledigt.Meine XML-Dateigrößebetrug ca. 10 MB.
In wp-config.php
set_time_limit( 86400 ); define('WP_CACHE', false); define('WP_MEMORY_LIMIT', '1G'); define('WP_MAX_MEMORY_LIMIT', '1G');
Beispielfür wpcli
$ wp import example.wordpress.2016-06-21.xml --authors=skip
I tried
wpcli
as it's command line , many things are handled at their end as well.My XML file size was approx 10 MB.
In wp-config.php
set_time_limit( 86400 ); define('WP_CACHE', false); define('WP_MEMORY_LIMIT', '1G'); define('WP_MAX_MEMORY_LIMIT', '1G');
Example of wpcli
$ wp import example.wordpress.2016-06-21.xml --authors=skip
Ich versuche,eine XML-Datei (auseinem früheren WordPress-Thema)in einneues WordPress-Thema zuimportieren.Das Problemist,dass die XML-Datei 46 MB vielgrößerist als das WordPress-Limit von 8 MB.Hatjemand Ratschläge/Empfehlungen zum Importieren dieser Datei?
Danke
apagey