• Resolved murraydailymaverick

    (@murraydailymaverick)


    A function is not available in a class. 
    using Version 1.7.0.10
    no mentioned fix in Version 1.7.0.11 nor Version 1.7.0.12
    
    PHP message: PHP Fatal error: Caught Error: Call to undefined function charitable_ga_url() in /var/www/wp-content/plugins/charitable/includes/licensing/class-charitable-licenses.php:353
    Stack trace:
    # ID: 11 | timestamp: ##### | action: vip_config_sync_cron | action_hashed: #### | instance: ### | home: #####
    #0 /var/www/wp-content/plugins/charitable/includes/licensing/class-charitable-licenses.php(227): Charitable_Licenses->able_to_update(Array)
    #1 /var/www/wp-includes/class-wp-hook.php(310): Charitable_Licenses->check_for_updates(Object(stdClass))
    #2 /var/www/wp-includes/plugin.php(205): WP_Hook->apply_filters(Object(stdClass), Array)
    #3 /var/www/wp-includes/option.php(2018): apply_filters('pre_set_site_tr...', Object(stdClass), 'update_plugins')
    #4 /var/www/wp-includes/update.php(565): set_site_transient('update_plugins', Object(stdClass))
    #5 /var/www/wp-content/mu-plugins/config/class-site-details-index.php(143): wp_update_plugins()
    #6 /var/www/wp-content/mu-plugins/config/class-site-details-index.php(96): Automattic\VIP\Config\Site_Details_Index->get_plugin_update_data()
    #7 /var/www/wp-content/mu-plugins/config/class-site-details-index.php(76): Automattic\VIP\Config\Site_Details_Index->get_plugin_info()
    #8 /var/www/wp-includes/class-wp-hook.php(308): Automattic\VIP\Config\Site_Details_Index->set_env_and_core(Array)
    #9 /var/www/wp-includes/plugin.php(205): WP_Hook->apply_filters(Array, Array)
    #10 /var/www/wp-content/mu-plugins/config/class-site-details-index.php(341): apply_filters('vip_site_detail...', Array)
    #11 /var/www/wp-content/mu-plugins/config/class-site-details-index.php(351): Automattic\VIP\Config\Site_Details_Index->get_site_details()
    #12 /var/www/wp-content/mu-plugins/config/class-sync.php(218): Automattic\VIP\Config\Site_Details_Index->put_site_details()
    #13 /var/www/wp-content/mu-plugins/config/class-sync.php(152): Automattic\VIP\Config\Sync->put_site_details()
    #14 /var/www/wp-includes/class-wp-hook.php(308): Automattic\VIP\Config\Sync->do_cron()
    #15 /var/www/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters('', Array)
    #16 /var/www/wp-includes/plugin.php(565): WP_Hook->do_action(Array)
    #17 /var/www/wp-content/mu-plugins/cron-control/includes/class-event.php(163): do_action_ref_array('vip_config_sync...', Array)
    #18 /var/www/wp-content/mu-plugins/cron-control/includes/class-events.php(268): Automattic\WP\Cron_Control\Event->run()
    #19 /var/www/wp-content/mu-plugins/cron-control/includes/functions.php(86): Automattic\WP\Cron_Control\Events->run_event(NULL, NULL, NULL, false)
    #20 /var/www/wp-content/mu-plugins/cron-control/includes/wp-cli/class-orchestrate-runner.php(102): Automattic\WP\Cron_Control\run_event('####', '###...', '####...')
    #21 [internal function]: Automattic\WP\Cron_Control\CLI\Orchestrate_Runner->run_event(Array, Array)
    #22 /usr/local/bin/wp/vendor/wp-cli/wp-cli/php/WP_CLI/Dispatcher/CommandFactory.php(100): call_user_func(Array, Array, Array)
    #23 [internal function]: WP_CLI\Dispatcher\CommandFactory::WP_CLI\Dispatcher\{closure}(Array, Array)
    #24 /usr/local/bin/wp/vendor/wp-cli/wp-cli/php/WP_CLI/Dispatcher/Subcommand.php(491): call_user_func(Object(Closure), Array, Array)
    #25 /usr/local/bin/wp/vendor/wp-cli/wp-cli/php/WP_CLI/Runner.php(431): WP_CLI\Dispatcher\Subcommand->invoke(Array, Array, Array)
    #26 /usr/local/bin/wp/vendor/wp-cli/wp-cli/php/WP_CLI/Runner.php(454): WP_CLI\Runner->run_command(Array, Array)
    #27 /usr/local/bin/wp/vendor/wp-cli/wp-cli/php/WP_CLI/Runner.php(1269): WP_CLI\Runner->run_command_and_exit()
    #28 /usr/local/bin/wp/vendor/wp-cli/wp-cli/php/WP_CLI/Bootstrap/LaunchRunner.php(28): WP_CLI\Runner->start()
    #29 /usr/local/bin/wp/vendor/wp-cli/wp-cli/php/bootstrap.php(83): WP_CLI\Bootstrap\LaunchRunner->process(Object(WP_CLI\Bootstrap\BootstrapState))
    #30 /usr/local/bin/wp/vendor/wp-cli/wp-cli/php/wp-cli.php(32): WP_CLI\bootstrap()
    #31 /var/wpvip/fpm-cron-runner.php(79): require_once('/usr/local/bin/...')
    #32 {main}
Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author WPCharitable

    (@wpcharitable)

    @murraydailymaverick thank you for the stack trace. can you also provide some additional information so our team can quickly investigate:

    1. Can you provide the steps or actions taken that might have resulted in this issue?
    2. What is your current license status (since the function/area of the code is related to licenses)?

    thank you!

    Thread Starter murraydailymaverick

    (@murraydailymaverick)

    To be honest i was trying to figure out where it originated too. ??
    We are on the legacy licenses
    Its a cron job kicked off by wp crontrol.
    The job hits an ‘apply_filters’
    This calls able_to_update and the error occurs
    My worry is that it may be a job relating to recurring billing?

    Plugin Author WPCharitable

    (@wpcharitable)

    @murraydailymaverick based on your stack trace, that series of actions does sound probable (and it sounds like it does the fatal on the cron and not visible on the site by you or a user?) Has this happened only one time or are you seeing this on a regular basis.

    If you are using an active license (doesn’t matter if it’s a new license or a legacy) you are free to open a ticket on this with our support and we might be able to dig deeper and faster. In either case i’ll have our team take a look at this.

    Plugin Author WPCharitable

    (@wpcharitable)

    @murraydailymaverick i’m closing this ticket assuming you are reaching out to our licensed support area, since we can potentially share sensitive information there securely (etc) but i’m happy to continue the conversation here if need be. Our team has this on their radar regardless to look at closely and confirm if there is a big – if there is a confirmation or update we’ll make sure to make it publicly known in any future release. Thanks!

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