WPPizza – A Restaurant Plugin for WordPress › Support › General Support › Saferpay Warning
- AuthorPosts
- 8 April, 2021 at 10:27 am #55178
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 16Could you please help with this.
Thanks and Greetings
Umut8 April, 2021 at 10:31 am #55180as that’s – evidently – an issue thrown in
>/wppizza-customisation/wppizza-customisation .php on line 16only 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
8 April, 2021 at 1:22 pm #55181Dera 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
8 April, 2021 at 4:33 pm #55182get rid of
$styles = apply_filters('wppizza_ingredients_filter_email_styles', $styles );
it doesnt belong there
8 April, 2021 at 4:40 pm #55183Do you mean to replace line 16 with the bottom code?
$styles = apply_filters(‘wppizza_ingredients_filter_email_styles’, $styles );
8 April, 2021 at 5:13 pm #55200no. i mean get rid of it, delete it, omit it, eliminate it ….. ( clearer now ? 🙂 )
filters just don’t work that way - AuthorPosts
- The topic ‘Saferpay Warning’ is closed to new replies.