• Resolved FREEZhao

    (@freezhao)


    This XML file does not appear to have any style information associated with it. The document tree is shown below.
    <wp_ajax>
    <response action="wtf_fu_show_files_1">
    <stuff id="1" position="1">
    <response_data>
    <![CDATA[
    <div id='sort_container'><ul id='reorder_sortable'><li class="list" title="Snip20140428_4.png"><p class="reorder-number">1</p><a href="https://localhost:8888/wordpress/wp-content/uploads/1/demofiles/default/Snip20140428_4.png" title="Snip20140428_4.png" data-gallery><img src="https://localhost:8888/wordpress/wp-content/uploads/1/demofiles/default/thumbnail/Snip20140428_4.png" alt="Snip20140428_4.png"></a></li><li class="list" title="1380899207.jpg"><p class="reorder-number">2</p><a href="https://localhost:8888/wordpress/wp-content/uploads/1/demofiles/default/1380899207.jpg" title="1380899207.jpg" data-gallery><img src="https://localhost:8888/wordpress/wp-content/uploads/1/demofiles/default/thumbnail/1380899207.jpg" alt="1380899207.jpg"></a></li><li class="list" title="454702381.jpg"><p class="reorder-number">3</p><a href="https://localhost:8888/wordpress/wp-content/uploads/1/demofiles/default/454702381.jpg" title="454702381.jpg" data-gallery><img src="https://localhost:8888/wordpress/wp-content/uploads/1/demofiles/default/thumbnail/454702381.jpg" alt="454702381.jpg"></a></li><li class="list" title="Snip20140428_2.png"><p class="reorder-number">4</p><a href="https://localhost:8888/wordpress/wp-content/uploads/1/demofiles/default/Snip20140428_2.png" title="Snip20140428_2.png" data-gallery><img src="https://localhost:8888/wordpress/wp-content/uploads/1/demofiles/default/thumbnail/Snip20140428_2.png" alt="Snip20140428_2.png"></a></li><li class="list" title="Snip20140428_2 (1).png"><p class="reorder-number">5</p><a href="https://localhost:8888/wordpress/wp-content/uploads/1/demofiles/default/Snip20140428_2 (1).png" title="Snip20140428_2 (1).png" data-gallery><img src="https://localhost:8888/wordpress/wp-content/uploads/1/demofiles/default/thumbnail/Snip20140428_2 (1).png" alt="Snip20140428_2 (1).png"></a></li></ul></div>
    ]]>
    </response_data>
    <supplemental/>
    </stuff>
    </response>
    </wp_ajax>

    When I reorder the img with 1.23, It doesn`t woks. I can even move the image. then I try to press ” save new files order” It is broken.

    https://www.ads-software.com/plugins/work-the-flow-file-upload/

Viewing 12 replies - 1 through 12 (of 12 total)
  • Plugin Author lynton_reed

    (@lynton_reed)

    Hi again Freezhao,

    Can you please provide some extra information on the problem.

    1. how are you calling the showfiles reorder shortcode ?
    is it embedded in a workflow content or is it embedded directly into a page or post.

    Please paste the shortcode you are using here so I can see it.

    2. Can you please paste the url of the page that you see this error output on.

    3. Does this happen all the time or just with a specific images or files ? Can you get it to work at all ?

    4. If you have multiple shortcodes on the one page can you reduce things to a more simple test i.e. a new post with just the shortcode in it. Does that then work ?

    5.
    The error output indicates that something failed when reordering the files. Typical causes of this (aside form bugs of course) would be not having write permissions on the directory so check that the directory location of the files is writable and that the users upload directory is writable.

    So can you please check that the files and directories have write access
    i.e.
    the directory uploads/1 and the files in uploads/1/demofiles/default/

    also check if a file something like
    /uploads/1/file_order_demofiles__default.txt

    was created, this should contain text detailing the new order of the files.

    If it is there is it writable and does it contains the file names in the sorted order or not ?

    6.) This is just a guess but the file
    Snip20140428_2 (1).png
    looks suspicious try renaming this file without the () parenthesis.
    Did this help ?

    Please try these things and then provide back as much information as you can.

    regards,

    Lynton

    Plugin Author lynton_reed

    (@lynton_reed)

    forget about 6. parenthesis should be fine.

    Plugin Author lynton_reed

    (@lynton_reed)

    Freezhao ,

    I don’t know what your problem is, but this usually happens when something has already sent a response by the time the ajax response is called and so
    the browser just displays the ajax xml response.

    This can happen for example is PHP outputs something to the screen, for example an error or deprecation warning or similar.

    The ajax response itself looks correct, but perhaps whatever PHP you are using causes some output to be sent therefore causing this behaviour.

    I have released 1.2.4 now and addded some extra checks around the ajax handler code to discard any output produced.

    Hopefully that may fix your problem.

    Please try it and let me know.

    Lynton

    Thread Starter FREEZhao

    (@freezhao)

    1. how are you calling the showfiles reorder shortcode ?
    is it embedded in a workflow content or is it embedded directly into a page or post.
    ——I use the demo one without any extra editing.

    Please paste the shortcode you are using here so I can see it.
    ——[wtf_fu id=’2′]

    2. Can you please paste the url of the page that you see this error output on.
    ——I use the localhost so url in useless, and now with1.24 reorder function on My localhost is still froze,and in my edu.freezhao.com, it works but look bad, it turn the thumbnails into the vertical way with a control bar.

    3. Does this happen all the time or just with a specific images or files ? Can you get it to work at all ?
    ——all frozen.

    4. If you have multiple shortcodes on the one page can you reduce things to a more simple test i.e. a new post with just the shortcode in it. Does that then work ?
    ——I just use the [wtf_fu id=’2′]

    5.The error output indicates that something failed when reordering the files. Typical causes of this (aside form bugs of course) would be not having write permissions on the directory so check that the directory location of the files is writable and that the users upload directory is writable.
    ——, localhost I dont think theres permissions problem, and I can edit directly.

    So can you please check that the files and directories have write access
    i.e.
    the directory uploads/1 and the files in uploads/1/demofiles/default/

    also check if a file something like
    /uploads/1/file_order_demofiles__default.txt

    was created, this should contain text detailing the new order of the files.
    If it is there is it writable and does it contains the file names in the sorted order or not ?
    ——-file_order_demofiles__default.txt is exist, and there are 3files”file_order_demofiles__default.txt”,”file_order_main_dir__images.txt”,”file_order_wtf-fu_files__default.txt”, and all the same content in the files”User File ordering selections : ”

    Plugin Author lynton_reed

    (@lynton_reed)

    ok thanks for the answers.

    Have you tried 1.2.4 yet ?
    does that help ?

    Can you can provide a link so that I can investigate it some more ?

    lynton

    Thread Starter FREEZhao

    (@freezhao)

    I tried 1.2.4
    https://edu.freezhao.com/9374-2

    and you need give me ur mail add, then I can give you test account.

    Plugin Author lynton_reed

    (@lynton_reed)

    its just
    lynton at wtf-fu.com

    Plugin Author lynton_reed

    (@lynton_reed)

    I logged in and tried
    https://edu.freezhao.com/9374-2

    and it worked fine for me, I tried several times and could not reproduce any problems.
    I even uploaded an extra file and changed the order.

    the other upload link you sent just gave a 404 not found error.

    perhaps when you tried your browser cache just needed refreshing ?
    try https://edu.freezhao.com/9374-2 again. do you still see the error ?

    Plugin Author lynton_reed

    (@lynton_reed)

    Hi FREEZhao,

    I still cannot see any errors or the xml page output you pasted in the first post.

    But when using chrome I saw the vertical display you mentioned, (this does not happen in firefox by the way).

    Probably something in your theme is causing some extra padding and in chrome the display wraps.

    See the screen shot I uploaded to the page.
    Look at the firebug display in the image where I have turned off
    #files_list overflow: auto

    You could override this in your theme if it is causing problems.

    I’ll see if that can be removed from the css, I don’t actually think it is needed now anymore.

    Plugin Author lynton_reed

    (@lynton_reed)

    Hi Freezhao,

    I have reworked the css and removed the overlow : auto
    Also I have corrected an issue I found with internet explorer.

    Were you using the internet explorer browser ?

    please try 1.2.5 and let me know if you still have problems

    Plugin Author lynton_reed

    (@lynton_reed)

    Hi Freezhao,

    I assume all is working for you now so I’m resolving this.
    Please open a new ticket if you are still having issues.

    lynton

    Thread Starter FREEZhao

    (@freezhao)

    too busy on my course in these days, one more day later I will try.

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘Reorder function do not works.’ is closed to new replies.