• My blogspot XML file is about 90 MB (24,000+ posts).

    I’m trying to break down the files to less than 20 MB each (the limit on my ISP is 20MB).

    I have tried the WXR Splitter utility, but it has not worked on the half dozen machines that I have tried it on, I get a, “System.ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection,” error, and I have tried it on about a half dozen machines.

    I am looking for a way to split the files, either something that works in Windows 10, or on a shell account (Python, Perl, etc.).

    I have access to the shell on my ISP.

    Any suggestions?

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

Viewing 6 replies - 1 through 6 (of 6 total)
  • Moderator James Huff

    (@macmanx)

    How about just increasing your maximum file upload size instead?

    The maximum upload size is controlled at the server-level, not by WordPress. Here are three ways you can increase the upload limit:

    1. If you can edit or override the system php.ini file, increase the maximum file and post sizes. For example, upload_max_filesize = 100M ; and post_max_size = 100M ;

    2. If you cannot edit or override the system php.ini file, add php_value upload_max_filesize 100M and php_value post_max_size 100M to your .htaccess file.

    3. If neither of these work, it’s time to ask your hosting provider to increase the maximum file and post sizes on your account. Keep in mind that most decent hosting providers allow this, and If your hosting provider won’t accommodate you, perhaps it’s time to find a new hosting provider.

    (in the above examples, the limit is set to 100MB)

    • This reply was modified 3 years, 9 months ago by James Huff. Reason: typo
    Thread Starter Matthew G. Saroff

    (@msaroff)

    I did that, though perhaps I did it wrong:

    
    <filesmatch "^(.htaccess|wp-config.php|wp-settings.php)$">
        order allow,deny
        deny from all
    </filesmatch>
    
    Options All -Indexes
    # AddHandler "proxy:unix:/run/php/7.0/msaroff|fcgi://localhost" .php
    # AddHandler "proxy:unix:/run/php/8.0/msaroff|fcgi://localhost" .php
     AddHandler "proxy:unix:/run/php/7.4/msaroff|fcgi://localhost" .php
    
    # BEGIN WordPress
    # The directives (lines) between "BEGIN WordPress" and "END WordPress" are
    # dynamically generated, and should only be modified via WordPress filters.
    # Any changes to the directives between these markers will be overwritten.
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
    RewriteBase /~msaroff/40years/
    RewriteRule ^index\.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /~msaroff/40years/index.php [L]
    </IfModule>
    # END WordPress
        php_value upload_max_filesize 128M
        php_value post_max_size 128M
        php_value memory_limit 256M
        php_value max_execution_time 3000
        php_value max_input_time 3000
    

    I could go to the ISP and get permission, but I would prefer not to, since I am months away from the move, but I want to start using the WP site as a backup now.

    Moderator James Huff

    (@macmanx)

    post_max_size is missed an =

    See my example above. ??

    Thread Starter Matthew G. Saroff

    (@msaroff)

    So, do I need an equals sign on all the lines, or just the post_max_size?

    Moderator James Huff

    (@macmanx)

    Huh, actually you don’t, my mistake.

    What you have is right, what I had is wrong, I’ll edit that above.

    Try removing the spaces before the lines, align them direct to the left.

    Thread Starter Matthew G. Saroff

    (@msaroff)

    I found a solution, at least for Windows and Windows emulator users involving a PowerPhell script.

    The guy posted about it on his blog about 7 years ago, and has a link to the .ps1 file, and the Github is here.

    You need to modify the first line of the file to put in the file name, the number of records to group together, and the elements that you are counting (“entry” case sensitive without the quotes for Blogspot).

    You need to dial in the number, to make it work. (This is a blogger importer crashing thing, the script works fine, at about 2000 posts a minute) It seems to be about 2M-4M for each thousand posts you break it at.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Looking for File Splitter for Blogger Import’ is closed to new replies.