https://www.icyphoenix.com/viewtopic.php?f=2&t=9654
-----------------------------------
MWE_001
Wed 21 Sep, 2016 00:27

Knowledge Base Error And Question
-----------------------------------
I ran in to a small issue. Me being me, I have to click links of all sorts in places most people would never click, but if it there, I'm going to click it just because. If it don't work it needs fixed or gone so there for I test and test and click and click.  :mrviolet: 

In the Knowledge Base there is a link and here it is:

 [img]http://www.icyphoenix.com/files/images/11665/screenshot_53.jpg[/img] 

Clicking that gave me this:

 [img]http://www.icyphoenix.com/files/images/11665/screenshot_52.jpg[/img] 

In this case I know for 100% certain it is a php.ini error. BUT for all you coding gurus out there, is there any way to fix this on a server that we do NOT have access to the php.ini file? Obviously you can tell from the screnshot this error is on my local host server so iw as able to fix it by setting: [code linenumbers=false]xdebug.max_nesting_level = 200[/code]

Can I drop this: [code linenumbers=false]ini_set('xdebug.max_nesting_level', 200);[/code] in my code somewhere and make it work on my live web host? 

To be exact I think it is a [code linenumbers=false] /etc/php5/apache2/conf.d/20-xdebug.ini[/code] not a regular php.ini issue

Anyway, this problem should never be an issue on my site for any user at any time other than a mod or admin. Normal users will never see that link..... I think. that was in my forum that I have it set to view Private. So if no fix, that's perfectly fine by me.  :mrblue:  was just food for thought.


-----------------------------------
Informpro
Wed 21 Sep, 2016 08:19

Re: Knowledge Base Error And Question
-----------------------------------
I don't think it's a ini error. It seems it doesn't know when to stop going forward. I'll look after I'm done with the github tickets


-----------------------------------
Informpro
Sat 24 Sep, 2016 01:13

Re: Knowledge Base Error And Question
-----------------------------------
did you, by any "luck", put a category as a parent of itself?


-----------------------------------
MWE_001
Tue 27 Sep, 2016 19:38

Re: Knowledge Base Error And Question
-----------------------------------
[quote user="Informpro" post="60906"]did you, by any "luck", put a category as a parent of itself?[/quote]

I'm 100% for certain that was not the case. I went back and tried again with the same exact results.


-----------------------------------
Informpro
Wed 28 Sep, 2016 17:30

Re: Knowledge Base Error And Question
-----------------------------------
Okay, I'm starting to get an idea. Can you tell me how many categories you had then?


-----------------------------------
MWE_001
Wed 28 Sep, 2016 21:35

Re: Knowledge Base Error And Question
-----------------------------------
My setup is as follows.

Categories and types = 4

Forums for comments to go to = 4 

All 4 forums set up as KB Mode in forum setting when setting up that forum.


The first image in my original post all the way up top, you can see the link I clicked to get the error. That was in the forum where the KB category sends its comments to, NOT in the KB. 

The forums are setup to view as private so no one but mods and admin can see the forums so registered members MUST use the KB instead or they will just short cut right to the forums instead. So when you set up the forum for comments, make sure to set it to view private and make it so the forum is in KB Mode.

Now go to your Knowledge Base and choose any category you wish. Submit a new article. Now make a comment on said article. Now at this point in time, users would be redirected the forums to submit and view comments. You as an admin can just go to your forums and click on that private forum where the comment just went and read the article heading. Click that link that says read complete story. Now enjoy the error.  :mricy: 

If my instructions are confusing (they so often are) I can break out the old recording studio and  do a quick youtube video.


-----------------------------------
Informpro
Thu 29 Sep, 2016 09:25

Re: Knowledge Base Error And Question
-----------------------------------
That should be enough. I just need to reduce my local config to reproduce it; no big deal.


-----------------------------------
MWE_001
Wed 05 Oct, 2016 02:13

Re: Knowledge Base Error And Question
-----------------------------------
Yeah its really no biggie man. I had to dig deep to find this one. The realistic odds of the regular Joe running in to this issue is slim to none really. I just managed to get "lucky" if that is what you wish to call it and find it.


-----------------------------------
Informpro
Wed 05 Oct, 2016 16:47

Re: Knowledge Base Error And Question
-----------------------------------
Just to check something – are you using the "Forum KB" feature in Forum Management, or the KB plugin? Both are unrelated.

