Support » Plugin: PowerPress Podcasting plugin by Blubrry » Plugin update broken

  • chgruver

    (@chgruver)


    Just updated the plugin on one of my sites and get this error making me unable to continue my podcast on our website.

    Parse error: syntax error, unexpected ‘&&’ (T_BOOLEAN_AND), expecting ‘)’ in /home4/grcoins/public_html/btm/wp-content/plugins/powerpress.bak/powerpress.php on line 712

Viewing 10 replies - 1 through 10 (of 10 total)
  • blockmonkey

    (@blockmonkey)

    Getting the same error.

    Plugin Author Angelo Mandato

    (@amandato)

    Hello @chgruver and @blockmonkey,

    What version of PHP are you using?

    Will have a code fix available soon regardless of version, but I want to confirm this is an error with specific versions.

    Thanks,
    Angelo

    blockmonkey

    (@blockmonkey)

    Currently running 5.4.45

    Plugin Author Angelo Mandato

    (@amandato)

    Hello @blockmonkey,

    Oh that may make sense. You are using an older version of WordPress I assume?

    Until we get this fixed, please downgrade to the previous branch: https://downloads.wordpress.org/plugin/powerpress.7.4.4.zip

    @chgruver, are you also running a PHP version older than 5.6?

    Thanks,
    Angelo

    blockmonkey

    (@blockmonkey)

    @amandato thx for getting back to me so quickly. Yeah older WP as well.

    We will looking into Downgrading the Plugin – until the fix has been implemented.

    • This reply was modified 3 months ago by  blockmonkey.
    chgruver

    (@chgruver)

    Yes, I am running 5.4 also. I had already downgraded. Kind of wish my hosting company would hurry up and get their servers upgraded as it is more than likely a security issue not being able to update WordPress.

    thomasvs

    (@thomasvs)

    This isn’t due to the version of php, this is a clear Syntax Error.

    To anyone wanting a quick fix, change line 712 to:

    if(!empty($Feed[‘itunes_cat_’.$i]) && empty($Feed[‘apple_cat_’.$i])) {

    The first empty() call had its closing parenthesis at the end of the statement and not where it should be – before the &&.

    If newer versions of PHP don’t flag this as a syntax error, then at the very least the code will not do what you’d expect in this case.

    To the author, please set up continous integration that runs syntax checking against the code before doing releases – a lot of people have automatic updates and their whole site breaks as a result.

    Plugin Author Angelo Mandato

    (@amandato)

    Hello @thomasvs,

    We are aware of the syntax error as noted in this thread, we are going to fix it for sure, again as noted. I wanted to confirm which versions this was failing for, as we tested with PHP 5.6, 7, 7.1, 7.2 and 7.3, but we did not test older versions of PHP. The logic does work interestingly, but it is also poorly written and as noted does not work for older versions of PHP. Another release will be made today to fix this.

    Thanks,
    Angelo

    kopfconsulting

    (@kopfconsulting)

    @thomasvs – That worked, thanks!!

    Thank you, the latest update solved the issues we were having. can’t find my old reply, but the 500 error we were having was due to a corrupt htaccess file. Not sure if it had anything to do with the plugin, but may have happened while troubleshooting it. Thanks for your answers here.

Viewing 10 replies - 1 through 10 (of 10 total)
  • You must be logged in to reply to this topic.