Upload and Uploads hand on " processing" after Datatable and Editor version upgrades

Upload and Uploads hand on " processing" after Datatable and Editor version upgrades

dt1 dt1 Posts: 55Questions: 6Answers: 0

I have recently upgraded from old PHP7.X version to version 8.2 on Debian Bookworm
I also upgraded from DataTables 1.10.23 to 2.3.2 and Editor 1.9.6 to 2.4.2 whit the Buttons, Select and DateTime extensions. Everything works fine but there is only one problem when trying to upload a file or files the web page hangs on " processing" and although the File is uploaded to the destination folder on the server the transaction does not register to the MySQL database. the "data" array of the row remains empty and only the file id and information is shown on the JSON results. Can you please advise? I can share both client versions and server script.

This question has an accepted answers - jump to answer

Answers

  • kthorngrenkthorngren Posts: 22,090Questions: 26Answers: 5,092

    I would start be seeing if there are errors in the browser's console. Also use the browser's network inspector to monitor the XHR request and response when doing the upload.

    Seeing the code might show something obvious but better is a test case showing the issue. You can PM Allan a link to your page if you don't want to share publically.

    Let us know what you find when looking at the console for errors and the XHR monitoring. Maybe we will have some ideas.

    Kevin

  • allanallan Posts: 64,665Questions: 1Answers: 10,691 Site admin

    Can you give me a link to the page showing the issue please? I'm not aware of any issues with upload at the moment, and this example shows it working. Have you checked the PHP error logs?

    Allan

  • dt1 dt1 Posts: 55Questions: 6Answers: 0
    edited June 18

    Yes, I have tried everything possible. The are no errors on the XHR.
    please login here: https://digidrawer.com/mbloginv2.php
    [retracted]
    Please choose People. As you can see you can edit the Picture with no problems this is the old version. I have prepared 2 temporary test pages that simplify everything they only allow the Edit function (the yellow button) please try them and see. I can also share the Server PHP script.
    https://digidrawer.com/v2/mb/web/mbuploadold.php (working)
    https://digidrawer.com/v2/mb/web/mbuploadnew.php (not working)

  • allanallan Posts: 64,665Questions: 1Answers: 10,691 Site admin
    Answer ✓

    Awesome - thanks for the link.

    I think the problem might be that you are including Editor twice - once in datatables.min.js and again in dataTables.editor.min.js.

    Could you try removing:

        <script type="text/javascript" language="javascript" src="../../Editor-PHP-2.4.2/js/dataTables.editor.min.js"></script>
        <script type="text/javascript" language="javascript" src="../../Editor-PHP-2.4.2/js/editor.bootstrap4.min.js"></script>
    

    Then see if it starts working - I'm expecting it will.

    Allan

  • dt1 dt1 Posts: 55Questions: 6Answers: 0

    Yes. This solved it.
    Thank you so much for your great support.
    Much appreciated

    You can try it now yourself if you wish as tomorrow I will take it off

  • allanallan Posts: 64,665Questions: 1Answers: 10,691 Site admin

    Awesome, good to hear that helped. It's a funny one, it was storing the file information to a different object from what was actually being used! The data was there, just not being seen.

    Allan

Sign In or Register to comment.