News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

Problems In Subs.php

Started by Lone Defiler, December 26, 2010, 03:27:24 PM

Previous topic - Next topic

Lone Defiler

I'm not sure whether or not this involves SMF or a modification, but I am having three errors appearing when I include SSI.php in a php file to add a user's information to the script. I believe it is due to a variable not being defined.

The errors are:

Notice: Undefined index: hide_preparedOption in /home/s/public_html/c/Sources/Subs.php on line 1585

Notice: Undefined index: hide_preparedOption in /home/s/public_html/c/Sources/Subs.php on line 1586

Notice: Undefined index: hide_preparedOption in /home/s/public_html/c/Sources/Subs.php on line 1675

This is preventing me from releasing a script to my users. Any help would be greatly appreciated.

Thank you,

Lone Defiler


Lone Defiler

1.    Member Color Link    3.0.8    
2.    SimplePortal    2.3.2    
3.    Referrals Mod

NanoSector

My Mods / Mod Builder - A tool to easily create mods / Blog
"I've heard from a reliable source that the Answer is 42. But, still no word on what the question is."

Lone Defiler


NanoSector

	
	
	
array(
	
	
	
	
'tag' => 'hide',
	
	
	
	
'before' => $modSettings['hide_preparedOption']['before_info'],
	
	
	
	
'after' => $modSettings['hide_preparedOption']['after_info'],
	
	
	
	
'block_level' => true,
	
	
	
),


Rawr. The code that gives errors.

It says the $modsettings variables that are requested aren't found.

In line 1675 as well.

Are you 100% sure you correctly installed the mod?
My Mods / Mod Builder - A tool to easily create mods / Blog
"I've heard from a reliable source that the Answer is 42. But, still no word on what the question is."

Tyrsson

You can always pass $modsettings to either var_dump(); or print_r(); and have it output what is in the modSettings array to see if those values are set..... Maybe..
PM at your own risk, some I answer, if they are interesting, some I ignore.

Lone Defiler

Quote from: Simple Series on December 26, 2010, 04:39:16 PM
	
	
	
array(
	
	
	
	
'tag' => 'hide',
	
	
	
	
'before' => $modSettings['hide_preparedOption']['before_info'],
	
	
	
	
'after' => $modSettings['hide_preparedOption']['after_info'],
	
	
	
	
'block_level' => true,
	
	
	
),


Rawr. The code that gives errors.

It says the $modsettings variables that are requested aren't found.

In line 1675 as well.

Are you 100% sure you correctly installed the mod?

I deleted the modification and the code now works fine.

Thank you everyone for the help.

Advertisement: