8 of these messages appeared after finished update.php (following the instructions to update http://www.drupalcommerce.org/commerce-kickstart-2/install)

Type php
Date Friday, December 21, 2012 - 10:04
User giorgosk
Location http://127.0.0.1/i/domain.com/
Referrer http://127.0.0.1/i/domain.com/update.php?op=results&token=lwoheVYW6kVaKLfIPCZZrJ5MqVSecKpPB-Y6oGwh6As
Message Notice: Array to string conversion in token_asort_tokens() (line 565 of G:\innohosting.com\domain.com\profiles\commerce_kickstart\modules\contrib\token\token.module).
Severity notice
Hostname 127.0.0.1

I would submit to token queue but the same token version (1.4) exists in RC4 and full release so I assume something changed in the KC code caused this

I have updated contrib modules manually before and used update.php without this error appearing

The notices don't appear again after browsing the site so its probably something in the update KC script

I tested this on a localhost not sure I want to try to upgrade live site with this

there is one mention of this warning in the issue queue of token that might be helpful #1712336: Notice: Array to string conversion in token_asort_tokens

Comments

bojanz’s picture

I saw it once, but then I didn't see it anymore so I assumed it got fixed...

Infinitee’s picture

I get these warnings after every cache dump:

Warning: strnatcmp() expects parameter 2 to be string, array given in token_asort_tokens() (line 565 of J:\AquiaDrupal7\domains\drupal7\profiles\commerce_kickstart\profiles\commerce_kickstart\modules\contrib\token\token.module).
Warning: strnatcmp() expects parameter 1 to be string, array given in token_asort_tokens() (line 565 of J:\AquiaDrupal7\domains\drupal7\profiles\commerce_kickstart\profiles\commerce_kickstart\modules\contrib\token\token.module).
Warning: strnatcmp() expects parameter 2 to be string, array given in token_asort_tokens() (line 565 of J:\AquiaDrupal7\domains\drupal7\profiles\commerce_kickstart\profiles\commerce_kickstart\modules\contrib\token\token.module).
Warning: strnatcmp() expects parameter 2 to be string, array given in token_asort_tokens() (line 565 of J:\AquiaDrupal7\domains\drupal7\profiles\commerce_kickstart\profiles\commerce_kickstart\modules\contrib\token\token.module).
Warning: uasort() [function.uasort]: Array was modified by the user comparison function in token_get_info() (line 525 of J:\AquiaDrupal7\domains\drupal7\profiles\commerce_kickstart\profiles\commerce_kickstart\modules\contrib\token\token.module).
Notice: Undefined index: summary in node_tokens() (line 142 of J:\AquiaDrupal7\domains\drupal7\profiles\commerce_kickstart\modules\node\node.tokens.inc).

Infinitee’s picture

This patch worked for me...

http://drupal.org/node/1712336#comment-6914290

commerce_kickstart contrib directory:

profiles\commerce_kickstart\profiles\commerce_kickstart\modules\contrib\token

jsacksick’s picture

Status:Active» Needs review

I commited a change that add the patch https://code.drupalcommerce.org/#/c/605/

jsacksick’s picture

Status:Needs review» Fixed

Status:Fixed» Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.