Menu

#972 Setup fails with message: Wrong filename in configuration file

2.1.0
closed
None
User Interface
Critical
2.0.3
defect
2014-10-22
2014-08-05
Denis
No

Symptom: The setup halts at 40% with the message:

Wrong filename in configuration file: file = , module = business, filename = /opt/dev/trunk//env-production/itop-profiles-itil/model.itop-profiles-itil.php

Reason: a module (with no dependency) contains the following piece of XML:

<?xml version="1.0" encoding="UTF-8"?>
<itop_design xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="1.0">
  <user_rights>
    <profiles>
    </profiles>
  </user_rights>
  ...
</itop_design>

Root cause:
It seems that the "profiles" part gets compiled in the PHP "model" file of the first module encountered (in the installation order) which contains a "profiles" tag. If such a module comes before "itop-profiles-itil" then the result of the compilation of "itop-profiles-itil" is empty an no model files gets generated for the module. Which causes the above mentioned failure.

Work around:
- Do not put the empty <user_rights><profiles> tags in your XML if you don't need them.

Related

Tickets: #997

Discussion

  • Denis

    Denis - 2014-08-05

    It seems to be the <user_rights> tag which causes the trouble, even without a <profiles> tag underneath.

     

    Last edit: Denis 2014-08-05
  • Denis

    Denis - 2014-10-08
    • Milestone: Unassigned --> 2.0.4
     
  • Romain Quetiez

    Romain Quetiez - 2014-10-22
    • status: new --> closed
    • assigned_to: Romain Quetiez
     
  • Denis

    Denis - 2014-10-22

    The actual cause of the error is that the compiler does not produce the file "model.xxx.php" at all for the empty module. What about producing the file even if it does not contain any PHP declaration?

     
    • Romain Quetiez

      Romain Quetiez - 2014-10-22

      This fix would cope with the issue that is currently visible. Then, we would have a model.xxxx file in which the user rights are compiled... and it is uncertain that this file will be included (included files must be explicitely listed in the module files)

       

Log in to post a comment.