Daily Lucky Numbers:
2
13
20
29
42
43

Age and Last active missing from profile after EhPortal 1.39.5 installation

Started by Jailer, November 20, 2023, 06:29:01 PM

Previous topic - Next topic

Jailer

Working the kinks out of my freshly upgraded SMF 2.1.4 forum. I upgraded from 2.0.19 and was using Simple Portal 2.3.7 previously. As stated this is a fresh upgrade with no mods other than EhPortal installed.

The problem I'm encountering is when I click on my profile and the Summary page is displayed the age is blank and it's missing the entire Last Active line. Also clicking on my profile generates 4 errors in the error log. Clicking on any other members profile displays the summary page correctly with all the information. If I un install EhPortal and then click on my profile all the missing information is displayed correctly and there are no errors. Any help you can offer would be great so I can get this forum up and live.

The errors are listed below.
Error
Type of error
Undefined_vars
Error message
2: Undefined array key "show_last_login"
File
/usr/local/www/nginx/Themes/default/Profile.template.php
Line
429
URL of page causing the error
http://192.168.0.5/index.php?action=profile;u=2
Backtrace information

    #0: smf_error_handler()
    Called from /usr/local/www/nginx/Themes/default/Profile.template.php on line 429
    #1: template_summary()
    Called from /usr/local/www/nginx/Sources/Load.php on line 2778
    #2: loadSubTemplate()
    Called from /usr/local/www/nginx/Sources/Subs.php on line 4214
    #3: obExit()
    Called from /usr/local/www/nginx/index.php on line 187


Error
Type of error
Undefined_vars
Error message
2: Undefined array key "today_is_birthday"
File
/usr/local/www/nginx/Themes/default/Profile.template.php
Line
323
URL of page causing the error
http://192.168.0.5/index.php?action=profile;u=2
Backtrace information

    #0: smf_error_handler()
    Called from /usr/local/www/nginx/Themes/default/Profile.template.php on line 323
    #1: template_summary()
    Called from /usr/local/www/nginx/Sources/Load.php on line 2778
    #2: loadSubTemplate()
    Called from /usr/local/www/nginx/Sources/Subs.php on line 4214
    #3: obExit()
    Called from /usr/local/www/nginx/index.php on line 187


Error
Type of error
Undefined_vars
Error message
2: Undefined array key "age"
File
/usr/local/www/nginx/Themes/default/Profile.template.php
Line
323
URL of page causing the error
http://192.168.0.5/index.php?action=profile;u=2
Backtrace information

    #0: smf_error_handler()
    Called from /usr/local/www/nginx/Themes/default/Profile.template.php on line 323
    #1: template_summary()
    Called from /usr/local/www/nginx/Sources/Load.php on line 2778
    #2: loadSubTemplate()
    Called from /usr/local/www/nginx/Sources/Subs.php on line 4214
    #3: obExit()
    Called from /usr/local/www/nginx/index.php on line 187


Error
Type of error
Undefined_vars
Error message
2: Undefined array key "posts_per_day"
File
/usr/local/www/nginx/Themes/default/Profile.template.php
Line
304
URL of page causing the error
http://192.168.0.5/index.php?action=profile;u=2
Backtrace information

    #0: smf_error_handler()
    Called from /usr/local/www/nginx/Themes/default/Profile.template.php on line 304
    #1: template_summary()
    Called from /usr/local/www/nginx/Sources/Load.php on line 2778
    #2: loadSubTemplate()
    Called from /usr/local/www/nginx/Sources/Subs.php on line 4214
    #3: obExit()
    Called from /usr/local/www/nginx/index.php on line 187


Chen Zhen


I deleted your (almost) duplicate post due to my anti-spam flagging them for some reason.



For the moment I'm not able to duplicate the errors you are reporting.
Both my own profile & other profiles that have their age entered or not are working fine when tested.
Does this issue occur on the default theme or only on a custom theme?
Are you using EhPortal v1.39.5 ?

Jailer

Default theme and I'm using v1.39.5. I'll try uploading a fresh set of files and see if that changes the behavior.

EDIT: Just uploaded a fresh set of file, re installed ehportal and I'm still getting the same behavior.

Jailer

Made my test site available and had one of the other members log on and try viewing their own profile and it generates the same 4 errors in the log. So this seems to happen to all users when viewing their own profile but not when viewing others. Not sure what to do about it at this point.

Chen Zhen


I just attempted to duplicate your issue on a new SMF environment with nothing installed except EhPortal.
Enabling/disabling the SMF user setting to show online status doesn't result in any error.
The only thing EhPortal adds to the user profile is 2 options for its shoutbox but they're displayed in a different SMF template.

I suppose it's possible that a custom
 PHP block is causing the error.
Do you have any active custom blocks visible when on the user profile?
If you do.. temporarily disable them for a test.

Do you have any other mods installed that may alter user profiles?