Viewing 15 replies - 1 through 15 (of 29 total)
  • I am having the same problem. Someone please help!

    We are also having a similar problem, when we click the CSV link we get a 404 page with a url that looks like this:

    sitename.com/wp-admin/redirection?page=redirection.php&sub=csv&module=1&token=

    Please help!

    I’m having the same issue too – all I’m actually wanting to do is see what format it needs to be in order to import a list of redirects – does anybody have a sample csv they can post?

    I have exactly the same problem, since last update of Redirection plugin, I can’t export my modules to CSV, RSS, etc.

    When I clic on any export option, I’m redirected to the groups section.

    Send email to the creator of the plugin to notify of this big error and hope he can fix it soon.

    Contact page of the author: https://urbangiraffe.com/contact/

    [email protected]

    (@mikeiannikaleidicocom)

    exporting works in version 2.2.5
    Steps to fix WordPress Redirection plugin export.
    1. Create an excel csv file that looks like this..

    source target hits
    /contact/ https://mydomain.com/ 0
    /6/ /6-2/ 0
    /blog/ https://mydomain.com

    *you can leave the hits field blank if you want
    2. save all your redirections (hopefully you don’t have hundreds)
    3. uninstall version 2.2.13.
    4. install version 2.2.5 and import your csv file (call it module_1.csv)

    mike {dot} ianni {at} kaleidico {dawt} com

    I’ve exactly the same problem ??

    sitename.com/wp-admin/redirection?page=redirection.php&sub=csv&module=1&token=

    also having trouble with exporting from v2.2.13

    I had to downgrade to 2.2.1O for export my datas ??

    HI Everyone,

    I was able to get it to work again by modifying the redirection.php file in the plugin folder.

    Specifically lines: 198 to 208

    function inject() {
    		$options = $this->get_options();
    
    		if ( isset($_GET['token'] ) && isset( $_GET['page'] ) && isset( $_GET['sub'] ) && $_GET['token'] == $options['token'] && $_GET['page'] == 'redirection.php' && in_array( $_GET['sub'], array( 'rss', 'xml', 'csv', 'apache' ) ) ) {
    			include dirname( __FILE__ ).'/models/file_io.php';
    
    			$exporter = new Red_FileIO;
    			if ( $exporter->export( $_GET['sub'] ) )
    				die();
    		}
    	}

    Save and then refresh the modules pages. You should be able to export successfully.

    Cheers!
    Ben

    I’m seeing this in error_log on export:

    NOTICE: wp-content/plugins/redirection/models/match.php:28 – unserialize() [function.unserialize]: Error at offset 0 of 9 bytes

    Just chiming in here to confirm that the fix suggested by bmex63 worked for me using Redirection 2.2.13 and WordPress 3.4 on my main site https://silenciobarnes.com

    Replace tools.php?page=redirection.php with just redirection.php

    After that I was able to export a CSV and view the RSS

    As for the dude that asked about the CSV format, I had the same question – if you didn’t understand mike.ianni’s answer it’s like this

    3 Columns
    source | target | hits
    You don’t have to put anything into the hits column

    I created a few test csv files and successfully uploaded them. The name of the file doesn’t matter.

    Thanks bmex63 for the solution and rashadow for the clarification. This fix worked for me to get the module exported.

    when i tried this in an csv file

    3 Columns
    source | target | hits
    You don’t have to put anything into the hits column

    than it all comes in the “source” and nothing in Target and hits.

    What is wrong.

    Example CSV file:

    source,target,hits
    /category/people/free-time/,/category/people/hobbies/,0
    /category/home/kitchen/,/category/garden/flowers/,0

    If you use regular expressions which contain a ‘,’ you have to enclose that phrase into "...":

    source,target,hits
    "(?i)/news/docs/(\d{2,})\.pdf",/wp-content/uploads/2012/07/$1.pdf,0

    This did work for me successfully.

    Thanks @bmex63 for this fix.

Viewing 15 replies - 1 through 15 (of 29 total)
  • The topic ‘[Plugin: Redirection] Unable to export CSV’ is closed to new replies.