Menu

UndefinedMethodException on the Portal

2021-05-08
2021-05-12
  • Sébastien Potin

    Dear Combodo Team,

    I created a new portal (thanks for your help btw)

    It was working like a charm, until I pushed the extension in our production système.

    In the production env. I'm getting this error :

    (1/1) UndefinedMethodException
    Attempted to call an undefined method named "GetText" of class "DOMText".
    
    in abstractbrick.class.inc.php (line 601)
    at AbstractBrick->LoadFromXml(object(DesignElement))
    in portalbrick.class.inc.php (line 427)
    at PortalBrick->LoadFromXml(object(DesignElement))
    in managebrick.class.inc.php (line 634)
    at ManageBrick->LoadFromXml(object(DesignElement))
    in applicationhelper.class.inc.php (line 868)
    at ApplicationHelper::LoadBricksConfiguration(object(Application), object(ModuleDesign))
    in applicationhelper.class.inc.php (line 559)
    at ApplicationHelper::LoadPortalConfiguration(object(Application))
    in index.php (line 143)
    at {closure}(object(Request), object(Application))
    at call_user_func(object(Closure), object(Request), object(Application))
    in Application.php (line 254)
    at Application->Silex\{closure}(object(GetResponseEvent), 'kernel.request', object(EventDispatcher))
    in EventDispatcher.php (line 212)
    at EventDispatcher->doDispatch(array(object(Closure), array(object(FragmentListener), 'onKernelRequest'), array(object(RouterListener), 'onKernelRequest'), array(object(MiddlewareListener), 'onKernelRequest')), 'kernel.request', object(GetResponseEvent))
    in EventDispatcher.php (line 44)
    at EventDispatcher->dispatch('kernel.request', object(GetResponseEvent))
    in HttpKernel.php (line 127)
    at HttpKernel->handleRaw(object(Request), 1)
    in HttpKernel.php (line 68)
    at HttpKernel->handle(object(Request), 1, true)
    in Application.php (line 496)
    at Application->handle(object(Request))
    in Application.php (line 477)
    at Application->run()
    in index.php (line 167)
    at require_once('D:\\------------\\env-production\\itop-portal-base\\portal\\web\\index.php')
    in index.php (line 51)
    at require_once('D:\\------------\\env-production\\itop-portal-base\\index.php')
    in exec.php (line 77)
    

    Any idea where I could start the investigation ?

    Regards,
    Sébastien

     
  • Sébastien Potin

    Dear Combodo Team,

    I found my mistake ...
    So no more issue on my side

    Regards,
    Sébastien

     
  • Guillaume Lajarige

    Hello Sebastien,

    Glad to see that you fixed it!
    Could you share what the cause what so it might help others from the community?

    Take care,
    Guillaume

     
    • Sébastien Potin

      Hello Guillaume,

      I cannot really explain what was the issue ...
      The issue was present on iTop version 2.6 but not on the 2.7.
      I identify that the issue was around the declaration on a specific brick:

      <fields>
          <field id="title"/>
          <field id="start_date"/>
          <field id="status"/>
          <field id="service_id"/>
          <field id="servicesubcategory_id"/>
          <field id="priority"/>
          <field id="caller_id"/>
      </fields>
      

      The exact same declaration was working on an other brick.
      So did a simple copy/paste from the brick that was working to the brick that wasn't.
      I'm not able to explain what was the difference, even by doing a compare in Notepad++ ...

      If I have found few minutes today I will retry with the version that wasn't working and if the same error is occuring I will share the brick code

      Regards,
      Sébastien

       
      • Guillaume Lajarige

        Thanks for the feedback, if it disappear like it appeared don't bother. It was mostly if you found a clear cause that could help others :)

        Take care,
        Guillaume

         

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.