opendcim / openDCIM

An open source (GPL v3) Data Center Inventory Management (DCIM) application.
http://opendcim.org
305 stars 204 forks source link

Cannot add or remove power supplies from a device #1507

Closed wilpig closed 7 months ago

LFrank2021 commented 7 months ago

Sorry for the stupid question: Is this maybe related to my discussion #1506 ?

wilpig commented 7 months ago

same code so probably, apply the patch and test

LFrank2021 commented 7 months ago

I did and it seems to have fixed my issue as well. Thank you!

LFrank2021 commented 7 months ago

Just added a new CDU and resulted in this: [Mon Feb 05 16:12:33.898620 2024] [php:error] [pid 22322] [] PHP Fatal error: Uncaught TypeError: Unsupported operand types: string + int in /srv/openDCIM/openDCIM-23.04/classes/PowerDistribution.class.php:634\nStack trace:\n#0 /srv/openDCIM/openDCIM-23.04/devices.php(2238): PowerDistribution->GetAllBreakerPoles()\n#1 {main}\n thrown in /srv/openDCIM/openDCIM-23.04/classes/PowerDistribution.class.php on line 634, referer: https://mydcim/power_panel.php?PanelID=1

wilpig commented 7 months ago

I will look into that, but that is a different class and a different issue.

LFrank2021 commented 7 months ago

I think I created the CDU with no breaker pole and was unable to change it afterwards. I updated the fac_PowerDistribution manually and now the device works just fine.