• Clicking on the Generate Favorite icon and store locally button in the Image section of the Edit Link page states that an icon has been successfully generated, but the file is 0 bytes.

    With WP Debug on, the following two errors are raised:

    Undefined index: cid in /volume1/web/web/wp-content/plugins/link-library/link-library-image-generator.php on line 18
    Undefined variable: protocol in /volume1/web/web/wp-content/plugins/link-library/link-library-admin.php on line 411

    The first issue relates to the fact that event Javascript for the “genfavicons” section is not passing “cid” in the POST, whereas it does for the “genthumbs” section.
    A dirty fix for me was to comment out line 18 ($cid = $_POST[‘cid’];).
    The second issue is easy to remedy – $protocol is defined at line 392, but this is inside the if statement for “thumb” || “thumbonly”. It should be moved to line 391.

    With those modifications, the images are now being generated correctly.

    • This topic was modified 4 years, 8 months ago by europoint.
Viewing 1 replies (of 1 total)
  • Plugin Author Yannick Lefebvre

    (@jackdewey)

    Thanks for the detailed post. Sorry for the late response. Both issues will be fixed in 6.5.6, which I will publish later today. Please consider donating to support this plugin’s development.

Viewing 1 replies (of 1 total)
  • The topic ‘Thumbnail Generation on Edit Link Page Fails’ is closed to new replies.