• Resolved Mkhalid

    (@mkhalid)


    hello ,

    i am woring on something related to the widgets.

    i created my own widget and it worked well till i added just one line to the code , so i got the error [Maximum function nesting level of ‘100’ reached, aborting!].

    here is the function code.

    function widget( $args, $instance ) {
    		extract( $args );
    
    		//Our variables from the widget settings.
    		$class 		= $instance['class'];
    		$id 		= $instance['id'];
    		$container 	= $instance['container'];
    		$wid 		= $instance['wid'];
    
    		// Display the widget title 
    
    		?>
    
    			<section class="<?php echo $class; ?>" id="<?php echo $id; ?>">
    				<div class="<?php echo $container; ?>">
    					<div class="row">
    
    					<?php the_widget('base_widget' , 'class=my&id=lol&container=container'); ?>
    
    					</div>
    				</div>
    			</section>
    
    		<?php
    
    	}

    the_widget >> when removed , the code works fine and when added back the error appears again.

    where is the nesting occurs ? and how to solve it ?

    Thanks in advance.

Viewing 1 replies (of 1 total)
  • Thread Starter Mkhalid

    (@mkhalid)

    solved!

    i was calling the ” base_widget ” inside ” base_widget “

    so it was looping and this cause nesting ..

Viewing 1 replies (of 1 total)
  • The topic ‘The Widget – Maximum function nesting level of '100' reached, aborting!’ is closed to new replies.