Tagged: file upload field, file upload field bug, file upload field error, file upload field not working, file upload problem
- This topic has 7 replies, 2 voices, and was last updated 5 years, 6 months ago by
semwangajoshua.
-
AuthorPosts
-
-
July 12, 2016 at 5:49 am #6939
semwangajoshuaMemberWell, I just noticed that all file upload fields particularly those on the settings pages are not working. You click on the button to upload the file and all it does is to scroll you up to the top of the settings page. These were working perfectly before the upgrade to version 0.9.9.9. I notice that the implementation of the same changed for the new version of Piklist according to the new documentation directions. However, I’ve tried both the old way and the new way of doing things but nothing works all the same. I was advised some time back to turn on Javascript validation in the Piklist settings. But the problem is that this option does not work either. When you check the option that says Javascript Validation in the Piklist settings, it never stays checked even after you click the Save button. This is also related to the problem regarding activating and deactivating Piklist demos. These demos won’t deactivate because the Disable button in the Demo settings page doesn’t work either. I guess because of the inability to turn on Javascript validation in the Piklist settings page since it’s not working. Surprisingly, file upload fields that are inside the Metaboxes files i.e., under meta-boxes folder, are working perfectly. These below are the two ways I’ve tried the file upload fields and they’re not working.
piklist('field', array( 'type' => 'file' ,'field' => 'upload_media' ,'label' => 'Add File(s)' ,'description' => 'This is the media uploader' ,'options' => array( 'modal_title' => 'Add File(s)' ,'button' => 'Add' ) ));piklist('field', array( 'type' => 'file' ,'field' => 'slideimage2' //,'scope' => 'post_meta' ,'label' => __('Slide-2 Image','piklist') ,'description' => __('Add slide-2 image','piklist') ,'options' => array( 'modal_title' => __('Add Image','piklist') ,'button' => __('Add Image','piklist') ) )); -
July 15, 2016 at 9:06 am #6949
SteveKeymaster@semwangajoshua– Sorry you’re having issues. Since you’re the only one reporting this I’m guessing this has to do with your server setup or a conflicting plugin/theme. Did you try deactivating other plugins and switching to the WordPress default theme?
-
July 17, 2016 at 11:33 am #6964
semwangajoshuaMemberI only have Piklist. I’ve sent you a copy of my project files so that you also test it in you own environment and see if it works. The add buttons that are created by Piklist for uploading images are not responding to the click event. And neither does that disable button in the demo settings section of Piklist.
-
July 17, 2016 at 12:06 pm #6965
SteveKeymaster@semwangajoshua– If the demos aren’t disabling then I don’t need your project files. Are you running the version of jQuery that comes with WordPress or another version? What version of WordPress are you running? Did you try the default WordPress theme?
-
July 17, 2016 at 12:33 pm #6966
semwangajoshuaMemberThat problem is only happening on the settings pages. Those on the metaboxes that only show on certain templates are working fine.
-
July 17, 2016 at 12:48 pm #6967
semwangajoshuaMemberI don’t know what you want me to look for in the default WordPress theme. But I’ve activated the Twenty Sixteen theme and it’s working.I’m running WordPress 4.5.3.
-
July 19, 2016 at 9:44 am #6973
SteveKeymaster@semwangajoshua– Great! If it’s working with the default theme, then something in your custom theme is causing issues.
Suggest you comment out parts of your theme to try and find the offending code.
-
July 19, 2016 at 2:21 pm #6981
semwangajoshuaMemberThanks for the response Steve. But I’m a little confused here. I don’t understand what it is that you mean ‘is working’ in the default theme and mine. I don’t see a similarity between the two. The Twenty Sixteen theme is not even running on Piklist. So, I don’t understand how you’re relating my problem, in a Piklist driven theme to the Twenty Sixteen theme’s functionality. The file upload fields that are not working are entirely created with and run by Piklist from the inside of my theme. I don’t understand one bit how this affects another theme i.e., the default theme. The two actually never execute concurrently. Besides, the file upload fields are on the Settings pages which are as well entirely managed by Piklist. I simply don’t understand why code that creates a file upload field in a metabox file fails to work when it’s used on a settings page.You are using the Twenty Sixteen (a non-Piklist based) theme to judge my theme which is entirely based on Piklist. I don’t seem to connect the dots.
-
-
AuthorPosts
- You must be logged in to reply to this topic.