Saferpay Warning

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #55178
    Umut
    Participant

    Dear Olly

    I set up Saferpay for a customer.
    It worked well last night. Today I have an error message in the header area.

    Warning:
    Use of undefined constant ingrinfo – assumed ‘ingrinfo’ (this will throw an Error in a future version of PHP) in /home/httpd/vhosts/pizzahuus.ch/httpdocs/wp-content/plugins/wppizza-customisation/wppizza-customisation .php on line 16 Warning: Use of undefined constant ingrinfo – assumed ‘ingrinfo’ (this will throw an Error in a future version of PHP) in /home/httpd/vhosts/pizzahuus.ch/httpdocs/wp-content/plugins/ wppizza-customization / wppizza-customization.php on line 16

    Could you please help with this.
    Thanks and Greetings
    Umut

    #55180
    Olly
    Admin & Mod

    as that’s – evidently – an issue thrown in
    >/wppizza-customisation/wppizza-customisation .php on line 16

    only you will know what’s on line 16 there . There is no (official) plugin called ‘wppizza-customisation’ so i assume it’s something you created and added things to

    #55181
    Umut
    Participant

    Dera Olly,

    It shall belong to you!
    Here is the content:

    —————————–

    
    <?php
    /*
    Plugin Name: WPPizza Custom Functions
    Description: WPPizza custom functions that run regardless of theme used (use instead of putting them into a theme's functions.php)
    Version: 0.1
    Author: ollybach
    Author URI: https://www.wp-pizza.com
    */
    
    /*
    add your filters/actions etc here
    */
    $styles = apply_filters('wppizza_ingredients_filter_email_styles', $styles );
    add_filter('wppizza_ingredients_filter_email_styles', 'myprefix_filter');
    function myprefix_filter($styles){
    $styles[ingrinfo] .= 'font-size:110%;';/* the 120% here overrides any previous font-size declaration for the element */
    return $styles;
    }
    

    Line 16 is the:

    
    $styles[ingrinfo] .= 'font-size:110%;';/* the 120% here overrides any previous font-size declaration for the element */
    

    Thanks

    #55182
    Olly
    Admin & Mod

    get rid of

    
    $styles = apply_filters('wppizza_ingredients_filter_email_styles', $styles );
    

    it doesnt belong there

    #55183
    Umut
    Participant

    Do you mean to replace line 16 with the bottom code?

    $styles = apply_filters(‘wppizza_ingredients_filter_email_styles’, $styles );

    #55200
    Olly
    Admin & Mod

    no. i mean get rid of it, delete it, omit it, eliminate it ….. ( clearer now ? 🙂 )
    filters just don’t work that way

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.