Support » Plugin: CKEditor WYSIWYG for Gravity Forms » CKEditor Syntax Error

Viewing 7 replies - 1 through 7 (of 7 total)
  • /*
    * 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

    (@ovann86)

    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

    (@ovann86)

    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/

    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

    (@ovann86)

    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

    (@ovann86)

    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.

    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

    (@ovann86)

    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.