SMF Support > SMF 2.0.x Support

Undefined Error

<< < (2/4) > >>

Marceline:

--- Quote from: Drover on April 12, 2012, 11:53:50 AM ---
--- Quote ---looks like you installed a mod which is not properly defining its variables...
--- End quote ---

That's what it looked like to me too. Is there any way to figure out what mod or what the correct variable is?


--- Quote ---Looks like a var added by a mod,  I guest the mod author wanted to check for a boolean or simply 1 or 0, checking for the var itself will generate that error, however if you check with an isset() or !empty()  then it will not generate the error.

By checking for the var itself the var must exists, it $disable_unhideafter = null;   if you check with an iset() or empty()  the var doesn't  necessary need to exists since the check itself if for existence,  a var can exists and still be null.
--- End quote ---

I have no idea what this means.  What is an isset() or an empty() and how does that help me fix this problem?  What exactly do I need to do?

--- End quote ---


What I mean is that is a common error to define vars on a conditional,  meaning there is always a chance that the var won't get defined, thus the error appear.

But it depends if the mod was successfully installed like MrPhil suggest.

Drover:

--- Quote from: MrPhil on April 12, 2012, 11:54:15 AM ---The first question to ask would be, "Did the mod say that it installed correctly, or were there errors reported?" If the mod was then uninstalled, "Did the mod say that it uninstalled correctly, or were there errors reported?" In either case, you could have ended up with a partial installation that used to (or should have) added code to define the variable, and now doesn't.

--- End quote ---

As I said before, I don't know what mod may have done this, but no I don't have any mods running that gave errors.

Marceline:
Guessing by the var name I would dare to say is something related to a "hide mod"  "hide something mod"

Do you have any mod that resembles those words?


Edit, oh, after checking the first bit of code:

// Second Option for unhide content, for special hide tag


Looks like Hide Tag Special mod.

Drover:
Where are these variables defined? So I can look and see if there is a something similar that's just not exactly correct in line 1405?

Drover:

--- Quote from: Suki on April 12, 2012, 12:03:10 PM ---Guessing by the var name I would dare to say is something related to a "hide mod"  "hide something mod"

Do you have any mod that resembles those words?
--- End quote ---

I was looking for something like that too, but nothing that looks like it.



--- Quote ---Edit, oh, after checking the first bit of code:

// Second Option for unhide content, for special hide tag


Looks like Hide Tag Special mod.

--- End quote ---

Yeah, I searched the forum and found that too before posting this. But no, I don't have that mod installed and never did.  It occurred that the same mod author might use similar code on multiple mods (does that make sense?), but I actually have a few mods from the ADK team. 

Thank-o-matic
Show your social networks
Redirect Error 404
Enhanced About Page

How would I check this?

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version