• Hi.

    I have tested this on 2 seperate WP installments and I get the same error.
    When the modal window opens I then Upload the file from computer it all seems to work fine until I press the button “Save All Changes”. After I click this button nothing really happens other than I get an empty modal screen as if no images are in the media library.

    Let me know if this is unclear. ??

Viewing 7 replies - 1 through 7 (of 7 total)
  • Hi Vayu,

    I’ve only briefly tested this plugin but I think this may the process:

    1. Upload your file as you did before
    Only click “Save All Changes” if you actually made any changes immediately after uploading the file(s) – i.e. adding a caption, description, editing, etc.
    2. Either way – whether you click Save All Changes button or not – you’ll then need to click the “Media Library” tab at the top.
    3. Find your file and click “Show” to the right of it to expand the details
    4. Click the Select button and you’re done!

    Again, I’ve only just started testing with this plugin so if I’m missing something maybe the author will jump in and let us know.

    Hope that helps!

    Thread Starter Vayu Robins

    (@vayu)

    Hi fluidjunction. Thanks for helping out!

    This is exactly what I tried to do, but now I realize that there must be something wrong with both my installments, because none of the images show up in the Media Library. If I go directly into my Media Library all the images show up, but not when I open it via a post/page in the modal window.

    I therefore don’t think it is Simple Fields issue, but something else. I have no clue of why the images are not showing up in the modal Media Library though. I will see what I can do about it…

    Cordially
    Vayu

    Thread Starter Vayu Robins

    (@vayu)

    Okay, I found the problem and it had to do with a piece of code in my functions.php file.

    I had registered a taxonomy and had given it an id name of “type”. I guess that interfered with WP somehow.

    register_taxonomy(
    		'type',
    		array( 'projekter' ),
    		array(
    			'public' => true,
    			'labels' => array(
    				'name' => __( 'Type projekt' ),
    				'singular_name' => __( 'Type projekt' )
    			),
    		)
    	);

    After giving it an id name of type_projekter, everything seemed to work just fine.

    My fault!

    HA! Glad you tracked it down and thanks for posting back the issue causing it.

    Hi,

    I am getting the same error while trying to upload an image from the File field created through Simple Fields. It works fine when I try to upload an image file from the default wordpress post options.

    When I saw the links, I found that Simplefield does not populates the post id while trying to upload a file.

    Link through Simplefield:
    https://localhost/wordpress/wp-admin/media-upload.php?simple_fields_dummy=1&simple_fields_action=select_file&simple_fields_file_field_unique_id=simple_fields_fieldgroups_1_3_1&post_id=-1&TB_iframe=true&width=640&height=448

    Link through default wordpress post:
    https://localhost/wordpress/wp-admin/media-upload.php?type=image&post_id=4&simple_fields_action=select_file_for_tiny&TB_iframe=true

    If you carefully notice, the post id comes up as “-1” instead of “4”. When I had updated the link manually using firebug and tried uploading the file, it worked. Hence it is clear that the issue is with the population of post id while trying to upload a file through Simplefield.

    Can anyone please help me sort out this issue.

    Thread Starter Vayu Robins

    (@vayu)

    Hi.

    I don’t know what it could be, maybe something else in your code, like the issue I had.

    However, I think it’s a shame that the select Button doesn’t appear when an image is uploaded. The only way to insert the image is by doing like fluidjunction explained. Actually, the only button available is the delete link. Not so intuitive!

    I agree that it would be very helpful for the “select” button to appear once the image is loaded. Clicking the media library, clicking show, and then clicking select, is not intuitive.

    It would also be great if the file attachments were linked to the post_parent in the posts table.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘[Plugin: Simple Fields] Upload file/select file does not work’ is closed to new replies.