Skip to content
This repository has been archived by the owner on Jan 10, 2022. It is now read-only.

Saving content doesn't complete properly with tagcloud installed #63

Closed
bowmanb opened this issue Jul 12, 2011 · 3 comments
Closed

Saving content doesn't complete properly with tagcloud installed #63

bowmanb opened this issue Jul 12, 2011 · 3 comments

Comments

@bowmanb
Copy link

bowmanb commented Jul 12, 2011

When saving content with tagcloud module installed, browser spins but doesn't complete request. It seems content is actually saved though. The below exception is in the logs. I am running node 0.4.9 and Calipso 0.1.1. Screenshot at http://i.imgur.com/DrHqG.png.

Uncaught exception: TypeError: Cannot read property 'author' of nullTypeError: Cannot read property 'author' of null
at /home/b/dev/calipso/modules/core/content/content.module.js:636:52
at /home/b/dev/calipso/node_modules/mongoose/lib/mongoose/query.js:804:22
at [object Object]. (/home/b/dev/calipso/node_modules/mongoose/support/node-mongodb-native/lib/mongodb/collection.js:741:5)
at [object Object].emit (events.js:67:17)
at [object Object]. (/home/b/dev/calipso/node_modules/mongoose/support/node-mongodb-native/lib/mongodb/connections/server.js:97:12)
at [object Object].emit (events.js:64:17)
at Socket. (/home/b/dev/calipso/node_modules/mongoose/support/node-mongodb-native/lib/mongodb/connection.js:91:16)
at Socket.emit (events.js:64:17)
at Socket._onReadable (net.js:673:31)
at IOWatcher.onReadable as callback

@cliftonc
Copy link
Owner

Morning, can you pull the latest changes down?

I was making some changes related to tag cloud last week to test the possibility of alteration of objects in the event chain that may have caused issues (they are removed in the latest push done yesterday and this morning).

I've also wrapped the function that is erroring (basically the error above is that it hasn't saved the content properly, and hence it hasn't then been able to retrieve it for some reason), but the showContentByID function had no error handling. If your error recurs you will see a 404 (e.g. the content can't be found).

If it happens again, but this time you get a 404, can you let me know what you are entering into the form?

Cheers,
Clifton

@bowmanb
Copy link
Author

bowmanb commented Jul 13, 2011

Looks good. Thanks for the help.

@bowmanb bowmanb closed this as completed Jul 13, 2011
@cliftonc
Copy link
Owner

No problem.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants