Thumbnail Generation on Edit Link Page Fails
-
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 theif
statement for “thumb” || “thumbonly”. It should be moved to line 391.With those modifications, the images are now being generated correctly.
- The topic ‘Thumbnail Generation on Edit Link Page Fails’ is closed to new replies.