Mysidia Adoptables Support Forum  

Home Community Mys-Script Creative Off-Topic
Go Back   Mysidia Adoptables Support Forum > Projects > The Bug Tracker > Bug

Nesting level too deep - recursive dependency? [SOLVED] Issue Tools
issueid=37 01-26-2014 10:32 AM
Member
Nesting level too deep - recursive dependency? [SOLVED]

Hi,

I finally found a fix which seems to solve the issue with
"PHP Fatal error: Nesting level too deep - recursive dependency?".

Code:
--- linkedhashmap.php.ORG	2014-01-26 16:30:42.000000000 +0100
+++ linkedhashmap.php	2014-01-26 16:26:52.000000000 +0100
@@ -189,7 +189,7 @@
      */			
 	public function transfer(Arrays $newEntries){
 		$newCapacity = $newEntries->length();
-		for($entry = $this->header->getAfter(); $entry != $this->header; $entry = $entry->getAfter()){
+		for($entry = $this->header->getAfter(); $entry !== $this->header; $entry = $entry->getAfter()){
 		    $index = $this->indexFor($entry->getHash(), $newCapacity);
 			$entry->setNext($newEntries[$index]);
 			$newEntries[$index] = $entry;
Issue Details
Project The Bug Tracker
Category Unknown
Status Fixed
Priority 3
Affected Version Mys v1.3.3
Fixed Version Mys v1.4.0
Users able to reproduce bug 3
Users unable to reproduce bug 0
Assigned Users (none)
Tags (none)

01-27-2014 02:56 AM
Administrator, Lead Coder
 
Interesting... So you get it to work by appending an equal sign to the $entry != $this->header line? If so, this may explain why only a small number of people get this error. Changes are they have duplicate items at the dropdown list, but its kinda strange since supposedly every item in dropdown list is unique. I will double-check on that.
Reply
01-27-2014 03:46 AM
Member
 
comparing with twe == will not go thru all its properties as far as i know...

more details I found here: http://www.richardlord.net/blog/php-...ive-dependency
Reply
04-07-2014 01:36 PM
Member
 
This solution seems to have worked for me as well. Thanks anno1986!
Reply
04-15-2014 10:54 AM
Member
 
This worked for me as well. All was going fine until suddenly I couldn't add an Item or a new shop without this error occuring. I added the = sign to the appropriate file and it seems to be working fine now.

Also, I am using version 1.3.4
Reply
09-05-2014 04:25 PM
Member
 
I'm still kinda confused on how to fix this.

I keep getting the following when trying to modify the menu through the admin CP:

Code:
Fatal error: Nesting level too deep - recursive dependency? in /home/u110012781/public_html/classes/resource/collection/linkedhashmap.php on line 192
However, I have no clue where I would add in the additional equal sign in the linkedhashmap.php. Anybody who could help me ahead?


Edit: Never mind; figured out what the + / - in front of the lines were supposed to convey :P
I feel stupid now :D
Reply
09-28-2014 03:29 PM
A Headache Embodied
 
I am also having this issue, but I don't quite understand how to go about fixing it?

Any advice?
Reply
09-30-2014 01:12 PM
Member
 
In the file that has the issue, find:

Code:
for($entry = $this->header->getAfter(); $entry != $this->header; $entry = $entry->getAfter()){
Replace it with:

Code:
for($entry = $this->header->getAfter(); $entry !== $this->header; $entry = $entry->getAfter()){
Reply
09-30-2014 03:09 PM
A Headache Embodied
 
Awesome, thanks!
Reply
Reply

Issue Tools
Subscribe to this issue

All times are GMT -5. The time now is 10:27 AM.

Currently Active Users: 81 (2 members and 79 guests)
Threads: 3,951, Posts: 31,452, Members: 15,540
Welcome to our newest members, kimirules1234.
BER





What's New?

What's Hot?

What's Popular?


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2018, vBulletin Solutions Inc.
vBCommerce I v2.0.0 Gold ©2010, PixelFX Studios
vBCredits I v2.0.0 Gold ©2010, PixelFX Studios
Emoticons by darkmoon3636