WordPress.org

Ready to get started?Download WordPress

Forums

Link Library
Import produces error (13 posts)

  1. David Radovanovic
    Member
    Posted 1 year ago #

    Warning: fopen() [function.fopen]: Filename cannot be empty in .../wp-content/plugins/link-library/link-library.php on line 1140

    Warning: Cannot modify header information - headers already sent by (output started at .../wp-content/plugins/link-library/link-library.php:1140) in .../wp-includes/pluggable.php on line 881

    Any ideas?

    Great plugin. Thanks for sharing your talents.

    http://wordpress.org/extend/plugins/link-library/

  2. Yannick Lefebvre
    Member
    Plugin Author

    Posted 1 year ago #

    Not right away. I will only be able to investigate this issue next week. Sorry for the delay.

  3. David Radovanovic
    Member
    Posted 1 year ago #

    No problem. Thanks for your impending reply!

  4. David Radovanovic
    Member
    Posted 1 year ago #

    BTW - the line 1140 in link-library is

    $handle = fopen($_FILES['linksfile']['tmp_name'], "r");

    checked all the files for empty spaces or lines... all good. Going to ask shared hosting co. if there are limitations with fopen.

  5. Darryl Erentzen
    Member
    Posted 1 year ago #

    Who's your ISP?

    If you send a link to the site in question I may be able to help.

    Place the following code into a file in your web root somewhere:

    <?php
    phpinfo();
    ?>

    Then open it in a web browser and it'll list all your php settings (assuming the ISP hasn't disabled this function).

    allow_url_fopen value is in the Core section of the report.

  6. Yannick Lefebvre
    Member
    Plugin Author

    Posted 1 year ago #

    Thanks for the help in troubleshooting this.

    I was not able to get to this. I am moving to a new house next week so things are a bit hectic right now.

    I can look at it more in 2 weeks or so if erentzenco does not figure it out.

  7. David Radovanovic
    Member
    Posted 1 year ago #

    Apparently two fields are required that were missing in several lines of the spreadsheet; URL (Address) and description. Without them the import failed with the above errors.

  8. Yannick Lefebvre
    Member
    Plugin Author

    Posted 1 year ago #

    I am glad to hear that you got it loading. However, I am a bit puzzled why missing fields would have been the culprit here, since the error line you were getting pointed to the file not being present. I looked at the code again and am not really sure why this happened.

  9. David Radovanovic
    Member
    Posted 1 year ago #

    Well, I finally got back to retrying the import. It has 500 plus new links. What I did was imported 20 at a time without a problem though anymore seems to produce the same error. Is there a limit? It's not like the import timed out. Maybe I should post a snippet of the CSV file?

  10. Yannick Lefebvre
    Member
    Plugin Author

    Posted 1 year ago #

    Ah, I see. The size limit for file uploads is something that is configured as part of your PHP ini file. How large is the file? You can try to install a plugin such as http://wordpress.org/extend/plugins/wordpress-php-info/ to see what is the maximum upload file size. There is a good chance that it's higher than your complete file with 500 links.

  11. David Radovanovic
    Member
    Posted 1 year ago #

    upload_max_filesize 30M is more than enough?

  12. David Radovanovic
    Member
    Posted 1 year ago #

    So, I selected all the rows while the CSV file was opened in OpenOffice Calc and cut and pasted it into a blank spreadsheet. That seemed to work. All I can think is that there was empty lines/rows after the last occupied row and those empty rows offended link library.

  13. Yannick Lefebvre
    Member
    Plugin Author

    Posted 1 year ago #

    Thanks for the update. 30M should be enough as long as the csv was smaller than 30 MB.

    Could you mark the issue as resolved if everything is working now? Thanks.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic