Export XLSX Error

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • mfonsatti
    Active Community Member
    • Jul 2018
    • 13

    Export XLSX Error

    Hi,
    i'm trying to make an export xlsx of a report but the system throw an exception makin' an instance of \PHPExcel() class
    /vendor/phpoffice/phpexcel/Classes/PHPExcel.php

    "syntax error, unexpected '\' (T_NS_SEPARATOR), expecting identifier (T_STRING)"
    file: /EspoCRM-5.2.1/files/vendor/phpoffice/phpexcel/Classes/PHPExcel.php
    line: 43


    the function process in file "Espo/Modules/Advanced/Core/Report/ExportXlsx.php" , call the class that throw the exception
    PHP Code:
    public function process($entityType, $params, $result)
    {
    
        $phpExcel = new \PHPExcel();
    
    ... 
    
    Last edited by mfonsatti; 07-11-2018, 01:41 PM.
  • tanya
    Senior Member
    • Jun 2014
    • 4308

    #2
    Hello,
    what is the version of Advanced Pack?

    P.S. it is prohibited to share the code from Advanced Pack by license.

    Comment

    • mfonsatti
      Active Community Member
      • Jul 2018
      • 13

      #3
      the version is 1.23.1

      Comment

      • tanya
        Senior Member
        • Jun 2014
        • 4308

        #4
        Could you upgrade Advanced Pack? When did you buy this extension?

        Comment

        • mfonsatti
          Active Community Member
          • Jul 2018
          • 13

          #5
          i've updated to the latest version of Advanced Pack but the problem is not solved .

          Comment

          • tanya
            Senior Member
            • Jun 2014
            • 4308

            #6
            In the latest version Espo/Modules/Advanced/Core/Report/ExportXlsx.php is different and uses other library. Clear Cache, try again and check the log

            Comment

            Working...