Unknown bug

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • gribs
    Senior Member
    • May 2015
    • 104

    Unknown bug

    Hi,
    On only one record in contact I have this JS error and I cannot read the record detail


    TypeError: this.getBasePath is not a function
    .getDownloadUrl()
    espo.min.js:197
    .getValueForDisplay()
    espo.min.js:401
    .data()
    espo.min.js:155
    .data()
    espo.min.js:135
    a.View<._getData()
    espo.min.js:16
    a.View<._getHtml/<()
    espo.min.js:16
    a.View<._getNestedViewsHtmlList/f()
    espo.min.js:16
    a.View<._getNestedViewsHtmlList()
    espo.min.js:16
    a.View<._getHtml()
    espo.min.js:16
    a.View<.getHtml()
    espo.min.js:16
    a.View<._getNestedViewsHtmlList/<()
    espo.min.js:16
    forEach()
    self-hosted:216
    a.View<._getNestedViewsHtmlList()
    espo.min.js:16
    a.View<._getHtml()
    espo.min.js:16
    a.View<.getHtml()
    espo.min.js:16
    a.View<._getNestedViewsHtmlList/<()
    espo.min.js:16
    forEach()
    self-hosted:216
    a.View<._getNestedViewsHtmlList()
    espo.min.js:16
    a.View<._getHtml()
    espo.min.js:16
    a.View<.getHtml()
    espo.min.js:16
    a.View<._getNestedViewsHtmlList/<()
    espo.min.js:16
    forEach()
    self-hosted:216
    a.View<._getNestedViewsHtmlList()
    espo.min.js:16
    a.View<._getHtml()
    espo.min.js:16
    a.View<.render()
    espo.min.js:16
    .main/master</process<()
    espo.min.js:281
    a.View<._makeReady()
    espo.min.js:16
    a.View<._tryReady()
    espo.min.js:16
    a.View<.initialize()
    espo.min.js:16
    e.View()
    espo.min.js:6
    q/n<()
    espo.min.js:6
    q/n<()
    espo.min.js:6
    q/n<()
    espo.min.js:6
    q/n<()
    espo.min.js:6
    q/n<()
    espo.min.js:6
    .create/<()
    espo.min.js:16
    ._getViewClass/<()
    espo.min.js:16
    .load()
    espo.min.js:16
    .require()
    espo.min.js:16
    Espo.require()
    espo.min.js:16
    .initView/this.viewLoader<()
    espo.min.js:318
    ._getViewClass()
    espo.min.js:16
    .create()
    espo.min.js:16
    .main/master<()
    espo.min.js:291
    .master/</<()
    espo.min.js:227
    a.View<.render/<()
    espo.min.js:16
    a.View<._getHtml/</<()
    espo.min.js:16
    .getTemplate/g<()
    espo.min.js:16
    .load()
    espo.min.js:16
    .initView/this.viewFactory<.resources.loaders.template()
    espo.min.js:360
    ._callExternalLoader()
    espo.min.js:16
    .load()
    espo.min.js:16
    .getTemplate()
    espo.min.js:16
    a.View<._getTemplate()
    espo.min.js:16
    a.View<._getHtml/<()
    espo.min.js:16
    a.View<._getNestedViewsHtmlList/f()
    espo.min.js:16
    a.View<._getNestedViewsHtmlList/</<()
    espo.min.js:16
    a.View<._getHtml/</<()
    espo.min.js:16
    .getTemplate/g<()
    espo.min.js:16
    .load()
    espo.min.js:16
    .initView/this.viewFactory<.resources.loaders.template()
    espo.min.js:360
    ._callExternalLoader()
    espo.min.js:16
    .load()
    espo.min.js:16
    .getTemplate()
    espo.min.js:16
    a.View<._getTemplate()
    espo.min.js:16
    a.View<._getHtml/<()
    espo.min.js:16
    a.View<._getNestedViewsHtmlList/f()
    espo.min.js:16
    a.View<._getNestedViewsHtmlList()
    espo.min.js:16
    a.View<._getHtml()
    espo.min.js:16
    a.View<.getHtml()
    espo.min.js:16
    a.View<._getNestedViewsHtmlList/<()
    espo.min.js:16
    forEach()
    self-hosted:216
    a.View<._getNestedViewsHtmlList()
    espo.min.js:16
    a.View<._getHtml()
    espo.min.js:16
    a.View<.render()
    espo.min.js:16
    .master/<()
    espo.min.js:225
    a.View<._makeReady()
    espo.min.js:16
    a.View<._tryReady()
    espo.min.js:16
    a.View<.initialize/d</<()
    espo.min.js:16
    a.View<._loadNestedViews/f()
    espo.min.js:16
    a.View<._loadNestedViews/</<()
    espo.min.js:16
    a.View<._makeReady()
    espo.min.js:16
    a.View<._tryReady()
    espo.min.js:16
    a.View<.initialize()
    espo.min.js:16
    e.View()
    espo.min.js:6
    q/n<()
    espo.min.js:6
    q/n<()
    espo.min.js:6
    q/n<()
    espo.min.js:6
    .create/<()
    espo.min.js:16
    ._getViewClass/<()
    espo.min.js:16
    .load()
    espo.min.js:16
    .require()
    espo.min.js:16
    Espo.require()
    espo.min.js:16
    .initView/this.viewLoader<()
    espo.min.js:318
    ._getViewClass()
    espo.min.js:16
    .create()
    espo.min.js:16
    a.View<._loadNestedViews/<()
    espo.min.js:16
    forEach()
    self-hosted:216
    a.View<._loadNestedViews()
    espo.min.js:16
    a.View<.initialize/d<()
    espo.min.js:16
    a.View<.initialize()
    espo.min.js:16
    e.View()
    espo.min.js:6
    q/n<()
    espo.min.js:6
    q/n<()
    espo.min.js:6
    q/n<()
    espo.min.js:6
    .create/<()
    espo.min.js:16
    ._getViewClass/<()
    espo.min.js:16
    .load()
    espo.min.js:16
    .require()
    espo.min.js:16
    Espo.require()
    espo.min.js:16
    .initView/this.viewLoader<()
    espo.min.js:318
    ._getViewClass()
    espo.min.js:16
    .create()
    espo.min.js:16
    .master()
    espo.min.js:222
    .main()
    espo.min.js:246
    .view/createView<()
    espo.min.js:89
    .view/</<()
    espo.min.js:112
    p/t[e]<()
    espo.min.js:5
    j.once/<()
    espo.min.js:4
    _()
    espo.min.js:5
    m()
    espo.min.js:5
    f()
    espo.min.js:5
    l.trigger()
    espo.min.js:5
    .fetch/t.success()
    espo.min.js:5
    n.Callbacks/j()
    espo.min.js:3
    n.Callbacks/k.fireWith()
    espo.min.js:3
    x()
    espo.min.js:4
    .send/b/<()
    espo.min.js:4
  • gribs
    Senior Member
    • May 2015
    • 104

    #2
    I think its because of a message posted by an user in stream of the contact
    He probably paste html/js code from a signature mail

    Here the error log

    [2016-03-08 11:59:34] Espo.WARNING: E_WARNING: Invalid argument supplied for foreach() {"file":"/espo/application/Espo/Core/Acl/Table.php","line":621} []
    [2016-03-08 11:59:34] Espo.WARNING: E_WARNING: Creating default object from empty value {"file":"/espo/application/Espo/Core/Acl/Table.php","line":511} []
    [2016-03-08 11:59:34] Espo.WARNING: E_WARNING: Creating default object from empty value {"file":"/espo/application/Espo/Core/Acl/Table.php","line":487} []
    [2016-03-08 11:59:34] Espo.WARNING: E_WARNING: chown(): Operation not permitted {"file":"/espo/application/Espo/Core/Utils/File/Permission.php","line":398} []
    [2016-03-08 11:59:51] Espo.WARNING: E_WARNING: chown(): Operation not permitted {"file":"/espo/application/Espo/Core/Utils/File/Permission.php","line":398} []
    [2016-03-08 11:59:51] Espo.WARNING: E_WARNING: chown(): Operation not permitted {"file":"/espo/application/Espo/Core/Utils/File/Permission.php","line":398} []
    [2016-03-08 11:59:51] Espo.WARNING: E_WARNING: chown(): Operation not permitted {"file":"/espo/application/Espo/Core/Utils/File/Permission.php","line":398} []
    [2016-03-08 11:59:51] Espo.WARNING: E_WARNING: chown(): Operation not permitted {"file":"/espo/application/Espo/Core/Utils/File/Permission.php","line":398} []
    [2016-03-08 11:59:51] Espo.WARNING: E_WARNING: chown(): Operation not permitted {"file":"/espo/application/Espo/Core/Utils/File/Permission.php","line":398} []
    [2016-03-08 11:59:51] Espo.WARNING: E_WARNING: chown(): Operation not permitted {"file":"/espo/application/Espo/Core/Utils/File/Permission.php","line":398} []
    [2016-03-08 11:59:51] Espo.WARNING: E_WARNING: chown(): Operation not permitted {"file":"/espo/application/Espo/Core/Utils/File/Permission.php","line":398} []
    [2016-03-08 11:59:51] Espo.WARNING: E_WARNING: chown(): Operation not permitted {"file":"/espo/application/Espo/Core/Utils/File/Permission.php","line":398} []
    [2016-03-08 11:59:51] Espo.WARNING: E_WARNING: chown(): Operation not permitted {"file":"/espo/application/Espo/Core/Utils/File/Permission.php","line":398} []
    [2016-03-08 11:59:51] Espo.WARNING: E_WARNING: chown(): Operation not permitted {"file":"/espo/application/Espo/Core/Utils/File/Permission.php","line":398} []
    [2016-03-08 11:59:51] Espo.WARNING: E_WARNING: chown(): Operation not permitted {"file":"/espo/application/Espo/Core/Utils/File/Permission.php","line":398} []
    [2016-03-08 11:59:51] Espo.WARNING: E_WARNING: chown(): Operation not permitted {"file":"/espo/application/Espo/Core/Utils/File/Permission.php","line":398} []
    [2016-03-08 11:59:51] Espo.WARNING: E_WARNING: chown(): Operation not permitted {"file":"/espo/application/Espo/Core/Utils/File/Permission.php","line":398} []
    [2016-03-08 11:59:51] Espo.WARNING: E_WARNING: chown(): Operation not permitted {"file":"/espo/application/Espo/Core/Utils/File/Permission.php","line":398} []
    [2016-03-08 11:59:51] Espo.WARNING: E_WARNING: chown(): Operation not permitted {"file":"/espo/application/Espo/Core/Utils/File/Permission.php","line":398} []
    [2016-03-08 12:00:03] Espo.ERROR: E_RECOVERABLE_ERROR: Argument 1 passed to Espo\Core\Acl\Table::mergeTableList() must be of the type array, null given, called in /espo/application/Espo/Core/Acl/Table.php on line 203 and defined {"file":"/espo/application/Espo/Core/Acl/Table.php","line":558} []
    [2016-03-08 12:00:03] Espo.WARNING: E_WARNING: Invalid argument supplied for foreach() {"file":"/espo/application/Espo/Core/Acl/Table.php","line":563} []
    [2016-03-08 12:00:03] Espo.ERROR: E_RECOVERABLE_ERROR: Argument 1 passed to Espo\Core\Acl\Table::mergeFieldTableList() must be of the type array, null given, called in /espo/application/Espo/Core/Acl/Table.php on line 204 and defined {"file":"/espo/application/Espo/Core/Acl/Table.php","line":616} []
    [2016-03-08 12:00:03] Espo.WARNING: E_WARNING: Invalid argument supplied for foreach() {"file":"/espo/application/Espo/Core/Acl/Table.php","line":621} []
    [2016-03-08 12:00:03] Espo.WARNING: E_WARNING: Creating default object from empty value {"file":"/espo/application/Espo/Core/Acl/Table.php","line":511} []
    [2016-03-08 12:00:03] Espo.WARNING: E_WARNING: Creating default object from empty value {"file":"/espo/application/Espo/Core/Acl/Table.php","line":487} []
    [2016-03-08 12:00:03] Espo.WARNING: E_WARNING: chown(): Operation not permitted {"file":"/espo/application/Espo/Core/Utils/File/Permission.php","line":398} []
    [2016-03-08 12:25:18] Espo.WARNING: E_WARNING: Creating default object from empty value {"file":"/espo/application/Espo/Core/Acl/Table.php","line":511} []
    [2016-03-08 12:25:18] Espo.WARNING: E_WARNING: Creating default object from empty value {"file":"/espo/application/Espo/Core/Acl/Table.php","line":487} []
    [2016-03-08 12:25:18] Espo.WARNING: E_WARNING: chown(): Operation not permitted {"file":"/espo/application/Espo/Core/Utils/File/Permission.php","line":398} []
    [2016-03-08 13:23:02] Espo.WARNING: E_WARNING: Creating default object from empty value {"file":"/espo/application/Espo/Core/Acl/Table.php","line":511} []
    [2016-03-08 13:23:02] Espo.WARNING: E_WARNING: Creating default object from empty value {"file":"/espo/application/Espo/Core/Acl/Table.php","line":487} []
    [2016-03-08 13:23:02] Espo.WARNING: E_WARNING: Creating default object from empty value {"file":"/espo/application/Espo/Core/Acl/Table.php","line":511} []
    [2016-03-08 13:23:02] Espo.WARNING: E_WARNING: Creating default object from empty value {"file":"/espo/application/Espo/Core/Acl/Table.php","line":487} []
    [2016-03-08 13:23:02] Espo.WARNING: E_WARNING: Creating default object from empty value {"file":"/espo/application/Espo/Core/Acl/Table.php","line":511} []
    [2016-03-08 13:23:02] Espo.WARNING: E_WARNING: Creating default object from empty value {"file":"/espo/application/Espo/Core/Acl/Table.php","line":487} []
    [2016-03-08 13:23:02] Espo.WARNING: E_WARNING: Creating default object from empty value {"file":"/espo/application/Espo/Core/Acl/Table.php","line":511} []
    [2016-03-08 13:23:02] Espo.WARNING: E_WARNING: Creating default object from empty value {"file":"/espo/application/Espo/Core/Acl/Table.php","line":487} []
    [2016-03-08 13:23:02] Espo.WARNING: E_WARNING: Creating default object from empty value {"file":"/espo/application/Espo/Core/Acl/Table.php","line":511} []
    [2016-03-08 13:23:02] Espo.WARNING: E_WARNING: Creating default object from empty value {"file":"/espo/application/Espo/Core/Acl/Table.php","line":487} []
    [2016-03-08 13:23:02] Espo.WARNING: E_WARNING: Creating default object from empty value {"file":"/espo/application/Espo/Core/Acl/Table.php","line":511} []
    [2016-03-08 13:23:02] Espo.WARNING: E_WARNING: Creating default object from empty value {"file":"/espo/application/Espo/Core/Acl/Table.php","line":487} []
    [2016-03-08 13:24:09] Espo.WARNING: E_WARNING: chown(): Operation not permitted {"file":"/espo/application/Espo/Core/Utils/File/Permission.php","line":398} []

    Comment

    • gribs
      Senior Member
      • May 2015
      • 104

      #3
      In fact it does this in few contacts detail page,
      Some don't show any stream notes now but there are stream notes in DB and when I send a new note, doesn't show neither but sent in DB
      Same JS error on these files as I have explained in my first post

      Rebuild doesn't make anything

      Comment

      • yuri
        Member
        • Mar 2014
        • 8440

        #4
        It seems is caused by html /js pasted into post. It's caused by image attached to post. But I can't reproduce this error. Maybe espo.min.js is cached by browser?
        If you find EspoCRM good, we would greatly appreciate if you could give the project a star on GitHub. We believe our work truly deserves more recognition. Thanks.

        Comment

        • gribs
          Senior Member
          • May 2015
          • 104

          #5
          In fact, it was a compatibility problem with beta 1 4.0.0
          I upgraded to 4.0.0 > 4.0.1 and 4.0.2

          It worked for few minutes but now I have another problem

          I cannot reach most of the pages

          It loads infinitely
          In console JS I get "unreachable code after return statement espo.min.js:200:12"

          And in espo error log

          [2016-03-09 09:40:44] Espo.WARNING: E_WARNING: chown(): Operation not permitted {"code":2,"message":"chown(): Operation not permitted","file":"/espo/application/Espo/Core/Utils/File/Permission.php","line":398} []
          [2016-03-09 09:40:44] Espo.WARNING: E_WARNING: chown(): Operation not permitted {"code":2,"message":"chown(): Operation not permitted","file":"/espo/application/Espo/Core/Utils/File/Permission.php","line":398} []
          [2016-03-09 09:40:46] Espo.WARNING: E_WARNING: chown(): Operation not permitted {"code":2,"message":"chown(): Operation not permitted","file":"/espo/application/Espo/Core/Utils/File/Permission.php","line":398} []
          [2016-03-09 09:40:46] Espo.WARNING: E_WARNING: chown(): Operation not permitted {"code":2,"message":"chown(): Operation not permitted","file":"/espo/application/Espo/Core/Utils/File/Permission.php","line":398} []
          [2016-03-09 09:40:46] Espo.WARNING: E_WARNING: chown(): Operation not permitted {"code":2,"message":"chown(): Operation not permitted","file":"/espo/application/Espo/Core/Utils/File/Permission.php","line":398} []
          [2016-03-09 09:40:46] Espo.WARNING: E_WARNING: chown(): Operation not permitted {"code":2,"message":"chown(): Operation not permitted","file":"/espo/application/Espo/Core/Utils/File/Permission.php","line":398} []
          [2016-03-09 09:40:46] Espo.WARNING: E_WARNING: chown(): Operation not permitted {"code":2,"message":"chown(): Operation not permitted","file":"/espo/application/Espo/Core/Utils/File/Permission.php","line":398} []
          [2016-03-09 09:40:46] Espo.WARNING: E_WARNING: chown(): Operation not permitted {"code":2,"message":"chown(): Operation not permitted","file":"/espo/application/Espo/Core/Utils/File/Permission.php","line":398} []
          [2016-03-09 09:40:46] Espo.WARNING: E_WARNING: chown(): Operation not permitted {"code":2,"message":"chown(): Operation not permitted","file":"/espo/application/Espo/Core/Utils/File/Permission.php","line":398} []
          [2016-03-09 09:40:46] Espo.WARNING: E_WARNING: chown(): Operation not permitted {"code":2,"message":"chown(): Operation not permitted","file":"/espo/application/Espo/Core/Utils/File/Permission.php","line":398} []
          [2016-03-09 09:40:46] Espo.WARNING: E_WARNING: chown(): Operation not permitted {"code":2,"message":"chown(): Operation not permitted","file":"/espo/application/Espo/Core/Utils/File/Permission.php","line":398} []
          [2016-03-09 09:40:46] Espo.WARNING: E_WARNING: chown(): Operation not permitted {"code":2,"message":"chown(): Operation not permitted","file":"/espo/application/Espo/Core/Utils/File/Permission.php","line":398} []
          [2016-03-09 09:40:46] Espo.WARNING: E_WARNING: chown(): Operation not permitted {"code":2,"message":"chown(): Operation not permitted","file":"/espo/application/Espo/Core/Utils/File/Permission.php","line":398} []
          [2016-03-09 09:40:46] Espo.WARNING: E_WARNING: chown(): Operation not permitted {"code":2,"message":"chown(): Operation not permitted","file":"/espo/application/Espo/Core/Utils/File/Permission.php","line":398} []

          And so on

          I tried to remove local cache, mine, and to rebuild, but nothing

          So I have remake server configuration
          https://www.espocrm.com/blog/server-...n-for-espocrm/

          Chmod + chown, but nothing change
          why this Operation not permitted {"code":2,"message":"chown():?
          My problem come from this?
          Last edited by gribs; 03-09-2016, 09:53 AM.

          Comment

          • gribs
            Senior Member
            • May 2015
            • 104

            #6
            I upgraded from 4.0.0 -1 beta to 4.0.0 and then to 4.0.1 and then to 4.0.2
            Errors could come from this ?

            Comment

            • gribs
              Senior Member
              • May 2015
              • 104

              #7
              Hi
              resolved, it was a config error with my php
              now it works ! thanks

              Comment

              Working...