• Resolved misterfu

    (@misterfu)


    With PHP8 I get the following error:

    PHP message: PHP Fatal error: Uncaught ValueError: Unknown format specifier “P” in /(…)/wp-content/plugins/molongui-authorship/includes/class-highlights.php:21

    This line is the following:

    <li class="molongui-notice-icon-check molongui-notice-only-premium"><span><?php _e( 'Pro only', 'molongui-authorship' ); ?></span><?php printf( __( "%Pro features%s. More layouts, more styles, more customization settings, guest author archive pages and Premium support.", 'molongui-authorship' ), '<strong>', '</strong>' ); ?></li>

    I just removed the % in the printf to get it back working. Maybe if you could look into this? 🙂 Thank you!

Viewing 1 replies (of 1 total)
  • Plugin Author Molongui

    (@molongui)

    Hi @misterfu,

    Thanks for writing in and reporting this issue! It is actually a bug. That line should actually read like:

    <li class="molongui-notice-icon-check molongui-notice-only-premium"><span><?php _e( 'Pro only', 'molongui-authorship' ); ?></span><?php printf( __( "%sPro features%s. More layouts, more styles, more customization settings, guest author archive pages and Premium support.", 'molongui-authorship' ), '<strong>', '</strong>' ); ?></li>

    So there’s an “s” missing after the first “%”. We will release an update with a fix for this.

    Thanks again for letting us know 🙂 And happy new year!

Viewing 1 replies (of 1 total)

The topic ‘PHP8: Fatal error: Uncaught ValueError: Unknown format specifier’ is closed to new replies.