Support » Plugin: Sermon Manager » Jetpack Triggers Error in sermons.php (line 560)

  • dentm42

    (@dentm42)


    Receiving the following error in 2.16.1 (current revision with most recent fixes).

    From the stack trace it appears to be triggered by a JETPACK Sync. I haven’t traced through very much, but it’s triggering the automatic email notification by my provider saying something’s wrong… and the log file has more than a few entries like the following.
    ====
    An error of type E_ERROR was caused in line 560 of the file [REDACTED]/public_html/wp-content/plugins/sermon-manager-for-wordpress/sermons.php. Error message: Uncaught Error: Call to undefined function sm_get_screen_ids() in [REDACTED]/public_html/wp-content/plugins/sermon-manager-for-wordpress/sermons.php:560

    Stack trace:

    #0 [REDACTED]/public_html/wp-includes/class-wp-hook.php(287): SermonManager->{closure}(Object(WP_Screen))

    #1 [REDACTED]/public_html/wp-includes/class-wp-hook.php(311): WP_Hook->apply_filters(”, Array)

    #2 [REDACTED]/public_html/wp-includes/plugin.php(478): WP_Hook->do_action(Array)

    #3 [REDACTED]/public_html/wp-admin/includes/class-wp-screen.php(421): do_action(‘current_screen’, Object(WP_Screen))

    #4 [REDACTED]/public_html/wp-admin/includes/screen.php(240): WP_Screen->set_current_screen()

    #5 [REDACTED]/public_html/wp-content/plugins/jetpack/vendor/automattic/jetpack-sync/src/class-sender.php(370): set_current_screen(‘sync’)

    #6 [REDACTED]/public_html/wp-content/plugins/jetpack/vendor/automattic/jetpack-sync/src/class-sender.php(463): Automattic\Jetpack\Sync\Sender->get_items_to_send(Object(Automattic\Jetpack\
    =====

    Any hints or help would be appreciated.

    THanks!

