Simple 301 Redirects - Addon - Bulk Uploader
[resolved] CSV export typo (7 posts)

  1. morecow
    Posted 1 year ago #

    The CSV export link (between two links at the top of the options page) has an error. I think it has to do with double quotes/single quotes. Here's the line:

    <a href='<?= admin_url('admin.php?action=bulk301export') ?>'>Export current 301's to CSV</a>

    When I paste the url in the browser, the export works. It's just the link that's faulty.


  2. Ash Durham
    Plugin Author

    Posted 1 year ago #

    Hi Morecow,

    I have the link working ok for me. What browser are you using there? All the quotes in that line are ok as the single quotes in between the PHP tags don't come into play when the page is rendered, otherwise the link wouldn't generate correctly.

    When you say it has an error, what is that error exactly? This link creates a csv file (as a page) on the fly. It could just be that the page isn't compatible with the browser (browser is unable to read it and in turn can't return the file to you correctly). I'd be interested to know so that I can get it fixed up to work across the board if it is that issue.

    Thanks, look forward to hearing from you.

  3. morecow
    Posted 1 year ago #

    Hi Ash,

    I'm using the latest version of Google Chrome on Windows 7. The same error happens in the latest Firefox.

    The link text itself shows '> in front of the text 'Export current 301's to CSV'.

    To clarify: when I manually go to the page in the link (wp-admin/admin.php?action=bulk301export) I can download the CSV file just fine. Therefore, something must be wrong with the link (not the receiving page).

    Upon checking, the other urls in the same spot don't work either. They show /wp-admin/<?=%20plugins_url(%20%27301-example.csv%27,%20__FILE__%20);%20?> or something similar in the address bar.

    I suspect it might have something to do with WPML, as I am running a site with two languages. Unfortunately, since it is a live site I can't experiment too much with it.

    Other plugins are Contact Form 7, Contact Form 7 Honeypot, various WPML (offical) extentions, Regenerate Thumbnails, Simple 301 redirects, Simple Page Sidebars, Types, WordPress Charts, WordPress SEO, WP-Mail-SMTP. Like I said, I cannot experiment by disabling since most are essential to the (live) website.

    I hope this helps!

  4. Ash Durham
    Plugin Author

    Posted 1 year ago #

    Hey morecow,

    Yeah, certainly does help! Your server doesn't support php short tags... (<?=)

    Majority these days will have it on by standard which has clearly allowed me to fall into bad habits.

    I'll see to it that is updated in the next update.


  5. morecow
    Posted 1 year ago #

    Thanks! I do know that our server configuration is pretty strict for safety concerns.

    Nice to see that you'll fix it and that it will work for the majority. I'm glad I got it working by pasting in the links.

  6. webmystery
    Posted 11 months ago #

    We also have a strict, privately operated server and I can't see the sample csv. http://www.napavalleysupportservices.org/
    Is it just two columns with no titles? Thanks

  7. Ash Durham
    Plugin Author

    Posted 11 months ago #

    Hey webmystery,

    It would have been better if you created a new topic for this as your situation is slightly different to that of morecow's

    That aside, the CSV code is:

    So yes, its just the two columns with no titles. First column is the old URL and the second is the new URL.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Simple 301 Redirects - Addon - Bulk Uploader
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic