• Resolved blindmikey

    (@blindmikey)


    Fatal error: Uncaught Error: Call to undefined function wp_doing_cron() in /public_html/app/plugins/event-tickets/src/Tribe/Attendee_Registration/Shortcode.php:12 Stack trace: #0 /public_html/app/plugins/event-tickets/common/vendor/lucatume/di52/src/tad/DI52/closuresSupport.php(24): Tribe__Tickets__Attendee_Registration__Shortcode->hook(”) #1 /public_html/blog/wp-includes/class-wp-hook.php(298): {closure}(”) #2 /public_html/blog/wp-includes/class-wp-hook.php(323): WP_Hook->apply_filters(NULL, Array) #3 /public_html/blog/wp-includes/plugin.php(453): WP_Hook->do_action(Array) #4 /public_html/blog/wp-settings.php(449): do_action(‘init’) #5 /public_html/wp-config.php(138): require_once(‘/…’) #6 /public_html/blog/wp-load.php(42): require_once(‘/…’) #7 /public_html/blog/wp-blog-header.php(13): require_once(‘/…’) #8 /public_html/blog/index.php in /public_html/app/plugins/event-tickets/src/Tribe/Attendee_Registration/Shortcode.php on line 12

    • This topic was modified 5 years, 6 months ago by blindmikey.
Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter blindmikey

    (@blindmikey)

    Part of the issue it seems is that our wordpress structure is set up as

    public_html/
    —- app/
    ——– plugins/
    ——– themes/
    —- wp/
    ——– wp-admin/
    ——– wp-includes/

    This is however correctly set up, with no other issues from the numerous other plugins running.

    I see in the error above, it’s attempting to require files such as
    /public_html/blog/wp-includes/plugin.php

    however the correct path would be
    /public_html/wp/wp-includes/plugin.php

    Thread Starter blindmikey

    (@blindmikey)

    ABSPATH is defined in wp-config.php

    
    /** Absolute path to the WordPress directory. */
    if ( !defined('ABSPATH') )
        define('ABSPATH', dirname(__FILE__) . '/wp/');
    
    Thread Starter blindmikey

    (@blindmikey)

    However if I change line 12 in /public_html/app/plugins/event-tickets/src/Tribe/Attendee_Registration/Shortcode.php

    from
    if ( is_admin() || wp_doing_cron() || wp_doing_ajax() ) {
    to
    if ( is_admin() || wp_doing_ajax() ) {

    Then all works well. So the required files seem to be successfully required? Perhaps the issue isn’t related to the directory structure?

    Hi There!

    Just wanted to let you know that we have released updates for several of our plugins, including a fix for the issue that was reported in this thread.

    Find out more about this release → https://theeventscalendar.com/maintenance-release-for-the-week-of-22-april-2019/

    We appreciate your patience while we worked on this.

    As always, we suggest to test all updates on a dev/staging site before deploying on the live site.

    Please update the plugins and let us know if this helped with your issue.

    Best,
    Sky

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Call to undefined function wp_doing_cron()’ is closed to new replies.