Can't hydrate plugin without an `id` error on /admin/plugins page


(Nilesh Trivedi) #1

I am on version 1.3.0.beta4 and get this JS error on /admin/plugins (logged in as admin). Server logs show “200 OK” although the URL seems incorrect:

Started GET "/admin//plugins?_=1427438873295" for at 2015-03-27 06:49:46 +0000
Processing by Admin::PluginsController#index as JSON
  Parameters: {"_"=>"1427438873295"}
Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)

Notice the double slash in “/admin//plugins”. Could this be the cause?

(Robin Ward) #2

I reviewed the code and the most likely cause for this is that you have a plugin installed that doesn’t have a name in its metadata. The name field is required for that page to work.

The double slash in the path appears to be harmless from a request standpoint but it needed to be fixed:

(Régis Hanol) #3