Coupons PHP error

This topic contains 4 replies, has 2 voices, and was last updated by  Ian Butler 9 years ago.

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
  • Author
    Posts
  • #38353

    Ian Butler
    Buyer
    Post count: 59

    Hi Guys,

    Trying to create a coupon under Prices & Payments > Coupons. Getting the following error:

    Warning: strtolower() expects parameter 1 to be string, array given in /home/ibutler/public_html/wp-includes/formatting.php on line 1180

    Warning: Cannot modify header information – headers already sent by (output started at /home/ibutler/public_html/wp-includes/formatting.php:1180) in /home/ibutler/public_html/wp-includes/pluggable.php on line 1178

    Thanks

    #38354

    Paolo
    Site Admin
    Post count: 31206

    Hi,

    those are warning and should only be logged:

    please add this to your theme’s functions.php

    
    
    
    ini_set("display_errors", "0");
    error_reporting(E_ERROR);

    This will stop the warnings.

    Let us know how you went.

    Thanks

    #38356

    Ian Butler
    Buyer
    Post count: 59

    Hi Paolo,

    It now shows this instead, front and backend:

    Warning: ini_set() has been disabled for security reasons in /home/ibutler/public_html/wp-content/themes/zocialise/functions.php on line 610

    #38359

    Paolo
    Site Admin
    Post count: 31206

    Try removing the ini_set part and leave:

    error_reporting(E_ERROR);

    Let us know,

    #38369

    Ian Butler
    Buyer
    Post count: 59

    sorted thanks

Viewing 5 posts - 1 through 5 (of 5 total)

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket