We have some areas that just require a ton of work and where you can
help even without a ton of knowledge about the system. One of those
areas are the JError errorcodes. We throw a lot of errors in Joomla here
and there, but up till now, those were almost always just with the code
0 and some unhelpfull message. We now want to change those to a
documented errorcode system. For this, we have the following page on our
wiki:
http://docs.joomla.org/Errors
On that page you see a list of numberring ranges for the different parts
of Joomla, starting with the framework and then the different
applications. Below that list, you can see which error codes have been
implemented so far. What we would like to have is every developer, that
has half an hour of time, to dive in, take one subpackage of Joomla,
change the error code to something meaningful, document it on the wiki
and send in a patch via the Feature Patch Tracker.
So, how do you do this? First of all, you decide which package you want
to do. Just choose one of the packages listed on
http://docs.joomla.org/Errors in the "Ranges for Error Numbers" section
and send a mail over the list, that you are working on this one to make
sure that two people are not working on that part at the same time
Now you go through the code and wherever you find something like this:
JError::raiseNotice(500, JText::_($this->ErrorInfo));
Replace the number with one from the numberrange for that package and
put a meaningfull message in there, followed maybe by the
$this->ErrorInfo part. Create a patch from this and save it to your
harddrive. A patch can be done this way:
http://docs.joomla.org/Creating_a_patch
Now this number itself wouldn't help us a lot, we need to document this
properly. This is done on the wiki. So, log in and create a new page for
that error with the following scheme:
http://docs.joomla.org/Errors/<ERRORNUMBER>
Just type that into your adress bar and then create the documentation
for this error number. How should such a documentation look like? Take a
look into the discussion area of this site:
http://docs.joomla.org/Errors There you can find a template code for the
documentation. Just copy this one to your new site and fill in the
correct data. After creating this page, send in the patch via our Joomla
1.6 Feature Patch tracker on Joomlacode and we will apply it as soon as
possible to the trunk. You can find the Joomla 1.6 Feature Patch tracker
here:
http://joomlacode.org/gf/project/joomla/tracker/?action=TrackerItemBrowse&tracker_id=8549
Sometimes the numbering range is not large enough to accomodate all
error messages in one subpackage. In that case, when you have reached
the end of the range, you start again at the beginning and add a .01 to
the first error code and then we start to count up from there. So we
would have Errorcode 1050.01, 1050.02, etc.
Now, for one developer alone, this is impossible to do all by himself,
but if everybody could help out with just one package, we would have
this done in just a few hours. For now it would just be awesome if we
could get the Joomla framework done. If that has been achieved, we can
go further and do the different applications and components.
This is the perfect opportunity for you to start messing around with the
Joomla codebase, getting to know the code intimately and maybe you find
something that you want to implement besides this for 1.6. So help us
out, lets show that Joomla does not only mean "all together" translated
into english, but that we also act by that!
Hannes
P.S.: If you have another feature that you coded and want to see in 1.6,
add it to the Feature Patch tracker, too and contact us to add it to the
trunk, so that everybody can benefit from this. :-)
Hannes
Hannes Papenberg schrieb:
I’m willing to help on documenting the JError codes.
Are you going ahead with straight numbers or are you thinking about implementing chris’s idea? I think the idea of breaking it into the different areas with a meaningful apha prefix makes a lot of sense. Then just seeing the code you know where you are which is an advantage.
I’ll do Forms.
Andy