ovann86 on "[Plugin: CKEditor WYSIWYG for Gravity Forms] CKEditor Syntax Error"

ساخت وبلاگ

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/

/*
* 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 GFPDFHelperFieldsWYSIWYG_Textarea_Field( $field, $entry, GPDFAPI::get_form_class(), GPDFAPI::get_misc_class() );
}
retu $class;
}

this is the code that is messing with it. removed this one and it is working fine now.

ovann86
Member
Plugin Author

Posted 1 hour ago #

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

ovann86
Member
Plugin Author

Posted 37 minutes ago #

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 conceed contact your host about this). And of course, always ensure you have a backup of your website before making any changes.

ovann86
Member
Plugin Author

Posted 9 minutes ago #

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.

WordPress ...
ما را در سایت WordPress دنبال می کنید

برچسب : نویسنده : استخدام کار wpss بازدید : 156 تاريخ : يکشنبه 12 ارديبهشت 1395 ساعت: 7:17