Support Forum

Sudden Error – Notice: Undefined property

LA Lachance
Lachance
Member

Hello, 

I have an error that suddently appeared on my forum. I didn’t do anything. Everything was working fine and I came back at a later time and I saw this error :

Notice: Undefined property: spUser::$location in /problem-with-post-edit-buttonome/guillau/public_html/csgoquebec.com/wp-content/plugins/simple-press/forum/profile/forms/sp-form-profile.php on line 104

Can anyone tell me how I can fix this please?

Could it be related to my host?

Thanks

6 Answers

New Answer

MP Mr Papa
Mr Papa
Member

that’s not an error, but a notice… a harmless message from php that something wasnt quite right…

the real issue here is that on a production site you should not be showing php notices or warnings, or even errors…  it potentially reveals info about your server…  you should really disable php error reporting on production sites…

if you enter something in your profile location it will go away too…  we normally check for existence first, but perhaps missed this one…  when notices get reported, we try to patch them up…

MP Mr Papa
Mr Papa
Member

sorry, didnt mean you have to fill in the location… just save the admin profile form…

MP Mr Papa
Mr Papa
Member

It’s a php setting to turn off the php error display…

LA Lachance
Lachance
Member

For some reason I was not realising the WP_DEBUG was on… sorry about that lol, my mistake :(

:D
YS Yellow Swordfish
Yellow Swordfish
Member

Ah yes – that will turn a lot of unwanted messages up!