• Resolved Big Frank

    (@big-frank)


    I decided to install the “Catalog Newsletter” from the Extensions list. Installation went fine but when I tried to activate it I got this message:

    Parse error: syntax error, unexpected ‘&&’ (T_BOOLEAN_AND), expecting ‘)’ in /var/www/vhosts/mysite.co.uk/wp-content/plugins/mailer-dragon/functions/shortcodes.php on line 34

    Turns out this line :

    if ( !empty( $post_type && !empty( $post_id ) ) ) {

    should be :

    if ( !empty( $post_type ) && !empty( $post_id ) ) {

    Once I changed that it activated just fine.

    FYI

    • This topic was modified 7 years, 6 months ago by Big Frank.
    • This topic was modified 7 years, 6 months ago by Big Frank.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)

The topic ‘PHP code error in Mailer Dragon’ is closed to new replies.