• Resolved GermanKiwi

    (@germankiwi)


    Hi there, I just updated the version of PHP used by my web host, from PHP 7.1.15 to 7.2.3.

    Afterwards, I noticed that I was getting the following error message when going to the Add New Sermon or Edit Sermon page:

    Fatal error: Declaration of CMB2_Type_Text_Date::render() must be compatible with CMB2_Type_Text::render($args = Array) in /wp-content/plugins/sermon-manager-for-wordpress/includes/CMB2/includes/types/CMB2_Type_Text_Date.php on line 15

    This error appeared inside the “Sermon Details” panel of the page, and all the other fields which ought to appear inside that panel (Eg. Date Preached, Service Type, Main Bible Passage, etc) were missing.

    Reverting PHP back to version 7.1.15 resolved the issue.

    I’m happy to keep PHP on 7.1 in the meantime, as I don’t have any specific need to be using PHP 7.2.3 other than keeping it current, but I wanted to let you know so that you could fix whatever might be causing this. 🙂

Viewing 4 replies - 1 through 4 (of 4 total)
  • Nikola

    (@nikolam)

    Hi,

    Thanks for the report!

    Can you please tell us what version of Sermon Manager are you using?

    Thread Starter GermanKiwi

    (@germankiwi)

    Ah, sorry, I forgot to mention that! 🙂

    I’m still using SM 2.8.6. Maybe that’s the reason! I did upgrade to SM 2.12.3 a couple of weeks ago, but it broke the layout of my Sermons archive and singles pages, so I reverted back to 2.8.6 until I could find some time to troubleshoot it. (Not sure if it was caused by my theme or something else).

    Nikola

    (@nikolam)

    Hi!

    Yup, that’s where the issue is.

    You can safely update to SM 2.11.3, since new layouts were introduced in 2.12.x

    Regarding layouts, you can try this quick fix:
    1. Open Sermon Manager Settings
    2. Tick “Theme Compatibility” checkbox and save settings

    Otherwise, you’ll need to create a theme override.

    Thread Starter GermanKiwi

    (@germankiwi)

    Ok thanks for the tip!

    Yes, I think a theme override will be best – something I’ve been wanting to do for a while anyway, just to customise the layout of the sermon excerpts. In fact I just wrote a separate post here on that very topic! 😉

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

The topic ‘Support for PHP 7.2’ is closed to new replies.