Viewing 15 replies - 1 through 15 (of 19 total)
  • df999

    (@df999)

    I’m having the identical problem.
    Any help plese?

    Plugin Author wpforchurch

    (@wpforchurch)

    @dentm42 are you with WP 5.5? Please try to reinstall using this file https://www.dropbox.com/s/iodkpnnqh4tpu09/sermon-manager-for-wordpress.zip?dl=0
    We have checked and it seems we’re good.
    Active plugin
    – WordPress 5.5
    – Jetpack 8.8.2
    – Sermon Manager for WordPress 2.16.1
    – Sermon Manager Pro 2.0.5

    Thread Starter dentm42

    (@dentm42)

    Installed the version from dropbox. No change in results. Every 5 minutes (when the sync runs), the log spits out the same error message as before.

    Yes, we are on 5.5, Jetpack 8.8.2. We are not running Pro 2.0.5.

    beryrinaldo

    (@beryrinaldo)

    I have been receiving these automated emails from my site on a daily basis since the update to v2.16.1 — I have re-installed using both the dropbox and the standard WordPress methods and these mail keep coming once a day between 4:00 and 4:30pm. This is not the same as the fatal error I had when I tried updating to 2.16.1 the very first time, this is something different and subtle because the site seems OK, but these emails keep coming every day:

    Subject: […] Your Site is Experiencing a Technical Issue

    First, visit your website (https://…/) and check for any visible issues. Next, visit the page where the error was caught (https://…/wp-cron.php?doing_wp_cron=1598396643.9682788848876953125000) and check for any visible issues.

    WordPress version 5.5
    Current theme: High Responsive (version 2.1.1)
    Current plugin: Sermon Manager for WordPress (version 2.16.1)
    PHP version 7.3.21

    Error Details
    =============
    An error of type E_ERROR was caused in line 560 of the file /…/wp-content/plugins/sermon-manager-for-wordpress/sermons.php. Error message: Uncaught Error: Call to undefined function sm_get_screen_ids() in /home3/mtolive9/public_html/wp-content/plugins/sermon-manager-for-wordpress/sermons.php:560
    Stack trace:
    #0 /…/wp-includes/class-wp-hook.php(287): SermonManager->{closure}(Object(WP_Screen))
    #1 /…/wp-includes/class-wp-hook.php(311): WP_Hook->apply_filters(”, Array)
    #2 /…/wp-includes/plugin.php(478): WP_Hook->do_action(Array)
    #3 /…/wp-admin/includes/class-wp-screen.php(421): do_action(‘current_screen’, Object(WP_Screen))
    #4 /…/wp-admin/includes/screen.php(240): WP_Screen->set_current_screen()
    #5 /…/wp-content/plugins/jetpack/vendor/automattic/jetpack-sync/src/class-sender.php(370): set_current_screen(‘sync’)
    #6 /…/wp-content/plugins/jetpack/vendor/automattic/jetpack-sync/src/class-sender.php(463): Automattic\Jetpack\Sync\Sender->get_items_to_send(Object(Automattic\Jetpack\

    I do not see any visible issues with the site, I am able to login to the Dashboard, so everything seems OK, but perhaps there is something subtly wrong that I am not seeing. We do use Jetpack version 8.8.2 but are not seeing any issues with the features we use from it. So at least for now, I am staying on Sermon Manager version 2.16.1 but it would be nice to understand why the mail happened and get the issue fixed.

    bluecool13

    (@bluecool13)

    Hello, I am having the same issue.

    Thread Starter dentm42

    (@dentm42)

    It appears that the function it’s choking on is only loaded for admin users.

    The function sm_get_screen_ids is in file includes/admin/sm-admin-functions.php which is included from file includes/admin/class-sm-admin.php which is CONDITIONALLY loaded in sermons.php only if the current user is an admin (see sermons.php::118-122.

    The proper solution would be to move sm_get_screen_ids to a file that is loaded for all users (perhaps includes/sm-core-functions.php ?).

    A temporary fix would be to remove the “if (is_admin()) {” conditional by commenting out line 118 and 122 of sermons.php.

    The problem is, I don’t know if there are any OTHER functions that may have this problem (usually with a major refactor, if there’s one, there’s more!) and I have my own projects to work on and maintain, but this is the cause of this particular error message.

    jahrat

    (@jahrat)

    I have been having this issue as well. It was reported in another topic as at the time I suspected a plugin conflict. However, all I do does not seem to resolve this. The site is temporarily unresponsive in the dashboard and then it resolves (not a techie and not sure why it resolves). Following that the email below appears.

    WordPress version 5.5
    Current theme: Twenty Thirteen Child (version 1.0.0)
    Current plugin: Sermon Manager for WordPress (version 2.16.1)
    PHP version 7.4.9

    Error Details
    =============
    An error of type E_ERROR was caused in line 560 of the file /…/gmc-mca.org/wp-content/plugins/sermon-manager-for-wordpress/sermons.php.
    Error message: Uncaught Error: Call to undefined function sm_get_screen_ids() in /…/gmc-mca.org/wp-content/plugins/sermon-manager-for-wordpress/sermons.php:560
    Stack trace:
    #0 /…/gmc-mca.org/wp-includes/class-wp-hook.php(287): SermonManager->{closure}(Object(WP_Screen))
    #1 /…/gmc-mca.org/wp-includes/class-wp-hook.php(311): WP_Hook->apply_filters(”, Array)
    #2 /…/gmc-mca.org/wp-includes/plugin.php(478): WP_Hook->do_action(Array)
    #3 /…/gmc-mca.org/wp-admin/includes/class-wp-screen.php(421): do_action(‘current_screen’, Object(WP_Screen))
    #4 /…/gmc-mca.org/wp-admin/includes/screen.php(240): WP_Screen->set_current_screen()
    #5 /…/gmc-mca.org/wp-content/plugins/jetpack/vendor/automattic/jetpack-sync/src/class-sender.php(370): set_current_screen(‘sync’)
    #6 /…/gmc-mca.org/wp-content/plugins/jetpack/vendor/automattic/jetpack-sync/src/cla

    The trace seems truncated at this point.
    Need some advice to fix.
    Thanks.

    tstephenson

    (@tstephenson)

    @dentm42 correctly diagnoses the issue and offers a workaround in this post https://wordpress.org/support/topic/jetpack-triggers-error-in-sermons-php-line-560/#post-13328570

    I think we’ll need to wait for a view from @wpforchurch on the ‘correct’ fix though I’d suggest moving sm_get_screen_ids to core functions would be a decent start.

    ericrross

    (@ericrross)

    Also getting fatal error in sermon.php. Not running Pro. WordPress 5.5, PHP 7.2.

    I am able to run with dev code from https://github.com/WP-for-Church/Sermon-Manager (John release/2.15.16 d8ce547 on Jan 28).

    • This reply was modified 11 months ago by ericrross.

    I am still receiving the daily mails with the “Your Site is Experiencing a Technical Issue” subject… So @wpforchurch still has a bug that seems to be related to Jetpack. So far, our site does not appear to suffer any issues, so the email is just an annoyance:

    When seeking help with this issue, you may be asked for some of the following information:
    WordPress version 5.5
    Current theme: High Responsive (version 2.1.1)
    Current plugin: Sermon Manager for WordPress (version 2.16.1)
    PHP version 7.3.21

    Error Details
    =============
    An error of type E_ERROR was caused in line 560 of the file /…/wp-content/plugins/sermon-manager-for-wordpress/sermons.php. Error message: Uncaught Error: Call to undefined function sm_get_screen_ids() in /…/wp-content/plugins/sermon-manager-for-wordpress/sermons.php:560
    Stack trace:
    #0 /…/wp-includes/class-wp-hook.php(287): SermonManager->{closure}(Object(WP_Screen))
    #1 /…/wp-includes/class-wp-hook.php(311): WP_Hook->apply_filters(”, Array)
    #2 /…/wp-includes/plugin.php(478): WP_Hook->do_action(Array)
    #3 /…/wp-admin/includes/class-wp-screen.php(421): do_action(‘current_screen’, Object(WP_Screen))
    #4 /…/wp-admin/includes/screen.php(240): WP_Screen->set_current_screen()
    #5 /…/wp-content/plugins/jetpack/vendor/automattic/jetpack-sync/src/class-sender.php(370): set_current_screen(‘sync’)
    #6 /…/wp-content/plugins/jetpack/vendor/automattic/jetpack-sync/src/class-sender.php(463): Automattic\Jetpack\Sync\Sender->get_items_to_send(Object(Automattic\Jetpack\

    I am getting the exact same error on my website forkchapelumc.org and it started as soon as I upgraded Sermon Manager to 2.26.1. I do not see any problems accessing the sit or the sermons. I have the free version of the plug-in. Error details:

    WordPress version 5.5
    Current theme: Endurance (version 1.0.5)
    Current plugin: Sermon Manager for WordPress (version 2.16.1)
    PHP version 7.4.9
    Jetpack version 8.8.2

    Error Details
    =============
    An error of type E_ERROR was caused in line 560 of the file /home/k4fyhkz6tvka/public_html/wp-content/plugins/sermon-manager-for-wordpress/sermons.php. Error message: Uncaught Error: Call to undefined function sm_get_screen_ids() in /home/k4fyhkz6tvka/public_html/wp-content/plugins/sermon-manager-for-wordpress/sermons.php:560
    Stack trace:
    #0 /home/k4fyhkz6tvka/public_html/wp-includes/class-wp-hook.php(287): SermonManager->{closure}(Object(WP_Screen))
    #1 /home/k4fyhkz6tvka/public_html/wp-includes/class-wp-hook.php(311): WP_Hook->apply_filters(”, Array)
    #2 /home/k4fyhkz6tvka/public_html/wp-includes/plugin.php(478): WP_Hook->do_action(Array)
    #3 /home/k4fyhkz6tvka/public_html/wp-admin/includes/class-wp-screen.php(421): do_action(‘current_screen’, Object(WP_Screen))
    #4 /home/k4fyhkz6tvka/public_html/wp-admin/includes/screen.php(240): WP_Screen->set_current_screen()
    #5 /home/k4fyhkz6tvka/public_html/wp-content/plugins/jetpack/vendor/automattic/jetpack-sync/src/class-sender.php(370): set_current_screen(‘sync’)
    #6 /home/k4fyhkz6tvka/public_html/wp-content/plugins/jetpack/vendor/automattic/jetpack-sync/src/class-sender.php(463): Automattic\Jetpack\Sync\Sender->get_items_to_send(Ob

    Also having this problem. Commenting so I can get follow-up emails.

    Same here. I guess this is a common issue w/ websites using this sermon plugin. Please provide some patch or solution.

    This post has a link to 2.15.17 if anyone is interested. Click the link, click download on the top right, then go to your wordpress admin and then go to Plugins -> Add Plugin, upload the zip, disable previous version, enable new version, uninstall previous version.

    https://wordpress.org/support/topic/just-tried-2-15-19-same-issues/

    • This reply was modified 10 months, 3 weeks ago by rygle.

    I’m also getting the same error flagged every day…

    WordPress version 5.5
    Current theme: Salient (version 12.1.2)
    Current plugin: Sermon Manager for WordPress (version 2.16.1)
    PHP version 7.2.33

    Error Details
    =============
    An error of type E_ERROR was caused in line 560 of the file /wp-content/plugins/sermon-manager-for-wordpress/sermons.php. Error message: Uncaught Error: Call to undefined function sm_get_screen_ids() in /wp-content/plugins/sermon-manager-for-wordpress/sermons.php:560
    Stack trace:
    #0 /wp-includes/class-wp-hook.php(287): SermonManager->{closure}(Object(WP_Screen))
    #1 /wp-includes/class-wp-hook.php(311): WP_Hook->apply_filters(”, Array)
    #2 /wp-includes/plugin.php(478): WP_Hook->do_action(Array)
    #3 /wp-admin/includes/class-wp-screen.php(421): do_action(‘current_screen’, Object(WP_Screen))
    #4 /wp-admin/includes/screen.php(240): WP_Screen->set_current_screen()
    #5 wp-content/plugins/jetpack/vendor/automattic/jetpack-sync/src/class-sender.php(370): set_current_screen(‘sync’)
    #6 /wp-content/plugins/jetpack/vendor/automattic/jetpack-sync/src/class-sender.php(46

Viewing 15 replies - 1 through 15 (of 19 total)
  • The topic ‘Jetpack Triggers Error in sermons.php (line 560)’ is closed to new replies.