The edit table buttons are not visible

The edit table buttons are not visible

JuanXDJuanXD Posts: 3Questions: 1Answers: 0

I am doing a small project for university and I implemented the table to upload several files, but the action buttons do not appear anywhere and furthermore, I think it's not even connected to the database because I added a product manually but it doesn't even show up in the table.

Answers

  • allanallan Posts: 63,523Questions: 1Answers: 10,473 Site admin

    Can you give me a link to your page please? There isn't much to go on for debugging here :). Possibly showing me the code might give me a clue as it what is going wrong, so that would be an option as well, but a link ensures I have all the information needed to help.

    Allan

  • JuanXDJuanXD Posts: 3Questions: 1Answers: 0

    Well, I haven't uploaded it to a server because I still need to finish several things and it's a university project, but here's the repository: https://github.com/DaikyriXD/Unimmerce.git.
    I'm really a bit new to web development, but my time to present this project is running out and I don't think I'll be able to make a proper CRUD to implement in my project. I would greatly appreciate any help and many thanks.

  • kthorngrenkthorngren Posts: 21,343Questions: 26Answers: 4,954

    Looking at panel.php:

    Line 198 you are loading jquery.js:

    <!-- jQuery -->
    <script src="plugins/jquery/jquery.min.js"></script>
    

    You are loading it again in the concatenated Datatables code on line 250 then again on line 252. Loading jquery.js more than once will cause issues, things like the buttons not loading.

    You are loading datatables.js on line 253 which is the second time. It is first loaded on line 250. Make sure to load this only once.

    My suggestion is to use the Download Builder to get datatables and all the extension you want into one file and remove any duplicate CSS or JS includes in your scripts.

    Kevin

  • JuanXDJuanXD Posts: 3Questions: 1Answers: 0
    edited February 2023

    Thanks a lot for the help, I think I'll take your advice then because the first solution you gave me didn't work.

Sign In or Register to comment.