Jonathan Horowitz
Forum Replies Created
-
Hi @ighulme,
Thanks for the report! We have released a fix: version 5.01 now strips leading and trailing whitespace from expressions and skips processing if there is nothing left in the field.
Please try it out and let us know if you find any other issues, and thanks again for using our plugin 🙂
Forum: Plugins
In reply to: [Content Visibility for Divi Builder] critical errorsHello @beachmat,
After further digging and the bug report by @ighulme, we have released a fix that may apply to this. Version 5.01 now strips leading and trailing whitespace from expressions and skips processing if there is nothing left in the field.
Thank you for your patience and for using our plugin!
Forum: Plugins
In reply to: [Content Visibility for Divi Builder] critical errorsThat would indicate an error in the visibility field code, by trying to execute multiple statements separated by semicolons. If you need multiple statements, you should define a custom function in your theme’s functions.php that returns a boolean and call it in the visibility field.
Forum: Plugins
In reply to: [Content Visibility for Divi Builder] critical errorsAlso, which version of Divi are you using? Is it the theme or the builder plugin?
Forum: Plugins
In reply to: [Content Visibility for Divi Builder] critical errorsHi @beachmat,
Sorry to hear you are having trouble with the plugin! Could you please share the error messages from your error log? You can email them to me via [email protected] or post them here.
Thanks!Forum: Plugins
In reply to: [Content Visibility for Divi Builder] Undefined variable $et_pb_elementThanks for confirming @kindred! Marking this as resolved.
Forum: Plugins
In reply to: [Content Visibility for Divi Builder] Undefined variable $et_pb_elementHi @kindred,
Thank you for the quick report and our sincerest apologies for the flood of warnings! This has been fixed in v4.01 which has just been released.
Please upgrade when the update becomes available for download shortly.Thanks @ssmithalignsoftcom for your kind words and praise for our plugin! We are glad you find it useful 🙂
We are looking forward to Divi 5 compatibility for the next major update but will be keeping up with bumping compatibility with latest WordPress versions as we test internally.
Forum: Plugins
In reply to: [Content Visibility for Divi Builder] Critical Error on pages with pluginHah, we were writing the follow up at the same time @ighulme 🤣
Thanks for providing those additional details and glad everything is sorted 👍
Forum: Plugins
In reply to: [Content Visibility for Divi Builder] Critical Error on pages with pluginClosing the loop here; with some additional logs this was determined to be a syntax error with PHP 8+ in the existing visibility expressions. A minor tweak to the code in the visibility expressions (albeit in many different places) set things straight again.
- This reply was modified 1 year, 9 months ago by Jonathan Horowitz. Reason: Clarify the expressions needed tweaking, not plugin code
Forum: Plugins
In reply to: [Content Visibility for Divi Builder] Critical Error on pages with pluginHi @ighulme,
Thanks for using our plugin and for reaching out to us!
I am not aware of any issues with the plugin on WordPress 6.6.1; it is working fine for me on a site I manage with that WordPress version.
Could you please share one of the critical error stack traces here or to my email ([email protected])? I am thinking the PHP version may be the culprit, and you have previously deprecated code in the visibility setting that now throws errors with the newer PHP.
Thanks!
– Jon
Forum: Plugins
In reply to: [Content Visibility for Divi Builder] Negative PHP code not workingGlad I could help! 🙂
Forum: Plugins
In reply to: [Content Visibility for Divi Builder] Negative PHP code not workingHi @jkendallglei,
I have not tried to place multiple php statements in the expression; usually I recommend calling a single function, and if you need multiple lines of php, defining them as a function in your theme’s functions.php and calling the function in the expression field.
Could you try instead using a single statement, like this?
!is_subscribed_to_any_memberful_plan( wp_get_current_user()->ID )- This reply was modified 2 years, 8 months ago by Jonathan Horowitz. Reason: Clarity
Forum: Plugins
In reply to: [Content Visibility for Divi Builder] Support for PHP 8.x ?No worries! Glad you got it figured out 🙂
- This reply was modified 2 years, 10 months ago by Jonathan Horowitz. Reason: Typo
Forum: Plugins
In reply to: [Content Visibility for Divi Builder] Support for PHP 8.x ?@glazzara, I believe the plugin itself should be working on PHP 8.
Could you provide a stack trace of one of the errors you are seeing?