Title: CKEditor Syntax Error
Last modified: August 31, 2016

---

# CKEditor Syntax Error

 *  Resolved [daudi250](https://wordpress.org/support/users/daudi250/)
 * (@daudi250)
 * [10 years ago](https://wordpress.org/support/topic/ckeditor-syntax-error-1/)
 * Plugin could not be activated because it triggered a fatal error.
    Parse error:
   syntax error, unexpected T_STRING in /xxxx/xxxx/public_html/xxxxxx.com/wp-content/
   plugins/gravity-forms-wysiwyg-ckeditor/gf_wysiwyg_ckeditor_plugin.php on line
   971
 * [https://wordpress.org/plugins/gravity-forms-wysiwyg-ckeditor/](https://wordpress.org/plugins/gravity-forms-wysiwyg-ckeditor/)

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

 *  Thread Starter [daudi250](https://wordpress.org/support/users/daudi250/)
 * (@daudi250)
 * [10 years ago](https://wordpress.org/support/topic/ckeditor-syntax-error-1/#post-7335796)
 * /*
    * Add Gravity PDF 4.0 support */ public function decode_wysiwgy_gravitypdf_4_0(
   $class, $field, $entry ) { if ( self::is_wysiwyg_ckeditor( $field ) ) { require_once(
   plugin_dir_path( __FILE__ ).’gravitypdf/WYSIWYG_Textarea_Field.php’ ); $class
   = new GFPDF\Helper\Fields\WYSIWYG_Textarea_Field( $field, $entry, GPDFAPI::get_form_class(),
   GPDFAPI::get_misc_class() ); } return $class; }
 * this is the code that is messing with it. removed this one and it is working 
   fine now.
 *  Plugin Author [ovann86](https://wordpress.org/support/users/ovann86/)
 * (@ovann86)
 * [10 years ago](https://wordpress.org/support/topic/ckeditor-syntax-error-1/#post-7335844)
 * Hey,
 * Thanks for reporting this and providing the extra detail.
 * I’ll see what I can do about reproducing the error message and fixing it up.
 * At very least I think I’ll add a check so that code only runs if Gravity PDF 
   is installed and enabled.
 * **Just a question, do you have Gravity PDF installed?**
 * Thanks again
 *  Plugin Author [ovann86](https://wordpress.org/support/users/ovann86/)
 * (@ovann86)
 * [10 years ago](https://wordpress.org/support/topic/ckeditor-syntax-error-1/#post-7335848)
 * I’ve managed to reproduce the issue by switching back to PHP version 5.2.
 * WordPress recommends at least PHP version 5.6
    [https://wordpress.org/about/requirements/](https://wordpress.org/about/requirements/)
 * They do say WordPress an run on 5.2.4 but you may be exposing yourself to security
   issues.
 * I’ll start looking at why this fails with PHP version 5.2, but I also highly 
   recommend you look into changing your PHP version to at least 5.6 (version 7.0
   is the latest).
 * If the website is on a shared web hosting you should be able to log into the 
   management website (e.g. if it’s cpanel the address is websitename.com/cpanel)
   and find and option to change PHP version.
 * Usually switching PHP version like this won’t have an consequences, particually
   when you’re already running such an old version. But if there are issues you 
   can normally switch back (but if you’re concerned contact your host about this).
   And of course, always ensure you have a backup of your website before making 
   any changes.
 *  Plugin Author [ovann86](https://wordpress.org/support/users/ovann86/)
 * (@ovann86)
 * [10 years ago](https://wordpress.org/support/topic/ckeditor-syntax-error-1/#post-7335851)
 * OK, I can’t work around this issue without removing support for the upcoming 
   Gravity PDF 4.0 update.
 * So to use this plugin you’ll need to update your PHP version to at least 5.3 (
   or continue to remove that function every time there’s an update), but I personally
   would aim for version 7.0 if your host supports it.
 *  Plugin Author [ovann86](https://wordpress.org/support/users/ovann86/)
 * (@ovann86)
 * [10 years ago](https://wordpress.org/support/topic/ckeditor-syntax-error-1/#post-7336023)
 * Hey,
 * I just thought I would let you know in case you were not able to update your 
   PHP version – I am going to change how the Gravity PDF patch works so that this
   plugin will work with PHP version 5.2.
 *  [Christoph S. Ackermann](https://wordpress.org/support/users/chrigu99/)
 * (@chrigu99)
 * [10 years ago](https://wordpress.org/support/topic/ckeditor-syntax-error-1/#post-7336024)
 * Hey there
 * You have one more bug: in the file gravitypdf.php you are using short open tag
   on line 1.
    Please change <? to <?php, because the default PHP configuration 
   doesn’t support short open tags for security reasons.
 * Thanks and cheers
    Chris
 *  Plugin Author [ovann86](https://wordpress.org/support/users/ovann86/)
 * (@ovann86)
 * [10 years ago](https://wordpress.org/support/topic/ckeditor-syntax-error-1/#post-7336025)
 * Doh – sorry about that, thanks for the pick up.

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

The topic ‘CKEditor Syntax Error’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/gravity-forms-wysiwyg-ckeditor_d3d3d3.
   svg)
 * [CKEditor WYSIWYG for Gravity Forms](https://wordpress.org/plugins/gravity-forms-wysiwyg-ckeditor/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/gravity-forms-wysiwyg-ckeditor/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/gravity-forms-wysiwyg-ckeditor/)
 * [Active Topics](https://wordpress.org/support/plugin/gravity-forms-wysiwyg-ckeditor/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/gravity-forms-wysiwyg-ckeditor/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/gravity-forms-wysiwyg-ckeditor/reviews/)

 * 7 replies
 * 3 participants
 * Last reply from: [ovann86](https://wordpress.org/support/users/ovann86/)
 * Last activity: [10 years ago](https://wordpress.org/support/topic/ckeditor-syntax-error-1/#post-7336025)
 * Status: resolved