Closed (fixed)
Project:
QuickPost Bookmarklet
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
30 Apr 2012 at 15:01 UTC
Updated:
14 May 2012 at 16:30 UTC
I created a custom content type "Plus 1" and a view to list all "Plus 1" content. When I create a bookmarklet to add new content of that type, I only get to the node/add page, although the url contains the required information. I verified that it works for the "blog" content type. Here is an example of the url for the new content type (highlighted the word "Dozens" from www.livescience.com):
http://mydomain.com/node/add/plus_1?edit[title]=Science%20News%20%E2%80%...
Comments
Comment #1
BrockBoland commentedThis is probably a configuration issue on your site. Try manually cutting down the length of the URL to use something short like this:
http://dotcadot.ca/node/add/plus_1?edit[title]=Test Title&edit[body][und][0][value]=This is the body
Does that work?
Also check if you have suhosin installed on your server. I had some issues with it on my host: http://drupaldork.com/2012/04/quickpost-bookmarklet-dreamhost-vps-suhosin
Comment #2
Seven_Six_Two commentedThanks for your quick reply! I figured it out, and know how to reproduce the problem.
I have suhosin patch and extension, although i made the modification indicated by your blog post.
The problem seems to be with using the bookmarklet with content types that contain a space in their name, which causes an underscore in the machine name. While it doesn't cause an issue while creating a post manually, something goes wrong with the bookmarklet.
I changed the name of my content type from "Plus 1" and machine name "plus_1" to "Plus1" and "plus1". This solved the problem, although I am not sure why it occurs, or whether it's still a config problem on my end.
Let me know if you have any questions, and thanks again for your help.
JP
Comment #3
BrockBoland commentedWow, good catch! I didn't realize that node/add paths replace the underscore with a hyphen in the node type machine name. I just pushed a fix for this, and a new release will be available here as soon as it's done packaging:
http://drupal.org/node/1554834
Comment #4.0
(not verified) commentedverified blog content type.