Undefined index: customsmiicon error?

Started by pepa, May 26, 2018, 03:01:29 AM

Previous topic - Next topic

pepa

Getting this error in the log:

https://reformaps.org/forum/index.php?topic=28.0
Undefined index: customsmiicon
File: /home2/reformaps/public_html/forum/Sources/Load.php
Line: 1362

Doesn't seem to affect anything.

Anyone have some info for me on this?

Kindred

You have installed a mod that is not fully defined.

Look at the code referenced in the error.
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

pepa

Quote from: Kindred on May 26, 2018, 05:19:00 PM
You have installed a mod that is not fully defined.

Look at the code referenced in the error.

Thanks Kindred,

The mod appears to be this one:

https://custom.simplemachines.org/mods/index.php?mod=3304

I made the changes suggested here -> https://www.simplemachines.org/community/index.php?topic=467074.msg3954993#msg3954993

line 1362 in Load.php is: 'customsmiicon' => $custom['customsmiicon'],

I've uploaded Load.php for anyone who may know what the issue is in that file.

Using SMF 2.0.15 with responsive curve 1.0.0


Aleksi "Lex" Kilpinen

It would seem you are not the only one who has run in to that issue, I tried to skim through a couple of pages of the mod's support topic and didn't immediately see a clear solution - but perhaps if you have a little time, try reading from here on http://www.simplemachines.org/community/index.php?topic=467074.msg3569250#msg3569250
Slava
Ukraini!


"Before you allow people access to your forum, especially in an administrative position, you must be aware that that person can seriously damage your forum. Therefore, you should only allow people that you trust, implicitly, to have such access." -Douglas

How you can help SMF

Sir Osis of Liver

If the mod is working correctly, and not causing any other problems, and you just want to eliminate the error, you can do this -



if (!isset($custom['customsmiicon']))
$custom['customsmiicon'] = null;

$memberContext[$user]['custom_fields'][] = array(
'title' => $custom['title'],
'colname' => $custom['colname'],
'value' => $value,
'placement' => !empty($custom['placement']) ? $custom['placement'] : 0,
'customsmiicon' => $custom['customsmiicon'],
);



  :P


Ashes and diamonds, foe and friend,
 we were all equal in the end.

                                     - R. Waters

pepa

Thanks Aleksi and Sir Osis : )

I'll have a read through the info you linked Aleksi ... if there's no real solution I'll keep an eye on things for awhile and them might apply your elimination solution Sir Osis ... so far I haven't noticed any problems, just the error message.

pepa

Quote from: Sir Osis of Liver on May 27, 2018, 02:23:10 AM
If the mod is working correctly, and not causing any other problems, and you just want to eliminate the error, you can do this -



if (!isset($custom['customsmiicon']))
$custom['customsmiicon'] = null;

$memberContext[$user]['custom_fields'][] = array(
'title' => $custom['title'],
'colname' => $custom['colname'],
'value' => $value,
'placement' => !empty($custom['placement']) ? $custom['placement'] : 0,
'customsmiicon' => $custom['customsmiicon'],
);



  :P

Actually, one question Sir Osis ... if I do decide to use this ... where in Load.php do I place this code?

Sir Osis of Liver

The first two lines are the fix, find the third line.  Last line is added by the mod.  If $custom['customsmiicon'] is uindefined it has no value, so we just assign it a value of null or " ", that defines it without actually changing anything.
Ashes and diamonds, foe and friend,
 we were all equal in the end.

                                     - R. Waters

Advertisement: