Building a module from scratch-ish - 500 error

alt=
@gcuezy
10 years ago
23 posts
So I've created a module with an index, include, schema, and quota php's. Index just has 1 view function with 1 form field (and a jrCore_page_display()). Include has the meta info, form designer support, quota support, and search fields - returns true. Quota returns true. Schema creates a single datastore. (also have a language file but don't think that matters).

I've managed to get a base set of files for my module and it appears in the admin under the proper section (Score!). When I click it I get a 500 server error.

Do I need a specific tpl (doesn't seem that way) or have I screwed something up somewhere?

I know it's tough without seeing the code, any idea off the top of your head why a 500 error would occur?

I don't have my dev machine so it's hard to search through functions but I assumed the jrCore_page_display took all the jrCore_form_create()s I called and puts it into an admin template.

I'm getting the 500 on the /admin/mod-name/info AND on the /mod-name/create (create is the only view I have).
updated by @gcuezy: 05/04/14 11:22:21PM
alt=
@gcuezy
10 years ago
23 posts
...and by "not on my dev machine" I mean I'm on a borrowed laptop while mine's being repaired so I'm working almost completely via ftp.
michael
@michael
10 years ago
7,746 posts
500 is an "Internal Server Error" so your server broke.

Try using the jrAparana module to build the base structure, its a really quick way to get the basic module structure in place if you're planning to use a datastore.

in the TOOLS tab put in your module name:
gcSomething

That module will be created in the /modules/jcSomething dir. download it and start fiddling.
alt=
@gcuezy
10 years ago
23 posts
Eh, I started that way and went back :\ I thought it may help me understand it a bit more to start from scratch.

Maybe I'll go that route until I'm more familiar with the system.

Thanks!
alt=
@gcuezy
10 years ago
23 posts
All the instant-copyright sort of worried me too, since this may not be publicly released.

Tags