Fatal error - Nesting too deep

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • TristaSD

    Fatal error - Nesting too deep

    Hi,

    Here's a nice footer I get inside every php page I write in wwwroot on
    my server. The code gets parsed just fine. I installed php5.2-win32
    under W2K Server, IIS 5.0. I've installed php on XP machines before,
    no problems there.

    Fatal error: Nesting level too deep - recursive dependency? in Unknown
    on line 0
    Cannot find module (IP-MIB): At line 0 in (none) Cannot find module
    (IF-MIB): At line 0 in (none) Cannot find module (TCP-MIB): At line 0
    in (none) Cannot find module (UDP-MIB): At line 0 in (none) Cannot find
    module (SNMPv2-MIB): At line 0 in (none) Cannot find module
    (SNMPv2-SMI): At line 0 in (none) Cannot find module (UCD-SNMP-MIB): At
    line 0 in (none) Cannot find module (UCD-DEMO-MIB): At line 0 in (none)
    Cannot find module (SNMP-TARGET-MIB): At line 0 in (none) Cannot find
    module (SNMP-VIEW-BASED-ACM-MIB): At line 0 in (none) Cannot find
    module (SNMP-COMMUNITY-MIB): At line 0 in (none) Cannot find module
    (UCD-DLMOD-MIB): At line 0 in (none) Cannot find module
    (SNMP-FRAMEWORK-MIB): At line 0 in (none) Cannot find module
    (SNMP-MPD-MIB): At line 0 in (none) Cannot find module
    (SNMP-USER-BASED-SM-MIB): At line 0 in (none) Cannot find module
    (SNMP-NOTIFICATION-MIB): At line 0 in (none) Cannot find module
    (SNMPv2-TM): At line 0 in (none)

    Does anyone have experience with something like this?

  • robert.iver@gmail.com

    #2
    Re: Fatal error - Nesting too deep

    Do you need/use the SNMP module for PHP? If not, I'd just go into your
    php.ini file and turn it off (comment it out). It looks like it's
    complaining about not being able to find it, but if you're not using
    it, who cares?


    TristaSD wrote:[color=blue]
    > Hi,
    >
    > Here's a nice footer I get inside every php page I write in wwwroot on
    > my server. The code gets parsed just fine. I installed php5.2-win32
    > under W2K Server, IIS 5.0. I've installed php on XP machines before,
    > no problems there.
    >
    > Fatal error: Nesting level too deep - recursive dependency? in Unknown
    > on line 0
    > Cannot find module (IP-MIB): At line 0 in (none) Cannot find module
    > (IF-MIB): At line 0 in (none) Cannot find module (TCP-MIB): At line 0
    > in (none) Cannot find module (UDP-MIB): At line 0 in (none) Cannot find
    > module (SNMPv2-MIB): At line 0 in (none) Cannot find module
    > (SNMPv2-SMI): At line 0 in (none) Cannot find module (UCD-SNMP-MIB): At
    > line 0 in (none) Cannot find module (UCD-DEMO-MIB): At line 0 in (none)
    > Cannot find module (SNMP-TARGET-MIB): At line 0 in (none) Cannot find
    > module (SNMP-VIEW-BASED-ACM-MIB): At line 0 in (none) Cannot find
    > module (SNMP-COMMUNITY-MIB): At line 0 in (none) Cannot find module
    > (UCD-DLMOD-MIB): At line 0 in (none) Cannot find module
    > (SNMP-FRAMEWORK-MIB): At line 0 in (none) Cannot find module
    > (SNMP-MPD-MIB): At line 0 in (none) Cannot find module
    > (SNMP-USER-BASED-SM-MIB): At line 0 in (none) Cannot find module
    > (SNMP-NOTIFICATION-MIB): At line 0 in (none) Cannot find module
    > (SNMPv2-TM): At line 0 in (none)
    >
    > Does anyone have experience with something like this?[/color]

    Comment

    • TristaSD

      #3
      Re: Fatal error - Nesting too deep

      Thanks. The bottom part of the footer is gone, but the "recursive"
      error persists:

      Fatal error: Nesting level too deep - recursive dependency? in Unknown
      on line 0




      robert.iver@gma il.com wrote:[color=blue]
      > Do you need/use the SNMP module for PHP? If not, I'd just go into your
      > php.ini file and turn it off (comment it out). It looks like it's
      > complaining about not being able to find it, but if you're not using
      > it, who cares?
      >
      >
      > TristaSD wrote:[color=green]
      > > Hi,
      > >
      > > Here's a nice footer I get inside every php page I write in wwwroot on
      > > my server. The code gets parsed just fine. I installed php5.2-win32
      > > under W2K Server, IIS 5.0. I've installed php on XP machines before,
      > > no problems there.
      > >
      > > Fatal error: Nesting level too deep - recursive dependency? in Unknown
      > > on line 0
      > > Cannot find module (IP-MIB): At line 0 in (none) Cannot find module
      > > (IF-MIB): At line 0 in (none) Cannot find module (TCP-MIB): At line 0
      > > in (none) Cannot find module (UDP-MIB): At line 0 in (none) Cannot find
      > > module (SNMPv2-MIB): At line 0 in (none) Cannot find module
      > > (SNMPv2-SMI): At line 0 in (none) Cannot find module (UCD-SNMP-MIB): At
      > > line 0 in (none) Cannot find module (UCD-DEMO-MIB): At line 0 in (none)
      > > Cannot find module (SNMP-TARGET-MIB): At line 0 in (none) Cannot find
      > > module (SNMP-VIEW-BASED-ACM-MIB): At line 0 in (none) Cannot find
      > > module (SNMP-COMMUNITY-MIB): At line 0 in (none) Cannot find module
      > > (UCD-DLMOD-MIB): At line 0 in (none) Cannot find module
      > > (SNMP-FRAMEWORK-MIB): At line 0 in (none) Cannot find module
      > > (SNMP-MPD-MIB): At line 0 in (none) Cannot find module
      > > (SNMP-USER-BASED-SM-MIB): At line 0 in (none) Cannot find module
      > > (SNMP-NOTIFICATION-MIB): At line 0 in (none) Cannot find module
      > > (SNMPv2-TM): At line 0 in (none)
      > >
      > > Does anyone have experience with something like this?[/color][/color]

      Comment

      • Robert Iver

        #4
        Re: Fatal error - Nesting too deep

        Any chance of you posting the code of the footer, or at least the first
        20 lines or so?

        I'm wondering if it is trying to include some other PHP file that has a
        function that is the same as one defined in the main body of the
        footer.

        I'm a PHP beginner myself, so this may not be the case, but it's just a
        suggestion, will be able to help more if you could post some code to
        look at.

        TristaSD wrote:[color=blue]
        > Thanks. The bottom part of the footer is gone, but the "recursive"
        > error persists:
        >
        > Fatal error: Nesting level too deep - recursive dependency? in Unknown
        > on line 0
        >
        >
        >
        >
        > robert.iver@gma il.com wrote:[color=green]
        > > Do you need/use the SNMP module for PHP? If not, I'd just go into your
        > > php.ini file and turn it off (comment it out). It looks like it's
        > > complaining about not being able to find it, but if you're not using
        > > it, who cares?
        > >
        > >
        > > TristaSD wrote:[color=darkred]
        > > > Hi,
        > > >
        > > > Here's a nice footer I get inside every php page I write in wwwroot on
        > > > my server. The code gets parsed just fine. I installed php5.2-win32
        > > > under W2K Server, IIS 5.0. I've installed php on XP machines before,
        > > > no problems there.
        > > >
        > > > Fatal error: Nesting level too deep - recursive dependency? in Unknown
        > > > on line 0
        > > > Cannot find module (IP-MIB): At line 0 in (none) Cannot find module
        > > > (IF-MIB): At line 0 in (none) Cannot find module (TCP-MIB): At line 0
        > > > in (none) Cannot find module (UDP-MIB): At line 0 in (none) Cannot find
        > > > module (SNMPv2-MIB): At line 0 in (none) Cannot find module
        > > > (SNMPv2-SMI): At line 0 in (none) Cannot find module (UCD-SNMP-MIB): At
        > > > line 0 in (none) Cannot find module (UCD-DEMO-MIB): At line 0 in (none)
        > > > Cannot find module (SNMP-TARGET-MIB): At line 0 in (none) Cannot find
        > > > module (SNMP-VIEW-BASED-ACM-MIB): At line 0 in (none) Cannot find
        > > > module (SNMP-COMMUNITY-MIB): At line 0 in (none) Cannot find module
        > > > (UCD-DLMOD-MIB): At line 0 in (none) Cannot find module
        > > > (SNMP-FRAMEWORK-MIB): At line 0 in (none) Cannot find module
        > > > (SNMP-MPD-MIB): At line 0 in (none) Cannot find module
        > > > (SNMP-USER-BASED-SM-MIB): At line 0 in (none) Cannot find module
        > > > (SNMP-NOTIFICATION-MIB): At line 0 in (none) Cannot find module
        > > > (SNMPv2-TM): At line 0 in (none)
        > > >
        > > > Does anyone have experience with something like this?[/color][/color][/color]

        Comment

        • Peter Fox

          #5
          Re: Fatal error - Nesting too deep

          This might well be a print_r() error message.

          See if there is any debugging code looking at a complex object.
          --
          PETER FOX Not the same since the icecream business was liquidated
          peterfox@eminen t.demon.co.uk.n ot.this.bit.no. html
          2 Tees Close, Witham, Essex.
          Gravity beer in Essex <http://www.eminent.dem on.co.uk>

          Comment

          • TristaSD

            #6
            Re: Fatal error - Nesting too deep

            Here's my code:

            <html>
            <head>
            </head>

            <body>

            <?
            echo "Hello, world!";
            ?>

            </body>
            </html>

            Here's my output:

            Hello, world!
            Fatal error: Nesting level too deep - recursive dependency? in Unknown
            on line 0

            Comment

            • Robert Iver

              #7
              Re: Fatal error - Nesting too deep

              I would change the code to the following and see what happens:

              <HTML>
              <HEAD></HEAD>
              <BODY>
              <?php
              echo("Hello World!");
              // need parentheses for echo() function
              ?>
              </BODY>
              </HTML>

              Also, make sure the filename has the .php extension and not .html

              Let me know if that works for you....

              TristaSD wrote:[color=blue]
              > Here's my code:
              >
              > <html>
              > <head>
              > </head>
              >
              > <body>
              >
              > <?
              > echo "Hello, world!";
              > ?>
              >
              > </body>
              > </html>
              >
              > Here's my output:
              >
              > Hello, world!
              > Fatal error: Nesting level too deep - recursive dependency? in Unknown
              > on line 0[/color]

              Comment

              • Jerry Stuckle

                #8
                Re: Fatal error - Nesting too deep

                Robert Iver wrote:[color=blue]
                > I would change the code to the following and see what happens:
                >
                > <HTML>
                > <HEAD></HEAD>
                > <BODY>
                > <?php
                > echo("Hello World!");
                > // need parentheses for echo() function
                > ?>
                > </BODY>
                > </HTML>
                >
                > Also, make sure the filename has the .php extension and not .html
                >
                > Let me know if that works for you....
                >
                > TristaSD wrote:
                >[color=green]
                >>Here's my code:
                >>
                >><html>
                >><head>
                >></head>
                >>
                >><body>
                >>
                >><?
                >> echo "Hello, world!";
                >>?>
                >>
                >></body>
                >></html>
                >>
                >>Here's my output:
                >>
                >>Hello, world!
                >>Fatal error: Nesting level too deep - recursive dependency? in Unknown
                >>on line 0[/color]
                >
                >[/color]
                HTML tags are case-insensitive, so <html> is exactly the same as <HTML>. No
                problem there.

                And no, echo does not require parens.

                This should work. Or, if the file is tagged .html instead of .php, he'd only
                get the php code displayed. Obviously the php code is being executed, so that's
                correct.

                I'd check the php.ini file first, just to ensure that looks ok (does a phpinfo()
                call work?). And disable all extensions you don't need for this test (that is,
                probably ALL extensions). If it now works, re-enable them one at a time and see
                which is causing the problem (stop/restart your server between tries - don't
                just do a restart).

                Then check the web server setup to ensure you're using the version you think
                you're using.


                --
                =============== ===
                Remove the "x" from my email address
                Jerry Stuckle
                JDS Computer Training Corp.
                jstucklex@attgl obal.net
                =============== ===

                Comment

                • Jim Carlock

                  #9
                  Re: Fatal error - Nesting too deep

                  "Jerry Stuckle" <jstucklex@attg lobal.net> wrote:[color=blue]
                  > HTML tags are case-insensitive, so <html> is exactly
                  > the same as <HTML>. No problem there.[/color]

                  Well, if you want to write quirks mode HTML put them
                  all in upper case. If you want to write compliant XHTML
                  (no matter if you're using STRICT, TRANSITIONAL or
                  whatnot) make sure ALL tags are lowercase.

                  The validator doesn't validate <HTML> if you're using
                  XHTML or newer but does approve and validate <html>.

                  The point being that it's better to stick with the forward
                  thinking lowercase than it is to mess with quirks mode.

                  --
                  Jim Carlock
                  Post replies to the group.


                  Comment

                  • Jerry Stuckle

                    #10
                    Re: Fatal error - Nesting too deep

                    Jim Carlock wrote:[color=blue]
                    > "Jerry Stuckle" <jstucklex@attg lobal.net> wrote:
                    >[color=green]
                    >>HTML tags are case-insensitive, so <html> is exactly
                    >>the same as <HTML>. No problem there.[/color]
                    >
                    >
                    > Well, if you want to write quirks mode HTML put them
                    > all in upper case. If you want to write compliant XHTML
                    > (no matter if you're using STRICT, TRANSITIONAL or
                    > whatnot) make sure ALL tags are lowercase.
                    >
                    > The validator doesn't validate <HTML> if you're using
                    > XHTML or newer but does approve and validate <html>.
                    >
                    > The point being that it's better to stick with the forward
                    > thinking lowercase than it is to mess with quirks mode.
                    >[/color]

                    Upper case "html" is not quirks mode when running HTML.. By definition, HTML is
                    case insensitive, and the validator is correct in not flagging it.

                    And this is not XML or XHML - there is no DOCTYPE statement. So <HTML> is just
                    as valid as <html>.

                    --
                    =============== ===
                    Remove the "x" from my email address
                    Jerry Stuckle
                    JDS Computer Training Corp.
                    jstucklex@attgl obal.net
                    =============== ===

                    Comment

                    • the DtTvB

                      #11
                      Re: Fatal error - Nesting too deep

                      TristaSD wrote:[color=blue]
                      > in Unknown on line 0[/color]

                      That should be PHP problem, I don't sure.
                      Try reinstall PHP.

                      Comment

                      • Robert Iver

                        #12
                        Re: Fatal error - Nesting too deep


                        Jerry Stuckle wrote:[color=blue]
                        > Robert Iver wrote:[color=green]
                        > > I would change the code to the following and see what happens:
                        > >
                        > > <HTML>
                        > > <HEAD></HEAD>
                        > > <BODY>
                        > > <?php
                        > > echo("Hello World!");
                        > > // need parentheses for echo() function
                        > > ?>
                        > > </BODY>
                        > > </HTML>
                        > >
                        > > Also, make sure the filename has the .php extension and not .html
                        > >
                        > > Let me know if that works for you....
                        > >
                        > > TristaSD wrote:
                        > >[color=darkred]
                        > >>Here's my code:
                        > >>
                        > >><html>
                        > >><head>
                        > >></head>
                        > >>
                        > >><body>
                        > >>
                        > >><?
                        > >> echo "Hello, world!";
                        > >>?>
                        > >>
                        > >></body>
                        > >></html>
                        > >>
                        > >>Here's my output:
                        > >>
                        > >>Hello, world!
                        > >>Fatal error: Nesting level too deep - recursive dependency? in Unknown
                        > >>on line 0[/color]
                        > >
                        > >[/color]
                        > HTML tags are case-insensitive, so <html> is exactly the same as <HTML>. No
                        > problem there.
                        >
                        > And no, echo does not require parens.
                        >
                        > This should work. Or, if the file is tagged .html instead of .php, he'd only
                        > get the php code displayed. Obviously the php code is being executed, so that's
                        > correct.
                        >
                        > I'd check the php.ini file first, just to ensure that looks ok (does a phpinfo()
                        > call work?). And disable all extensions you don't need for this test (that is,
                        > probably ALL extensions). If it now works, re-enable them one at a time and see
                        > which is causing the problem (stop/restart your server between tries - don't
                        > just do a restart).
                        >
                        > Then check the web server setup to ensure you're using the version you think
                        > you're using.
                        >
                        >
                        > --
                        > =============== ===
                        > Remove the "x" from my email address
                        > Jerry Stuckle
                        > JDS Computer Training Corp.
                        > jstucklex@attgl obal.net
                        > =============== ===[/color]

                        The main thing I was trying to change in my code was to change the <?
                        code delimiter to the <?php delimiter.

                        I didn't know whether the more generic <? delimiter would be read ad
                        function differently then the more php specific <?php one.

                        The HTML can be lowercase (in fact, it's probably better to keep
                        everything lowercase in case you want to convert the document to XHTML
                        at some point in the future).

                        Comment

                        • Jerry Stuckle

                          #13
                          Re: Fatal error - Nesting too deep

                          Robert Iver wrote:[color=blue]
                          > Jerry Stuckle wrote:
                          >[color=green]
                          >>Robert Iver wrote:
                          >>[color=darkred]
                          >>>I would change the code to the following and see what happens:
                          >>>
                          >>><HTML>
                          >>><HEAD></HEAD>
                          >>><BODY>
                          >>><?php
                          >>> echo("Hello World!");
                          >>> // need parentheses for echo() function
                          >>> ?>
                          >>></BODY>
                          >>></HTML>
                          >>>
                          >>>Also, make sure the filename has the .php extension and not .html
                          >>>
                          >>>Let me know if that works for you....
                          >>>
                          >>>TristaSD wrote:
                          >>>
                          >>>
                          >>>>Here's my code:
                          >>>>
                          >>>><html>
                          >>>><head>
                          >>>></head>
                          >>>>
                          >>>><body>
                          >>>>
                          >>>><?
                          >>>> echo "Hello, world!";
                          >>>>?>
                          >>>>
                          >>>></body>
                          >>>></html>
                          >>>>
                          >>>>Here's my output:
                          >>>>
                          >>>>Hello, world!
                          >>>>Fatal error: Nesting level too deep - recursive dependency? in Unknown
                          >>>>on line 0
                          >>>
                          >>>[/color]
                          >>HTML tags are case-insensitive, so <html> is exactly the same as <HTML>. No
                          >>problem there.
                          >>
                          >>And no, echo does not require parens.
                          >>
                          >>This should work. Or, if the file is tagged .html instead of .php, he'd only
                          >>get the php code displayed. Obviously the php code is being executed, so that's
                          >>correct.
                          >>
                          >>I'd check the php.ini file first, just to ensure that looks ok (does a phpinfo()
                          >>call work?). And disable all extensions you don't need for this test (that is,
                          >>probably ALL extensions). If it now works, re-enable them one at a time and see
                          >>which is causing the problem (stop/restart your server between tries - don't
                          >>just do a restart).
                          >>
                          >>Then check the web server setup to ensure you're using the version you think
                          >>you're using.
                          >>
                          >>
                          >>--
                          >>============= =====
                          >>Remove the "x" from my email address
                          >>Jerry Stuckle
                          >>JDS Computer Training Corp.
                          >>jstucklex@att global.net
                          >>============= =====[/color]
                          >
                          >
                          > The main thing I was trying to change in my code was to change the <?
                          > code delimiter to the <?php delimiter.
                          >
                          > I didn't know whether the more generic <? delimiter would be read ad
                          > function differently then the more php specific <?php one.
                          >[/color]

                          It's possible - depending on what other extensions are parsing your file.
                          That's one reason it's frowned upon. But <?php shouldn't cause a problem.
                          [color=blue]
                          > The HTML can be lowercase (in fact, it's probably better to keep
                          > everything lowercase in case you want to convert the document to XHTML
                          > at some point in the future).
                          >[/color]

                          Yep.

                          --
                          =============== ===
                          Remove the "x" from my email address
                          Jerry Stuckle
                          JDS Computer Training Corp.
                          jstucklex@attgl obal.net
                          =============== ===

                          Comment

                          Working...