Error when sending a report via email (GRID). Htmlizer.php

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • rodrigocoelho
    Active Community Member
    • Jun 2016
    • 296

    Error when sending a report via email (GRID). Htmlizer.php

    Espo.ERROR: Uncaught Exception Error: "Function name must be a string" at /var/www/html/espocrm/application/Espo/Core/Htmlizer/Htmlizer.php line 327 {"exception":"[object] (Error(code: 0): Function name must be a string at /var/www/html/espocrm/application/Espo/Core/Htmlizer/Htmlizer.php:327)"} []

    EspoCRM 5.5.3
    Last edited by rodrigocoelho; 01-03-2019, 07:27 PM.
  • tanya
    Senior Member
    • Jun 2014
    • 4308

    #2
    Hello,
    I can't reproduce it on the demo.
    What is the version of Advanced Pack and how to create me the same report?

    Comment

    • rodrigocoelho
      Active Community Member
      • Jun 2016
      • 296

      #3
      Advanced package 1.33.4 (updated today), with the same problem.

      The report capture are below.
      Click image for larger version

Name:	Capturar.JPG
Views:	167
Size:	75.9 KB
ID:	44617


      Click image for larger version

Name:	Capturar.JPG
Views:	170
Size:	73.3 KB
ID:	44618



      Click image for larger version

Name:	Capturar.JPG
Views:	162
Size:	64.3 KB
ID:	44619

      Comment

      • WMEspo
        Member
        • Sep 2018
        • 33

        #4
        I am having this exact same issue on two different versions of Espo, but Advanced Pack 1.32.15

        All emails work BUT the reports. At the top of the screen it shows Error 500. Any report does this. Nothing in the logs even in DEBUG mode.

        Comment

        • rodrigocoelho
          Active Community Member
          • Jun 2016
          • 296

          #5
          I reported it on support. Maybe solving the problem for me will solve yours too.

          Comment

          • WMEspo
            Member
            • Sep 2018
            • 33

            #6
            Yes and unfortunately as of right now emailing reports is the ONLY email function I need to work, we might utilize email more later on.

            Comment

            • tanya
              Senior Member
              • Jun 2014
              • 4308

              #7
              Hello,
              reproduced, will be fixed soon

              Comment

              • yuri
                Member
                • Mar 2014
                • 8440

                #8
                Actually, I could not reproduce it yet.
                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

                • WMEspo
                  Member
                  • Sep 2018
                  • 33

                  #9
                  My error is slightly different. Nothing in Espo logs, but in Developer Console I do get this:

                  VM35:1 POST http://crm/api/v1/Report/action/getEmailAttributes 500 (Internal Server Error)
                  (anonymous) @ VM35:1
                  send @ espo.min.js?r=1547281562:4
                  ajax @ espo.min.js?r=1547281562:4
                  ajaxRequest @ VM50:196
                  ajaxPostRequest @ VM50:213
                  actionSendInEmail @ VM480:133
                  click [data-action="sendInEmail"] @ VM480:41
                  dispatch @ espo.min.js?r=1547281562:3
                  r.handle @ espo.min.js?r=1547281562:3

                  Comment

                  • yuri
                    Member
                    • Mar 2014
                    • 8440

                    #10
                    Solution:

                    1. Install advanced pack 1.33.6 or greater.
                    2. Administration > Template Manager > Report (Grid 1, Grid 2, List) > Rest to Default.
                    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

                    • WMEspo
                      Member
                      • Sep 2018
                      • 33

                      #11
                      This might be a dumb question, but where do you download a newer version of Advanced Pack, our year subscription should still be active?

                      Thanks.

                      Edit: Nevermind I found our support portal login.
                      Last edited by WMEspo; 01-17-2019, 04:49 PM.

                      Comment

                      • rodrigocoelho
                        Active Community Member
                        • Jun 2016
                        • 296

                        #12
                        It's Working Yuri, thanks.

                        Comment

                        • WMEspo
                          Member
                          • Sep 2018
                          • 33

                          #13
                          For anyone else looking through this thread, my issue was an outdated version of PHP.

                          Comment

                          Working...