Some other problem with date() and token module
goose2000 - January 10, 2008 - 16:00
| Project: | Upload path |
| Version: | 5.x-1.x-dev |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed |
Jump to:
Description
I created a new blog entry, attached a file to upload. My path is set to use a [author-name] path added.
I am using token 5.x-1.9 - On submit I get:
* warning: date() expects parameter 2 to be long, string given in C:\Inetpub\wwwroot\drupal5\sites\default\modules\token\token_node.inc on line 38.
* warning: date() expects parameter 2 to be long, string given in C:\Inetpub\wwwroot\drupal5\sites\default\modules\token\token_node.inc on line 39.
* warning: date() expects parameter 2 to be long, string given in C:\Inetpub\wwwroot\drupal5\sites\default\modules\token\token_node.inc on line 40.
* warning: date() expects parameter 2 to be long, string given in C:\Inetpub\wwwroot\drupal5\sites\default\modules\token\token_node.inc on line 41.
* warning: date() expects parameter 2 to be long, string given in C:\Inetpub\wwwroot\drupal5\sites\default\modules\token\token_node.inc on line 42.
* warning: date() expects parameter 2 to be long, string given in C:\Inetpub\wwwroot\drupal5\sites\default\modules\token\token_node.inc on line 43.
* warning: date() expects parameter 2 to be long, string given in C:\Inetpub\wwwroot\drupal5\sites\default\modules\token\token_node.inc on line 44.
* warning: date() expects parameter 2 to be long, string given in C:\Inetpub\wwwroot\drupal5\sites\default\modules\token\token_node.inc on line 45.
* warning: date() expects parameter 2 to be long, string given in C:\Inetpub\wwwroot\drupal5\sites\default\modules\token\token_node.inc on line 46.
* warning: date() expects parameter 2 to be long, string given in C:\Inetpub\wwwroot\drupal5\sites\default\modules\token\token_node.inc on line 47.
* warning: date() expects parameter 2 to be long, string given in C:\Inetpub\wwwroot\drupal5\sites\default\modules\token\token_node.inc on line 48.
* warning: date() expects parameter 2 to be long, string given in C:\Inetpub\wwwroot\drupal5\sites\default\modules\token\token_node.inc on line 49.
* user warning: Duplicate entry 'content/test' for key 2 query: INSERT INTO url_alias_extra (pid, dst, entity_type, entity_id, created_by) VALUES (98, 'content/test', 'node', 456, 'Pathauto') in C:\Inetpub\wwwroot\drupal5\includes\database.mysql.inc on line 172.Using Drupal 5.5

#1
This looks like a problem about the Token module.
I had same error, but it was fixed by the patch of this page.
http://drupal.org/node/198346
Oh, I found it later, but there was a splendid patch for Upload path module here.
http://drupal.org/node/192752
#2