[typo] An exception when create a new post with typo5.0.2

imfly 790506 at gmail.com
Sun Feb 24 03:58:36 EST 2008


hi,
I get the follow log When i create a post.

////////
Processing ContentController#new (for 127.0.0.1 at 2008-02-24 11:01:21)
[POST]
  Session ID: eaa8a78eceaa91a9e10b1c09bb8b89c7
  Parameters: {"article"=>{"permalink"=>"", "allow_pings"=>"0",
"title"=>"bh", "body"=>"<p>hhh</p>", "published"=>"1",
"published_at(1i)"=>"2008", "extended"=>"", "published_at(2i)"=>"2",
"published_at(3i)"=>"24", "published_at(4i)"=>"11",
"published_at(5i)"=>"01", "keywords"=>"", "allow_comments"=>"1"},
"action"=>"new", "controller"=>"admin/content",
"attachments"=>{"filename_1"=>""}, "text_filter"=>"markdown smartypants"}
  Trigger Load (0.000500)   SELECT * FROM `triggers` WHERE (due_at <=
'2008-02-24 11:01:21')
  SQL (0.000795)   SHOW TABLES
  Blog Columns (0.000875)   SHOW FIELDS FROM `blogs`
  Blog Load (0.000477)   SELECT * FROM `blogs` ORDER BY id LIMIT 1
  User Columns (0.001376)   SHOW FIELDS FROM `users`
  User Load (0.000787)   SELECT * FROM `users` WHERE (`users`.`id` = 1)
  SQL (0.000235)   SELECT version FROM schema_info
  CACHE (0.000000)   SELECT * FROM `blogs` ORDER BY id LIMIT 1
#<Article:0xb6bbc8b0> leaving state Article::States::New
#<Article:0xb6bbc8b0> entering state Article::States::JustPublished
#<Article:0xb6bbc8b0> leaving state Article::States::JustPublished
#<Article:0xb6bbc8b0> entering state Article::States::Published
  Category Load (0.000474)   SELECT * FROM `categories` ORDER BY
UPPER(name), position ASC
undefined method `original_filename' for "":String
  SQL (0.000132)   BEGIN
  Article Load (0.001201)   SELECT * FROM `contents` WHERE (contents.guid IS
NULL) AND ( (`contents`.`type` = 'Article' ) ) LIMIT 1
  Blog Load (0.000348)   SELECT * FROM `blogs` WHERE (`blogs`.`id` = 1)
  Article Create (0.000311)   INSERT INTO `contents` (`allow_pings`, `name`,
`permalink`, `updated_at`, `body`, `guid`, `title`, `published`, `author`,
`type`, `excerpt`, `text_filter_id`, `blog_id`, `extended`, `whiteboard`,
`published_at`, `user_id`, `allow_comments`, `created_at`, `keywords`,
`state`) VALUES(0, NULL, 'bh', '2008-02-24 11:01:21', '<p>hhh</p>',
'446084c3-626e-426c-aa35-355dd7abe7be', 'bh', 1, 'admin', 'Article', NULL,
NULL, 1, '', NULL, '2008-02-24 11:01:00', 1, 1, '2008-02-24 11:01:21', '',
'published')
  User Load (0.000718)   SELECT * FROM `users` WHERE (notify_on_new_articles
= 1)
  User Load (0.000894)   SELECT users.* FROM users INNER JOIN notifications
ON users.id = notifications.user_id WHERE ((notifications.content_id = 10))
  CACHE (0.000000)   SELECT * FROM `users` WHERE (notify_on_new_articles =
1)
  SQL (0.000635)   SHOW TABLES
  TextFilter Columns (0.001012)   SHOW FIELDS FROM `text_filters`
  TextFilter Load (0.000512)   SELECT * FROM `text_filters` WHERE
(`text_filters`.`name` = 'markdown smartypants') LIMIT 1
  Ping Load (0.000656)   SELECT * FROM `pings` WHERE (pings.article_id = 10)
ORDER BY created_at ASC
  Ping Columns (0.000873)   SHOW FIELDS FROM `pings`
  Article Load (0.001224)   SELECT * FROM `contents` WHERE (`contents`.`id`
= 10) AND ( (`contents`.`type` = 'Article' ) )
  Blog Load (0.000363)   SELECT * FROM `blogs` WHERE (`blogs`.`id` = 1)
  CACHE (0.000000)   SELECT * FROM `contents` WHERE (`contents`.`id` = 10)
AND ( (`contents`.`type` = 'Article' ) )
  CACHE (0.000000)   SELECT * FROM `blogs` WHERE (`blogs`.`id` = 1)
HTTP-Error: 405 Method Not Allowed
  CACHE (0.000000)   SELECT * FROM `contents` WHERE (`contents`.`id` = 10)
AND ( (`contents`.`type` = 'Article' ) )
  CACHE (0.000000)   SELECT * FROM `blogs` WHERE (`blogs`.`id` = 1)
  Join Table Columns (0.004942)   SHOW FIELDS FROM `articles_tags`
  Tag Load (0.000773)   SELECT * FROM `tags` INNER JOIN articles_tags ON
tags.id = articles_tags.tag_id WHERE (articles_tags.article_id = 10 )
  SQL (0.022399)   COMMIT
  Categorization Load (0.000861)   SELECT * FROM `categorizations` WHERE (
categorizations.article_id = 10)
Redirected to http://localhost:3000/admin/content/show/10
Completed in 5.22495 (0 reqs/sec) | DB: 0.05974 (1%) | 302 Found [
http://localhost/admin/content/new]
//////

thanks
zzw
--
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://rubyforge.org/pipermail/typo-list/attachments/20080224/a9328294/attachment.html 


More information about the Typo-list mailing list