• Resolved mahe

    (@mahe)


    It seems like the shorttag to display the subscribe buttons ([powerpress_subscribe]) doesn’t work with PHP 7.1.3, nothing gets displayed
    I know it worked before with older version of PHP (6.* and 7.0.*).

    In the error log I see this:

    PHP message: PHP Warning: Illegal string offset ‘slug’ in /wp-content/plugins/powerpress/powerpress-subscribe.php on line 372
    PHP message: PHP Warning: Illegal string offset ‘term_taxonomy_id’ in /wp-content/plugins/powerpress/powerpress-subscribe.php on line 376
    PHP message: PHP Warning: Cannot assign an empty string to a string offset in /wp-content/plugins/powerpress/powerpress-subscribe.php on line 376
    PHP message: PHP Warning: Illegal string offset ‘category_id’ in /wp-content/plugins/powerpress/powerpress-subscribe.php on line 378
    PHP message: PHP Warning: Cannot assign an empty string to a string offset in /wp-content/plugins/powerpress/powerpress-subscribe.php on line 378
    PHP message: PHP Warning: Illegal string offset ‘post_type’ in /wp-content/plugins/powerpress/powerpress-subscribe.php on line 380
    PHP message: PHP Warning: Cannot assign an empty string to a string offset in /wp-content/plugins/powerpress/powerpress-subscribe.php on line 380
    PHP message: PHP Warning: Illegal string offset ‘slug’ in /wp-content/plugins/powerpress/powerpress-subscribe.php on line 418
    PHP message: PHP Warning: Illegal string offset ‘term_taxonomy_id’ in /wp-content/plugins/powerpress/powerpress-subscribe.php on line 418
    PHP message: PHP Warning: Illegal string offset ‘post_type’ in /wp-content/plugins/powerpress/powerpress-subscribe.php on line 418

    (I’ve removed the first parts of the filepath)

    Is there a quick fix I can apply?

    Thanks
    Michael

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Angelo Mandato

    (@amandato)

    Hello Michael,

    Can you reply with how you entered the actual shortcode in your blog post?

    Thanks!

    Thread Starter mahe

    (@mahe)

    Only the shortcode [powerpress_subscribe] without any parameters.

    Plugin Author Angelo Mandato

    (@amandato)

    Hello Michael,

    Just a quick update, I’m not exactly sure if it is a PHP 7.1 problem or how strict the PHP warnings are setup on your installation, either way I have added code to PowerPress to address the problem and will be included in the next update. If you can’t wait for the next update, please let me know I can send you a link to the development version.

    Thanks!

    Thread Starter mahe

    (@mahe)

    error_reporting set to the usual “E_ALL & ~E_NOTICE & ~E_STRICT & ~E_DEPRECATED”.
    If you need more information/logs/whatever let me know.

    I can wait for the next update.
    However, if you need someone to test feel free to send me a link to the dev version ??

    Thank you for your support!

    Plugin Author Angelo Mandato

    (@amandato)

    The fix has been added and will be included in the next release. Here is a link to the dev (pre release) version if you want to install manually and test it out: https://downloads.www.ads-software.com/plugin/powerpress.zip.

    Thanks!

    Thread Starter mahe

    (@mahe)

    Thank you!!!

    With this version it works again ??

    Great!

    Plugin Support Shawn

    (@shawnogordo)

    Glad to see things are working again for you!

    If you’ve found the support Angelo has provided here to be of value, please consider leaving a review for PowerPress.

    These reviews help us with future development of the plugin, and we’d really appreciate it!

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Shorttag powerpress_subscribe and PHP 7.1.3’ is closed to new replies.