Title: Newest version 1.4.2: Export errors!
Last modified: July 13, 2018

---

# Newest version 1.4.2: Export errors!

 *  Resolved [alfredarnal](https://wordpress.org/support/users/alfredarnal/)
 * (@alfredarnal)
 * [7 years, 10 months ago](https://wordpress.org/support/topic/newest-version-1-4-2-export-errors/)
 * Hi, thanks for releasing a new version.
 * Exporting to CSV now seems to work OK relating special characters (at least with
   Catalan and Spanish)
 * However, now I CANNOT EXPORT to Excel or PDF:
 * 1. Trying to export to Excel, I get the following error screen:
 * “Parse error: syntax error, unexpected ‘[‘ in /usr/home/ (…my website…) /web/
   wp-content/plugins/advanced-cf7-db/admin/class/PHPExcel.php on line 9”
 * (which is the following line: private $_types = [ ‘xlsx’ => ‘Excel2007’, ‘xls’
   => ‘Excel5’ ]; )
 * 2. Trying to export to PDF, I get the following error screen:
 * “Usage: page=contact-form-listing&cf7_id=3676 font_family [n_file [b_file] [i_file][
   bi_file]] font_family: the name of the font, e.g. Verdana, ‘Times New Roman’,
   monospace, sans-serif. If it equals to “system_fonts”, all the system fonts will
   be installed. n_file: the .ttf or .otf file for the normal, non-bold, non-italic
   face of the font. {b|i|bi}_file: the files for each of the respective (bold, 
   italic, bold-italic) faces. If the optional b|i|bi files are not specified, load_font.
   php will search the directory containing normal font file (n_file) for additional
   files that it thinks might be the correct ones (e.g. that end in _Bold or b or
   B). If it finds the files they will also be processed. All files will be automatically
   copied to the DOMPDF font directory, and afm files will be generated using php-
   font-lib ([https://github.com/PhenX/php-font-lib](https://github.com/PhenX/php-font-lib)).
   Examples: ./load_font.php silkscreen /usr/share/fonts/truetype/slkscr.ttf ./load_font.
   php ‘Times New Roman’ /mnt/c_drive/WINDOWS/Fonts/times.ttf”
 * No more info provided.
 * An urgent fix is needed as exporting only to CSV is not acceptable in my organization…
 * Thanks in advance

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Plugin Author [Vsourz Digital](https://wordpress.org/support/users/vsourz1td/)
 * (@vsourz1td)
 * [7 years, 9 months ago](https://wordpress.org/support/topic/newest-version-1-4-2-export-errors/#post-10570911)
 * Hello [@alfredarnal](https://wordpress.org/support/users/alfredarnal/),
 * We have resolved the issue related to the PDF generation issue in our latest 
   release 1.4.4.
 * Also, we have provided filters to restrict data submission or modify, edit data
   before saving to DB.
 * Hope you will enjoy the new features.
 * Regards,
    Vsourz
 *  Thread Starter [alfredarnal](https://wordpress.org/support/users/alfredarnal/)
 * (@alfredarnal)
 * [7 years, 9 months ago](https://wordpress.org/support/topic/newest-version-1-4-2-export-errors/#post-10584994)
 * Hi, thanks for your reply and new release, however this issue is not resolved
   at all (not for me at least):
 * 1. Trying to export to Excel, I still get the same following error screen, that
   is:
 * “Parse error: syntax error, unexpected ‘[‘ in /usr/home/ (…my website…) /web/
   wp-content/plugins/advanced-cf7-db/admin/class/PHPExcel.php on line 9”
 * (which is the following line: private $_types = [ ‘xlsx’ => ‘Excel2007’, ‘xls’
   => ‘Excel5’ ]; )
 * 2. Trying to export to PDF, I don’t get any error screen any more, however I 
   can’t open the PDF. Acrobat Reader XI warns me of incorrect file format.
 *  Thread Starter [alfredarnal](https://wordpress.org/support/users/alfredarnal/)
 * (@alfredarnal)
 * [7 years, 7 months ago](https://wordpress.org/support/topic/newest-version-1-4-2-export-errors/#post-10840554)
 * Hi guys,
 * Just installed your latest version 1.5.0, however still stuck into the same problem
   with exporting to either Excel or PDF:, that is:
 * 1. Trying to export to Excel, I get the following error screen:
 * “Parse error: syntax error, unexpected ‘[‘ in /usr/home/ (…my website…) /web/
   wp-content/plugins/advanced-cf7-db/admin/class/PHPExcel.php on line 9”
 * (which is the following line: private $_types = [ ‘xlsx’ => ‘Excel2007’, ‘xls’
   => ‘Excel5’ ]; )
 * 2. Trying to export to PDF, I don’t get any error screen any more, however I 
   CAN’T OPEN the PDF. Acrobat Reader XI warns me of incorrect file format.
 * Are you working on the issue?
    Thanks

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Newest version 1.4.2: Export errors!’ is closed to new replies.

 * ![](https://ps.w.org/advanced-cf7-db/assets/icon-256x256.jpg?rev=1696186)
 * [Advanced Contact form 7 DB](https://wordpress.org/plugins/advanced-cf7-db/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/advanced-cf7-db/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/advanced-cf7-db/)
 * [Active Topics](https://wordpress.org/support/plugin/advanced-cf7-db/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/advanced-cf7-db/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/advanced-cf7-db/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [alfredarnal](https://wordpress.org/support/users/alfredarnal/)
 * Last activity: [7 years, 7 months ago](https://wordpress.org/support/topic/newest-version-1-4-2-export-errors/#post-10840554)
 * Status: resolved