Skip Menu |

This queue is for tickets about the Catalyst-Plugin-AutoCRUD CPAN distribution.

Report information
The Basics
Id: 56003
Status: resolved
Priority: 0/
Queue: Catalyst-Plugin-AutoCRUD

People
Owner: Nobody in particular
Requestors: xenoterracide@gmail.com (no email address)
Cc:
AdminCc:

Bug Information
Severity: Critical
Broken in: 0.68
Fixed in: (no value)



Subject: JSON errors
getting the following error Caught exception in Draupnir::View::AutoCRUD::JSON->process "must provide object to convert at /usr/share/perl5/vendor_perl/Catalyst/View/JSON.pm line 44" I was able to load /autocrud but I could only go to 1 table without getting this error message... for some reason getting there allowed me to switch tables with the ajax interface but non of them showed any results. I also have bug #55742 where autocrud seems to break my entire app with this error.
Subject: Re: [rt.cpan.org #56003] JSON errors
Date: Tue, 30 Mar 2010 12:34:44 +0100
To: bug-Catalyst-Plugin-AutoCRUD [...] rt.cpan.org
From: Oliver Gorwits <oliver.gorwits [...] oucs.ox.ac.uk>
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 27/03/2010 18:42, http://xenoterracide.blogspot.com/ via RT wrote: Show quoted text
> I was able to load /autocrud but I could only go to 1 table without > getting this error message... for some reason getting there allowed me to > switch tables with the ajax interface but non of them showed any results. > > I also have bug #55742 where autocrud seems to break my entire app with > this error.
In which case you probably want to also follow the same solution as in that other ticket, which is: Show quoted text
> As it turns out, my view is named HTML, not TT. By setting > "default_view HTML" in my config, this problem goes away.
So you likely have a View (perhaps not called TT) and are also perhaps calling $c->view which is dispatching to the wrong view. I advise setting default_view in your configuration. Hope that helps, - -- Oliver Gorwits, Network and Telecommunications Group, Oxford University Computing Services -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (Darwin) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAkux4dQACgkQ2NPq7pwWBt4tKQCgkBJd+PjII3dmeeYv62BExqtM k2MAoIF0+LxvhrqaSv92gZWzn0rU+Hk7 =VfUl -----END PGP SIGNATURE-----
Subject: Re: [rt.cpan.org #56003] JSON errors
Date: Tue, 30 Mar 2010 08:15:00 -0400
To: bug-Catalyst-Plugin-AutoCRUD [...] rt.cpan.org
From: Caleb Cushing <xenoterracide [...] gmail.com>
On Tue, Mar 30, 2010 at 7:35 AM, oliver.gorwits@oucs.ox.ac.uk via RT <bug-Catalyst-Plugin-AutoCRUD@rt.cpan.org> wrote: Show quoted text
> So you likely have a View (perhaps not called TT) and are also > perhaps calling $c->view which is dispatching to the wrong view. I > advise setting default_view in your configuration. >
I missed the json errors in that bug... so seems this is identical to it. The problem here is documentation, as within a few weeks this has also been reported on the mailing list, by another party (didn't check the name to see if it's the other bug reporter). You should put at the the top of the documentation that people should set there default view (and how) if it's not TT.pm. I'm going to make sure this get's fixed in the Tutorial as seemingly not setting the default can cause more problems than it should, and since my end action hasn't changed I'm going to try getting C::V::TT docs fixed too. I'm serious, fix the docs and push a new version of the module and no one will have this problem anymore. -- Caleb Cushing http://xenoterracide.blogspot.com
Subject: Re: [rt.cpan.org #56003] JSON errors
Date: Tue, 30 Mar 2010 15:34:40 +0100
To: bug-Catalyst-Plugin-AutoCRUD [...] rt.cpan.org
From: Oliver Gorwits <oliver.gorwits [...] oucs.ox.ac.uk>
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 30/03/2010 13:15, xenoterracide@gmail.com via RT wrote: Show quoted text
> I'm serious, fix the docs and push a new version of the module and no > one will have this problem anymore.
Thanks for the advice. - -- Oliver Gorwits, Network and Telecommunications Group, Oxford University Computing Services -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (Darwin) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAkuyDAAACgkQ2NPq7pwWBt4I3wCfbU2aWQqyRfIhSvwCv7/+2O+/ Bu0An1dFud6o9+qeLOO4RU62gIWGFckI =MbkZ -----END PGP SIGNATURE-----
I'm resolving this ticket and have created an action item for the documentation enhancement. -- regards, oliver.