EDIT: in the meantime i fixed a bug and 2 weird things in KB! Hopefully MG will be able to look at it soon enough.


-----------------------------------
MWE_001
Sun 09 Oct, 2016 20:17

Re: Knowledge Base Error And Question
-----------------------------------
First off, sorry so slow on the reply. I have been plagued with internet outage the last week. Sporadic service at best.

And good catch. I do have KB Feature turned on for the forums where the KB plugin comments go.  

I will go turn that feature off right now and test. I will come back and post.

[color=red][b]**UPDATE**[/b] [/color]

I shut off KB Mode for the forums where the KB Plugin comments go and that error is gone. If I click the read full article link now, it displays the whole article and not an error.


-----------------------------------
Mighty Gorgon
Tue 11 Oct, 2016 21:34

Re: Knowledge Base Error And Question
-----------------------------------
I will have a look at this as soon as I have some free time... it's a busy period... :?


-----------------------------------
MWE_001
Sun 16 Oct, 2016 06:02

Re: Knowledge Base Error And Question
-----------------------------------
[quote user="Informpro" post="60922"]

EDIT: in the meantime i fixed a bug and 2 weird things in KB! Hopefully MG will be able to look at it soon enough.[/quote]

Hmm fixes on Git? I'm curious as usual.  :mryellow:


-----------------------------------
Informpro
Mon 17 Oct, 2016 13:37

Re: Knowledge Base Error And Question
-----------------------------------
Yup! I think they were merged on the plugins repo :-)


-----------------------------------
MWE_001
Wed 19 Oct, 2016 23:36

Re: Knowledge Base Error And Question
-----------------------------------
Nice! Ill have a look as soon as my I get my PC reformatted tonight.


-----------------------------------
MWE_001
Sat 12 Nov, 2016 19:51

Re: Knowledge Base Error And Question
-----------------------------------
I never got to go check out the fixes. I am on my way now. 

P.S. I love having time again to work on my icy projects.  :mricy:


-----------------------------------
Informpro
Tue 11 Dec, 2018 18:02

Re: Knowledge Base Error And Question
-----------------------------------
Hey Ray, do you remember if you ended up figuring out what caused the bug?


-----------------------------------
MWE_001
Wed 12 Dec, 2018 03:50

Re: Knowledge Base Error And Question
-----------------------------------
Nope. Not at all. This one has been a good bit back. Suffering major PTSD since then with memory loss. I do know that when you brought up the forum KB management setting or whatever it was, when I turned that off, that link error went away. When I turned it back on, it came back.

I actually have no installs at the moment. I did try to install one here a week or two ago I think it was and it was a complete miserable failure for some reason. I'll try again and see if I can replicate this and why or how.


**EDIT**

Today is 1/02/2019 and I had a chance to revisit this. I reinstalled a fresh IP and made sure everything was running as silky smooth as it possibly could. I then reinstalled the KB and no errors at all. The only way at all I could get this error to replicate was to tick the box in the forum for the KB to make the forum post read like a KB article comments (KB Mode). 

The only way that error went away without unticking that KB Mode in the forum setting was to alter the phpini xdebug on my server. I can 100% confirm the error went away when I added the xdebug nested 200 line to my phpini file AND left the KB Mode on in the forum settings. 

As I stated though in my previous post, a user will never see this error. Only an Admin or mod will. It still is not pretty and shouldn't be seen but, it is what it is. Alter the ini file or don't use Kb Mode or deal with a big long error.  As for the proper code to fix it, well, that is out of my area of expertise. I looked and nothing slapped me in the face as expected it wouldn't.


Now all that aside, would a user really use KB Mode for a forum thread that is a KB comments thread anyhow? I mean I did but I test. That is what I do. But realistically. But none the less, that error went on and on and on.  Glad I figured a small part of it out. If you need any screen shots of my ini file or my Icy setup or my server specs, by all means please do let me know. I'll be glad to share info.


-----------------------------------
Informpro
Tue 08 Jan, 2019 03:02

Re: Knowledge Base Error And Question
-----------------------------------
Ray, are you able to reproduce this on your local install(s) ATM? I'm still unable to.

Oops, just noticed that the kb_rate page had the header/footer twice...


-----------------------------------
MWE_001
Tue 08 Jan, 2019 11:01

Re: Knowledge Base Error And Question
-----------------------------------
I'll give ti a test install again and try. I should be able to if I can retrace my steps and reproduce exactly what happened.


