The menu paths linkit/dashboard/% and linkit/autocomplete are not returning anything from their menu callback functions. This evaluates to the desired content but causes 500 errors on requests. Adding exit; instead of not returning anything solves this on my setup.

Comments

auth’s picture

StatusFileSize
new611 bytes

Patch attached.

anon’s picture

Status: Active » Needs work

Should use drupal_exit();

auth’s picture

StatusFileSize
new629 bytes

Yes, of course. New patch attached.

anon’s picture

Status: Needs work » Fixed

First, sorry for the delay.

Thanks for the patch. I have commited this now.

But I still dont understand how you got a 500 when requesting the path.

I did a

wget -v testsite.dev/linkit/autocomplete
--2012-11-11 02:46:56--  http://testsite.dev/linkit/autocomplete
Slår upp testsite.dev (testsite.dev)... 192.168.0.110
Ansluter till testsite.dev (testsite.dev)|192.168.0.110|:80... ansluten.
HTTP-begäran skickad, väntar på svar... 200 OK
Längd: 67 [application/json]
Sparar till: "autocomplete"

and got a 200 back.

Status: Fixed » Closed (fixed)

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