• Resolved jeremycoincapital

    (@jeremycoincapital)


    Hello,

    I just installed the plugin. When i go on my card page, i have errors on the page :

    […] Validation de la commande […]
    Avez-vous un code promo ? Cliquez ici pour entrer votre code

    Notice: Undefined index: priority in /home/content/n3pnexwpnas04_data02/64/41501264/html/wp-content/plugins/woocommerce/includes/wc-core-functions.php on line 1526

    Notice: Undefined index: priority in /home/content/n3pnexwpnas04_data02/64/41501264/html/wp-content/plugins/woocommerce/includes/wc-core-functions.php on line 1526

    Notice: Undefined index: priority in /home/content/n3pnexwpnas04_data02/64/41501264/html/wp-content/plugins/woocommerce/includes/wc-core-functions.php on line 1526

    Notice: Undefined index: priority in /home/content/n3pnexwpnas04_data02/64/41501264/html/wp-content/plugins/woocommerce/includes/wc-core-functions.php on line 1526

    […] Détails de facturation […]

    Please help
    Thank you

    The page I need help with: [log in to see the link]

Viewing 15 replies - 1 through 15 (of 20 total)
  • pahedomotica

    (@pahedomotica)

    I have the same Notice ??
    Is there a s solution?

    Plugin Support Job a11n

    (@jobthomas)

    Automattic Happiness Engineer

    Hey all, based on what is described in those lines, I think this is connected to this bug/fix: https://github.com/woocommerce/woocommerce/pull/21763 – it’ll be included in the next version of WooCommerce.

    Thread Starter jeremycoincapital

    (@jeremycoincapital)

    Hello,

    I need a fix right now, is there a way to hide the message at least ?

    silvatheadmin

    (@silvatheadmin)

    Yeah, just go into wp-config and find the line define(‘WP_DEBUG’, true);

    Set it to false.

    Plugin Support Job a11n

    (@jobthomas)

    Automattic Happiness Engineer

    Hey @jeremycoincapital – you can disable error notices on the checkout by following the steps here: https://woocommerce.wordpress.com/2017/01/17/deprecation-in-woocommerce-core/#toc_3

    Thread Starter jeremycoincapital

    (@jeremycoincapital)

    nice thank you

    Jeroen de Jager

    (@anotherdutchman)

    Hi,
    I have the same problem in my checkout

    Notice: Undefined index: priority in /home/disho219/public_html/wp-content/plugins/woocommerce/includes/wc-core-functions.php on line 1526

    I already had the WP_Debug set to False, without result.

    I also added the below code :

    define( ‘WP_DEBUG’, false );
    @ini_set( ‘display_errors’, 0 );

    Still no result…. any other ideas ?

    Kind regards
    Jeroen

    jesshilario

    (@jesshilario)

    Hello! I fixed the problem in the following way:

    In the /wp-content/plugins/woocommerce/includes/wc-core-functions.php file:

    1517 /**
    1518  * User to sort checkout fields based on priority with uasort.
    1519  *
    1520  * @since 3.5.1
    1521  * @param array $a First field to compare.
    1522  * @param array $b Second field to compare.
    1523  * @return int
    1524 */
    1525 function wc_checkout_fields_uasort_comparison( $a, $b ) {
    1526         if(!isset($a['priority'])) $a['priority'] = 0; // Add this
    1527         if(!isset($b['priority'])) $b['priority'] = 0; // Add this
    1528         return wc_uasort_comparison( $a['priority'] , $b['priority'] );
    1529 }

    I know it’s not the right thing but the solution of @jobthomas did not work for me. I think it may be a temporary solution while the update arrives.

    Regards!

    neilgee

    (@neilgee)

    Defining WP_DEBUG in wp-config.php is not working for me – the notices are still showing.

    
    define( 'WP_DEBUG', true );
    define( 'WP_DEBUG_LOG', true );
    define( 'WP_DEBUG_DISPLAY', false );
    @ini_set( 'display_errors', 0 );
    

    Notices still show…
    Notice: Undefined index: priority in /home/custome3/public_html/products/wp-content/plugins/woocommerce/includes/wc-core-functions.php on line 1526

    Rolling back to 3.5.0 works for me until fix/update is out

    • This reply was modified 6 years ago by neilgee.
    • This reply was modified 6 years ago by neilgee.
    Jeroen de Jager

    (@anotherdutchman)

    @jesshilario

    Thanks, this seems to work for me too.
    Hopefully the fix will be available soon.

    Regards
    Jeroen

    Plugin Support Job a11n

    (@jobthomas)

    Automattic Happiness Engineer

    Based on what I can read, this will be fixed in the next version of WooCommerce, but until then there’s not much more to do: https://github.com/woocommerce/woocommerce/issues/21819

    bigbanks

    (@bigbanks)

    The same issue, I use fields sorting based on this code:

        foreach($order as $field) {
            $ordered_fields[$field] = isset($fields["billing"][$field]) ? $fields["billing"][$field] : '';
        }
        $fields["billing"] = $ordered_fields;
        return $fields; 

    It works fine on Woo 3.3.4 and I get the correct sorting result,
    but 3.5.1 all fields mixed randomly / wrongly and get error:

    Notice: Undefined index: priority in /var/www/vhosts/domain.com/httpdocs/wp-content/plugins/woocommerce/includes/wc-core-functions.php on line 1526

    Plugin Support Job a11n

    (@jobthomas)

    Automattic Happiness Engineer

    It seems that the fix is waiting here: https://github.com/woocommerce/woocommerce/pull/21856

    @job

    I have the same problem.

    Do you know when the release update 3.5.2 is planned to go out?
    Thank you

    derfberg

    (@derfberg)

    @jesshilario – that solution didn’t work for me – same error

    Any other ideas until 3.5.2 is released? Store can’t take orders…

    @jobthomas – any idea on release date??

    Thanks!

Viewing 15 replies - 1 through 15 (of 20 total)
  • The topic ‘Bug on checkout’ is closed to new replies.