An error occured while processing the PHP files of the data model:
Error loading module "add-monitor": /itop_design/classes/class[Monitor] at line 6: parent class 'PhysicalDevice' could not be found - Loaded modules: dictionaries,core,application,add-monitor
Check the PHP files describing the data model before running the toolkit again !
Hi Pierre,
Thank you for the reply.
When I add the dependencies and start toolkit again I get this on Data Model Consistency:
Class Organization
Attribute 'status' (object state) has an allowed value (active) which is not a known state (You may define its allowed_values property as [new ValueSetEnum('')], or reconsider the list of states)
Attribute 'status' (object state) has an allowed value (inactive) which is not a known state (You may define its allowed_values property as [new ValueSetEnum('')], or reconsider the list of states)
Attribute 'status' (object state) has a state () which is not an allowed value (You may define its allowed_values property as [new ValueSetEnum('')], or reconsider the list of states)
Class Location
Attribute 'status' (object state) has an allowed value (active) which is not a known state (You may define its allowed_values property as [new ValueSetEnum('')], or reconsider the list of states)
Attribute 'status' (object state) has an allowed value (inactive) which is not a known state (You may define its allowed_values property as [new ValueSetEnum('')], or reconsider the list of states)
Attribute 'status' (object state) has a state () which is not an allowed value (You may define its allowed_values property as [new ValueSetEnum('')], or reconsider the list of states)
Class Contact
Attribute 'status' (object state) has an allowed value (active) which is not a known state (You may define its allowed_values property as [new ValueSetEnum('')], or reconsider the list of states)
Attribute 'status' (object state) has an allowed value (inactive) which is not a known state (You may define its allowed_values property as [new ValueSetEnum('')], or reconsider the list of states)
Attribute 'status' (object state) has a state () which is not an allowed value (You may define its allowed_values property as [new ValueSetEnum('')], or reconsider the list of states)
Class Document
Attribute 'status' (object state) has an allowed value (draft) which is not a known state (You may define its allowed_values property as [new ValueSetEnum('')], or reconsider the list of states)
Attribute 'status' (object state) has an allowed value (obsolete) which is not a known state (You may define its allowed_values property as [new ValueSetEnum('')], or reconsider the list of states)
Attribute 'status' (object state) has an allowed value (published) which is not a known state (You may define its allowed_values property as [new ValueSetEnum('')], or reconsider the list of states)
Attribute 'status' (object state) has a state () which is not an allowed value (You may define its allowed_values property as [new ValueSetEnum('')], or reconsider the list of states)
Class PhysicalDevice
Attribute 'status' (object state) has an allowed value (implementation) which is not a known state (You may define its allowed_values property as [new ValueSetEnum('')], or reconsider the list of states)
Attribute 'status' (object state) has an allowed value (obsolete) which is not a known state (You may define its allowed_values property as [new ValueSetEnum('')], or reconsider the list of states)
Attribute 'status' (object state) has an allowed value (production) which is not a known state (You may define its allowed_values property as [new ValueSetEnum('')], or reconsider the list of states)
Attribute 'status' (object state) has an allowed value (stock) which is not a known state (You may define its allowed_values property as [new ValueSetEnum('')], or reconsider the list of states)
Attribute 'status' (object state) has a state () which is not an allowed value (You may define its allowed_values property as [new ValueSetEnum('')], or reconsider the list of states)
........
Didn't paste the whole text.
I did something wrong again.
I can provide more information if needed
Last edit: Nikola Milanov 2022-03-08
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I've just added your extension on some dev instance (support/2.7 branch and support/3.0), no error were thrown neither by the fist setup nor by a toolkit compilation.
Your problem must be caused by another customization ?
Try to apply them one by one on a new iTop instance ?
Also, beware to launch the setup first to install the new module : you won't be able to do that using the toolkit solely.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi,
I'm trying to add class Monitor (ref. https://www.itophub.io/wiki/page?id=latest%3Acustomization%3Aadd-class-sample), but get an error at the step with toolkit:
An error occured while processing the PHP files of the data model:
Error loading module "add-monitor": /itop_design/classes/class[Monitor] at line 6: parent class 'PhysicalDevice' could not be found - Loaded modules: dictionaries,core,application,add-monitor
Check the PHP files describing the data model before running the toolkit again !
Here is the some lines from my datamodel xml file
Thanks
Nikola
Last edit: Nikola Milanov 2022-03-03
Hello,
Check the dependencies section of your module.*.php file
In the tutorial this is specified in Create your customization module
Hi Pierre,
Thank you for the reply.
When I add the dependencies and start toolkit again I get this on Data Model Consistency:
Didn't paste the whole text.
I did something wrong again.
I can provide more information if needed
Last edit: Nikola Milanov 2022-03-08
Please share your whole module code ? As a zip here, or on GitHub or similar ?
Here is the archive
Thanks
Hi Pierre,
Should I try with Toolkit 2?
Do you think I can continue with these errors?
Last edit: Nikola Milanov 2022-03-14
Hello,
I've just added your extension on some dev instance (support/2.7 branch and support/3.0), no error were thrown neither by the fist setup nor by a toolkit compilation.
Your problem must be caused by another customization ?
Try to apply them one by one on a new iTop instance ?
Also, beware to launch the setup first to install the new module : you won't be able to do that using the toolkit solely.