where should you start to look if unchanged code starts to have bugs?

Ask a Question related to PHP Development, Design and Development.

  1. #1

    Default Re: where should you start to look if unchanged code starts to have bugs?


    On 12-Jul-2003, [email]lkrubner@geocities.com[/email] (lawrence) wrote:
    > Dealing with strange problems today. Below is some code that hasn't
    > been changed in about 6 months. It calls the function wrapInDiv, which
    > hasn't been changed in at least a year. Now I'm suddenly getting the
    > error "Fatal error: Maximum execution time of 30 seconds exceeded" and
    > it indicates the last line of this function. Since that can't be true,
    > what other kinds of problems should I be looking for?
    >
    > function formLink($introText, $choiceMade, $hiddenName2="",
    > $hidden2="", $hiddenName3="", $hidden3="") {
    > $link = "<a class=\"formLink\" href=\"";
    > $link .= $self;
    > $link .= "?choiceMade=";
    > $link .= $choiceMade;
    > if ($hiddenName2 != "") $link .= "&".$hiddenName2."=".$hidden2;
    > if ($hiddenName3 != "") $link .= "&".$hiddenName3."=".$hidden3;
    > $link .= "\">";
    > $link .= $introText;
    > $link .= "</a>\n";
    > wrapInDiv($link, "mcFormBlock");
    > }
    One problem is $self is undefined. If you're sure wrapInDiv isn't the
    problem, remove it and see if you timeout.

    --
    Tom Thackrey
    [url]www.creative-light.com[/url]
    Tom Thackrey Guest

  2. Similar Questions and Discussions

    1. Audio starts on click/stops/and finaly starts correctwith video
      Hi there... When ActionScript 3 the video on the FMS2 starts, begins audio (sound) during the buffering (to early). If after the buffering the...
    2. CF MX6.1 will not auto start after server reboot.. but will start by hand...
      I just moved all the stuff to a new dual Xeon Windows server 2003. Problem with CF MX 6.1 is that it will not start after a server reboot! I get...
    3. Tool to compare screenshots and delete all unchanged parts
      If the 2 shots are actually identical, except for some small details, you could place them in 2 layers and set the blend mode of the top one to...
    4. Automatic application start when IIS starts (not only on the first request)!
      You need something to trigger it off. with a global.asax file, this is triggered when the application starts (ie first hit) If you want to do...
    5. Dreamweaver MX - BUGS BUGS BUGS *** HELP ***
      DREAMWEAVER EXPERT !!! _________________ HELP ____________________ ON BEHALF OF MY FRIENDS AND TEAM AROUND THE GLOBE... IF WE HAVE AN UPDATE...
  3. #2

    Default Re: where should you start to look if unchanged code starts to have bugs?

    [email]lkrubner@geocities.com[/email] (lawrence) wrote in message
    news:<da7e68e8.0307120904.1f44a4a0@posting.google. com>...
    >
    > Dealing with strange problems today. Below is some code that hasn't
    > been changed in about 6 months. It calls the function wrapInDiv, which
    > hasn't been changed in at least a year. Now I'm suddenly getting the
    > error "Fatal error: Maximum execution time of 30 seconds exceeded" and
    > it indicates the last line of this function. Since that can't be true,
    > what other kinds of problems should I be looking for?
    Changes in server setup, in particular, register_globals and
    error reporting levels.

    Cheers,
    NC
    Nikolai Chuvakhin Guest

  4. #3

    Default Re: where should you start to look if unchanged code starts to have bugs?

    Thanks both for the replies. In the end, I think most of the problem
    was that I had, unthinkingly, passed my config array, holding all
    config data, by reference to all my (new, untested) 00 classes.
    Debugging when passing variables by reference required a new mindset
    for me.
    lawrence Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

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 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139