• Resolved beachmat

    (@beachmat)


    This is causing critical errors for me. It was working initially, but now even if I remove the function from the visibility field, it still crashes. If I competely delete the item that had it applied, then the page will render again.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Jonathan Horowitz

    (@jhorowitz)

    Hi @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!

    Plugin Author Jonathan Horowitz

    (@jhorowitz)

    Also, which version of Divi are you using? Is it the theme or the builder plugin?

    Thread Starter beachmat

    (@beachmat)

    I’m using the latest Divi 5 theme beta.

    The debug log says

    PHP Parse error: syntax error, unexpected token “;” in /home/eyredesi/staging-z.eyre-design.co.uk/wp-content/plugins/content-visibility-for-divi-builder/includes/plugin.class.php(233) : eval()’d code on line 1

    Plugin Author Jonathan Horowitz

    (@jhorowitz)

    That 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.

    Plugin Author Jonathan Horowitz

    (@jhorowitz)

    Hello @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!

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

You must be logged in to reply to this topic.