• From the front end when I try to renew an advert that expired in July 2023 so I’ve had this error for about three months;

    Fatal error: Uncaught TypeError: call_user_func_array(): Argument #1 ($callback) must be a valid callback, function “payment_payment_order_id” not found or invalid function name in /web/htdocs/www.mysite.com/home/wp-content/plugins/wpadverts/addons/emails/includes/class-emails-parser.php:218 Stack trace: #0 /web/htdocs/www.mysite.com/home/wp-content/plugins/wpadverts/addons/emails/includes/class-emails-parser.php(262): Adext_Emails_Parser->parse() #1 /web/htdocs/www.mysite.com/home/wp-includes/class-wp-hook.php(310): Adext_Emails_Parser->compile() #2 /web/htdocs/www.mysite.com/home/wp-includes/plugin.php(205): WP_Hook->apply_filters() #3 /web/htdocs/www.mysite.com/home/wp-content/plugins/wpadverts/addons/emails/includes/class-emails-messages.php(353): apply_filters() #4 /web/htdocs/www.mysite.com/home/wp-content/plugins/wpadverts/addons/emails/includes/class-emails-messages.php(371): Adext_Emails_Messages->send() #5 /web/htdocs/www.mysite.com/home/wp-content/plugins/wpadverts/addons/payments/includes/class-emails-integration.php(300): Adext_Emails_Messages->send_message() #6 /web/htdocs/www.mysite.com/home/wp-includes/class-wp-hook.php(310): Adext_Payments_Emails_Integration->on_payment_pending_notify_user() #7 /web/htdocs/www.mysite.com/home/wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters() #8 /web/htdocs/www.mysite.com/home/wp-includes/plugin.php(517): WP_Hook->do_action() #9 /web/htdocs/www.mysite.com/home/wp-content/plugins/wpadverts/addons/payments/payments.php(1414): do_action() #10 /web/htdocs/www.mysite.com/home/wp-content/plugins/wpadverts/addons/payments/payments.php(1027): adext_insert_payment() #11 /web/htdocs/www.mysite.com/home/wp-includes/class-wp-hook.php(310): adext_payments_manage_action_renew() #12 /web/htdocs/www.mysite.com/home/wp-includes/plugin.php(205): WP_Hook->apply_filters() #13 /web/htdocs/www.mysite.com/home/wp-content/plugins/wpadverts/includes/shortcodes.php(308): apply_filters() #14 /web/htdocs/www.mysite.com/home/wp-includes/shortcodes.php(395): shortcode_adverts_manage() #15 [internal function]: do_shortcode_tag() #16 /web/htdocs/www.mysite.com/home/wp-includes/shortcodes.php(235): preg_replace_callback() #17 /web/htdocs/www.mysite.com/home/wp-includes/class-wp-hook.php(310): do_shortcode() #18 /web/htdocs/www.mysite.com/home/wp-includes/plugin.php(205): WP_Hook->apply_filters() #19 /web/htdocs/www.mysite.com/home/wp-includes/post-template.php(256): apply_filters() #20 /web/htdocs/www.mysite.com/home/wp-content/themes/buddyx/template-parts/content/entry-page.php(34): the_content() #21 /web/htdocs/www.mysite.com/home/wp-includes/template.php(787): require(‘…’) #22 /web/htdocs/www.mysite.com/home/wp-includes/template.php(720): load_template() #23 /web/htdocs/www.mysite.com/home/wp-includes/general-template.php(206): locate_template() #24 /web/htdocs/www.mysite.com/home/wp-content/themes/buddyx/page-templates/page-both-sidebar.php(34): get_template_part() #25 /web/htdocs/www.mysite.com/home/wp-includes/template-loader.php(106): include(‘…’) #26 /web/htdocs/www.mysite.com/home/wp-blog-header.php(19): require_once(‘…’) #27 /web/htdocs/www.mysite.com/home/index.php(17): require(‘…’) #28 {main} thrown in /web/htdocs/www.mysite.com/home/wp-content/plugins/wpadverts/addons/emails/includes/class-emails-parser.php on line 218

    Greetings and thanks for what you do

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Greg Winiarski

    (@gwin)

    Hi,

    it seems you have one of email templates modified in a way that it calls non-existing function (which causes a fatal error).

    Go to the wp-admin / Classifieds / Options / Emails panel, edit the payments::on_payment_pending_notify_user email template

    and search for payment_payment_order_id i am not exactly sure how it looks like in your template but it should be either removed or changed to {$payment|payment_order_id}

    One other (but less practical) possibility is to open theme functions.php file and add the a line

    function payment_payment_order_id() {
    }

    Thread Starter alexbyby

    (@alexbyby)

    I’ll try with your settings
    Thank you

    Thread Starter alexbyby

    (@alexbyby)

    Sorry but your Plugin uses a shortcode for implementing payment on a targeted page;
    [adverts_payments_checkout]
    where do I enter these settings?
    Shouldn’t the shortcode within the page already provide this?
    Greetings

    Plugin Author Greg Winiarski

    (@gwin)

    Hi,

    this shortcode is only for completeing abandoned payments, that is if someone posted an Ad but closed browser window before paying you can direct him to this page to complete the payment.

    It requires a bit of configuration though:

    1. in the wp-admin / Classifieds / Options / Payments panel in the field “Complete Payment Page” you need to select a page that has this shortcode in the content
    2. the complete payment URL you can include in the email template (that supports $payment variable) with the following code {$payment|payment_complete_url}
    3. you can send the payment link to user manually, to do that go to the wp-admin / Classifieds / Payments History, click on the selected payment and you should find the payment URL there.

    To reiterate, the users who complete the payment instantly after posting an Ad will never need to use the page with [adverts_payment_checkout] everything will be handled in the [adverts_add] shortcode, the [adverts_payment_checkout] is only for the users who did not made a payment after posting a paid Ad.

    Thread Starter alexbyby

    (@alexbyby)

    I didn’t realize that the page containing the shortcode served as a recovery page for suspended payments, thank you very much.
    You were very thorough in your explanations.
    Thank you

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘FATAL ERROR’ is closed to new replies.