netbox-community / netbox-floorplan-plugin

NetBox Floorplan plugin
GNU Lesser General Public License v3.0
37 stars 7 forks source link

Plugin Installed but buttons not working in the floorplan tab #27

Open MusicMano opened 3 weeks ago

MusicMano commented 3 weeks ago

The plugin is installed and the floorplan tab shows up under locations and sites. But none of the buttons work. Would anyone here know what the fix would be? I am using netbox version 3.7.5 and whatever the latest version of the floorplan plugin is

Lucas729 commented 3 weeks ago

Same for me. I have last version of Netbox 4.0.3. Python version 3.12

NotHBlocks commented 3 weeks ago

I´ve installed it today and had the same issue. Netbox version 4.0.3 Python version 3.11

Edit: Typo

benraven commented 2 weeks ago

Just had the same issue, and hit F12 to see what was happening. I was getting 404s on some static files which meant that the buttons that referred to those files didn't work:

I took a look at the static folder on the server, and noticed that the files for this plugin were missing, which I fixed by running:

Lucas729 commented 1 week ago

It works! Thanks. I think you need to be in venv environment

source /opt/netbox/venv/bin/activate

and then run

python manage.py collectstatic

and this works for me.

NotHBlocks commented 1 week ago

Just had the same issue, and hit F12 to see what was happening. I was getting 404s on some static files which meant that the buttons that referred to those files didn't work:

  • ${NETBOX_URL}/static/netbox_floorplan/floorplan/edit.js
  • ${NETBOX_URL}/static/netbox_floorplan/vendors/fabric.js
  • ${NETBOX_URL}/static/netbox_floorplan/vendors/jq.js

I took a look at the static folder on the server, and noticed that the files for this plugin were missing, which I fixed by running:

  • sudo ./venv/bin/python3 netbox/manage.py collectstatic

Thank you. That helped. But the button "Add Label" do not work. Also the buttons Object layer Control doesn´t have any effect. The console doesn´t show any errors.

Edit: Typo