Tagged: attachment, bug, field, file, upload
- This topic has 2 replies, 2 voices, and was last updated 3 years, 10 months ago by
cddustin.
-
AuthorPosts
-
-
April 13, 2018 at 2:46 pm #8835
cddustinParticipantWP 4.9.5
Piklist 0.9.9.15I had a file upload field associated with a custom post type that was working correctly in 0.9.9.12:
piklist('field', array( 'type' => 'file', 'field' => '_job_download', 'scope' => 'post_meta', 'label' => 'Downloadable Job Description', 'options' => array( 'basic' => true ) ));What I tried:
- Add new post
- Click file upload “Browse…” button, choose a file
- Save a draft of the post
What I expected:
I expected to see something representing the file I attached below the “Browse…” button, with the file name and a button to remove it.
What I got:
No indication that the file attachment was successful. With WP_DEBUG on, I get the following warnings after saving a draft, and they appear on a blank white page (no WP admin UI loads in this case):
Warning: Invalid argument supplied for foreach() in /var/www/html/wp-content/plugins/piklist/includes/class-piklist.php on line 1533
Warning: Cannot modify header information – headers already sent by (output started at /var/www/html/wp-content/plugins/piklist/includes/class-piklist.php:1533) in /var/www/html/wp-admin/includes/misc.php on line 1116
Warning: Cannot modify header information – headers already sent by (output started at /var/www/html/wp-content/plugins/piklist/includes/class-piklist.php:1533) in /var/www/html/wp-admin/post.php on line 198
Warning: Cannot modify header information – headers already sent by (output started at /var/www/html/wp-content/plugins/piklist/includes/class-piklist.php:1533) in /var/www/html/wp-includes/pluggable.php on line 1216
Thanks!
-
April 13, 2018 at 4:27 pm #8836
SteveKeymasterSorry about that. We just release v0.9.9.16 which should fix the issue.
-
April 13, 2018 at 4:46 pm #8839
cddustinParticipantThank you.
-
-
AuthorPosts
- The topic ‘File upload broken in 0.9.9.15’ is closed to new replies.