Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to delete devices,cabinet or datacenters #1489

Open
WebTeccl opened this issue Dec 15, 2023 · 1 comment
Open

Unable to delete devices,cabinet or datacenters #1489

WebTeccl opened this issue Dec 15, 2023 · 1 comment

Comments

@WebTeccl
Copy link

Hello, I need you to help me with this problem, when trying to delete a cabinet or a device, or delete the entire datacenter, I get the following error

(I am using version 23.04)

Thank you

thrown in /home/websitec1b/dcim.website.com/cabinets.php on line 29
[14-Dec-2023 23:40:28 America/Santiago] PHP Deprecated: strtotime(): Passing null to parameter #1 ($datetime) of type string is deprecated in /home/websitec1b/dcim.website.com/classes/Cabinet.class.php on line 68
[14-Dec-2023 23:40:28 America/Santiago] PHP Deprecated: strtotime(): Passing null to parameter #1 ($datetime) of type string is deprecated in /home/websitec1b/dcim.website.com/classes/Cabinet.class.php on line 68
[14-Dec-2023 23:40:28 America/Santiago] PDO Error::DeleteCabinet: SQL=DELETE FROM fac_Cabinet WHERE CabinetID=0;
[14-Dec-2023 23:40:28 America/Santiago] PHP Fatal error: Uncaught TypeError: Cannot access offset of type string on string in /home/websitec1b/dcim.website.com/cabinets.php:29
Stack trace:
#0 {main}
thrown in /home/websitec1b/dcim.website.com/cabinets.php on line 29
[14-Dec-2023 23:43:01 America/Santiago] PHP Warning: scandir(./assets/drawings/): Failed to open directory: No such file or directory in /home/websitec1b/dcim.website.com/container.php on line 68
[14-Dec-2023 23:43:01 America/Santiago] PHP Warning: scandir(): (errno 2): No such file or directory in /home/websitec1b/dcim.website.com/container.php on line 68
[14-Dec-2023 23:43:01 America/Santiago] PHP Warning: foreach() argument must be of type array|object, bool given in /home/websitec1b/dcim.website.com/container.php on line 69
[14-Dec-2023 23:43:23 America/Santiago] PHP Deprecated: strtotime(): Passing null to parameter #1 ($datetime) of type string is deprecated in /home/websitec1b/dcim.website.com/classes/Cabinet.class.php on line 68
[14-Dec-2023 23:43:27 America/Santiago] PHP Deprecated: strtotime(): Passing null to parameter #1 ($datetime) of type string is deprecated in /home/websitec1b/dcim.website.com/classes/Cabinet.class.php on line 68
[14-Dec-2023 23:43:27 America/Santiago] PHP Deprecated: strtotime(): Passing null to parameter #1 ($datetime) of type string is deprecated in /home/websitec1b/dcim.website.com/classes/Cabinet.class.php on line 68
[14-Dec-2023 23:43:27 America/Santiago] PHP Deprecated: strtotime(): Passing null to parameter #1 ($datetime) of type string is deprecated in /home/websitec1b/dcim.website.com/classes/Cabinet.class.php on line 68
[14-Dec-2023 23:43:27 America/Santiago] PHP Fatal error: Uncaught TypeError: Cannot access offset of type string on string in /home/websitec1b/dcim.website.com/cabinets.php:29
Stack trace:
#0 {main}
thrown in /home/websitec1b/dcim.website.com/cabinets.php on line 29
[14-Dec-2023 23:43:29 America/Santiago] PHP Deprecated: strtotime(): Passing null to parameter #1 ($datetime) of type string is deprecated in /home/websitec1b/dcim.website.com/classes/Cabinet.class.php on line 68
[14-Dec-2023 23:43:29 America/Santiago] PHP Deprecated: strtotime(): Passing null to parameter #1 ($datetime) of type string is deprecated in /home/websitec1b/dcim.website.com/classes/Cabinet.class.php on line 68
[14-Dec-2023 23:43:29 America/Santiago] PDO Error::DeleteCabinet: SQL=DELETE FROM fac_Cabinet WHERE CabinetID=1;
[14-Dec-2023 23:43:29 America/Santiago] PHP Fatal error: Uncaught TypeError: Cannot access offset of type string on string in /home/websitec1b/dcim.website.com/cabinets.php:29
Stack trace:
#0 {main}
thrown in /home/websitec1b/dcim.website.com/cabinets.php on line 29

image

@wilpig
Copy link
Collaborator

wilpig commented Dec 15, 2023

cabinets.php:29 This is setting a return code for the ajax response.

How you managed this one, I cannot fathom because there is no cabinet 0. That's the storage room classification.

[14-Dec-2023 23:40:28 America/Santiago] PDO Error::DeleteCabinet: SQL=DELETE FROM fac_Cabinet WHERE CabinetID=0;

Can you reproduce this error on dev.opendcim.org or demo.opendcim.org? Are there other devices in the cabinet that you are trying to delete with the cabinet? Is this the last cabinet in your datacenter?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants