HarshawJ Posted by HarshawJ in Musings
on Thursday, November 17, 2005 01:23:16 AM
in a "annoyed" mood.
image
Bad Code

Serves me right. That will teach me. Short cuts are not worth the time saving. Never let other do for you what you should do for yourself. Re-useable code is only reuseable if will always work. A stich in time ain’t worth a dime.

So, what brought on all the platitudes? Simple, the hosting service did me a big favor and upgraded the versions of PHP and MySQL to newer and “more powerful” versions and left me with a code versioning issue. Turns out that much of the software is written for this site used a “shortcut” in the PHP language and when they upgraded the PHP version the PHP people fixed the shortcut. Oops. What does that mean? well some of the software no longer works correctly. This is a bad thing, both on Pmachines part (the people who make the software I am using to run the site) and the PHP people for closing a very useful shortcut and not telling people about it up front.

The shortcut in question is an “Assign By Reference” procedure that is used in most languages, but now not by PHP (or at least not assigning the results of a results function) and that is causing all kinds of problems. In the “Category Lister” plugin that I wrote I called the very assignment that is now illegal. I have fixed it, but there are other plugins using the same call and in a more complex way and I need to fix them as well. You will notice that the recent comments list is “Out of Order” right now.

Worse, the error logs for the site are going nuts, but the site is still working on many levels. I will have to wait for a new version of the software to solve many of these issues but for now it will have to do. You should not actually see a difference in the site operation, most of the errors are in the namagement modules. Oh well, I do it all the hard way for now.

(2) Comments • (0) TrackbacksPermalink

Play World Of Warcraft
***** All comments are now moderated. Please post a comment on the content of the post, not the title to be accepted. *****
November 2005
S M T W T F S
   1 2 3 4 5
6 7 8 9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29 30      

Catagories:

Recent Posts:

Recent Comments:

  • On 09/06/10 06:56:26 PM,
    HarshawJ, in
    A Viva Las Vegas Wedding
    started to comment:
    "Well, I would pick a restaurant you like and go from…"

  • On 09/06/10 02:06:25 AM,
    Wedding Entertainment, in
    A Viva Las Vegas Wedding
    started to comment:
    "Hi,
    Im looking for a restaurant that would be good…"


  • On 06/26/10 12:45:59 AM,
    HarshawJ, in
    How to make WoW Gold (part 1 of 5)
    started to comment:
    "Yeah, you got it right... that is a sweet deal for…"

  • On 06/24/10 10:59:22 PM,
    Priest PvP, in
    How to make WoW Gold (part 1 of 5)
    started to comment:
    "I'm a herbalist but not an alchemist. What a friend suggested…"

  • On 04/21/08 10:51:47 AM,
    HarshawJ, in
    Sleepless in Vegas
    started to comment:
    "OK Mr./Ms. Natural Insomnia Cure... I will leave the comment because…"

  • On 01/29/08 02:13:58 AM,
    HarshawJ, in
    Taxing Cabbies
    started to comment:
    "HR, I do not know how it is in Canada or…"

  • On 01/17/08 09:00:44 AM,
    HarshawJ, in
    Taxing Cabbies
    started to comment:
    "HR,

    Don't take this wrong, but Canadians have…"


  • On 01/08/08 01:22:53 PM,
    HarshawJ, in
    Meth No More
    started to comment:
    "I have been rather sick lately and so have not felt…"

  • On 11/24/07 12:58:32 PM,
    HarshawJ, in
    Meth No More
    started to comment:
    "Evangeline,

    I am currently using Expression Engine 1.4.0.…"


  • On 07/20/07 08:57:40 PM,
    HarshawJ, in
    Meth No More
    started to comment:
    "Not a problem. When you start your blog let me know…"

Site Search:

Advanced Search

Archives:

Blogroll:

Just For Kicks Inc
Daily sneaker news and information from various shoe brands.

Strange New Products
Great Stuff to have and to own for yourself.

Art News Blog
News from the art world.

Drawn Blog
Cartooning news and views.

Worldly Inquiring Mind
Sparking interests - both in humor and fact/opinion