• Welcome to Simple Machines Community Forum. Please login or sign up.
December 06, 2021, 05:15:41 AM

News:

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


Avatars Display Integration

Started by Pipke, February 15, 2020, 07:43:21 PM

Previous topic - Next topic

Shades.

Getting these error when guests click on avatar/profile:

QuoteGuest
107.77.200.135
c2c254de731143a3b06646e582f40b17
https://*****.com/*****/index.php?action=profile;u=1
/home2/*****/public_html/*****/Sources/AvatarsDisplayIntegration.php (Line 178)

Type of error: Undefined
Error messageSelect
8: Undefined index: profile_of

QuoteType of error
Undefined_vars
Error message
8: Undefined index: profile_of
File
/home2/*****/public_html/*****/*****/Sources/AvatarsDisplayIntegration.php
Line
178
URL of page causing the error
https://*****.com/*****/index.php?action=profile;u=1
Backtrace information
#0: smf_error_handler()
Called from /home2/*****/public_html/*****/*****/Sources/AvatarsDisplayIntegration.php on line 178
#1: adi_status_data()
Called from /home2/*****/public_html/*****/*****/Sources/AvatarsDisplayIntegration.php on line 481
#2: adi_integrate_member_context()
Called from /home2/*****/public_html/*****/*****/Sources/Subs.php on line 5154
#3: call_integration_hook()
Called from /home2/*****/public_html/*****/*****/Sources/Load.php on line 1830
#4: loadMemberContext()
Called from /home2/*****/public_html/*****/*****/Sources/Profile.php on line 63
#5: ModifyProfile()
Called from /home2/*****/public_html/*****/*****/index.php on line 187

ShadesWeb.com - Custom Logos
https://shadesweb.com

BikerHound.com - Sniffing out the road ahead
https://bikerhound.com

Dream as if you'll live forever; Live as if you'll die today. - James Dean

marcosbr

Sorry the English. I'm curious.  8)
Within AvatarsDisplayIntegration.php there are 4 profile_of. I cut _of and left only profile. I tested it and everything worked normal!
I'm just trying to collaborate with you or someone to "correctly" solve the problem. I'm just stubborn about testing everything by following the bug tips. I save all the originals and go testing!

marcosbr


Pipke

Fixed Undefined index global $txt var "profile_of", this var doesnt exist anymore in 2.1 RC4, latest version is now 1.4

thanks to marcosbr and Shades for the report.
"If something is wrong, fix it if you can. But train yourself not to worry: Worry never fixes anything."

Click here to view my mods for SMF

Hey 👋 Did i helped... you like what i do. You can now buy me a coffee! ☕

Shades.

Quote from: Pipke on August 03, 2021, 03:38:55 PM
Fixed Undefined index global $txt var "profile_of", this var doesnt exist anymore in 2.1 RC4, latest version is now 1.4

thanks to marcosbr and Shades for the report.
Thanks for the update Pipke works great! 8)

ShadesWeb.com - Custom Logos
https://shadesweb.com

BikerHound.com - Sniffing out the road ahead
https://bikerhound.com

Dream as if you'll live forever; Live as if you'll die today. - James Dean

Speed King

August 03, 2021, 10:55:50 PM #65 Last Edit: August 03, 2021, 11:18:44 PM by Speed King
After installing new 1.4 version, I still get errors:

PHP Warning:  Undefined array key "profile_of" in /home/***/public_html/BNF/Sources/AvatarsDisplayIntegration.php on line 720
PHP Warning:  Undefined array key "profile_of" in /home/***/public_html/BNF/Sources/AvatarsDisplayIntegration.php on line 737


Version Information:
Forum version: SMF 2.1 RC4 (more detailed)
Current SMF version: SMF 2.1 RC4
GD version: bundled (2.1.0 compatible)
MySQL engine: MariaDB
MySQL version: 10.3.30-MariaDB-log
SMF file based caching: 2.1 RC4
SQLite3 database based caching: 3.7.17
PHP: 8.0.8 (more detailed)
Server version: Apache

Pipke

Quote from: Speed King on August 03, 2021, 10:55:50 PM
After installing new 1.4 version, I still get errors:

PHP Warning:  Undefined array key "profile_of" in /home/***/public_html/BNF/Sources/AvatarsDisplayIntegration.php on line 720
PHP Warning:  Undefined array key "profile_of" in /home/***/public_html/BNF/Sources/AvatarsDisplayIntegration.php on line 737


thx for the report, it should be fixed now, latest mod version is now 1.4.1
"If something is wrong, fix it if you can. But train yourself not to worry: Worry never fixes anything."

Click here to view my mods for SMF

Hey 👋 Did i helped... you like what i do. You can now buy me a coffee! ☕

Speed King

Thanks for the fix, with new version 1.4.1 reported errors are gone :)

pocttopus

Hello,

A lot of error still occurs with the latest v1.4.1 (smf 2.1rc4):

8: Trying to access array offset on value of type null

/home/xxx/public_html/Sources/AvatarsDisplayIntegration.php (Line 163)
/home/xxx/public_html/Sources/AvatarsDisplayIntegration.php (Line 164)

Pipke

Quote from: pocttopus on August 04, 2021, 10:45:53 AM
Hello,

A lot of error still occurs with the latest v1.4.1 (smf 2.1rc4):

8: Trying to access array offset on value of type null

/home/xxx/public_html/Sources/AvatarsDisplayIntegration.php (Line 163)
/home/xxx/public_html/Sources/AvatarsDisplayIntegration.php (Line 164)


thx for the report agian ;( , it should be fixed now, latest mod version is now 1.4.2
"If something is wrong, fix it if you can. But train yourself not to worry: Worry never fixes anything."

Click here to view my mods for SMF

Hey 👋 Did i helped... you like what i do. You can now buy me a coffee! ☕

Speed King

Is it possible to increase avatar size in user menu to default size of 100px?
I'm looking in css file, but cannot find the appropriate code.

Click =>

Pipke

Quote from: Speed King on September 07, 2021, 10:02:54 AMIs it possible to increase avatar size in user menu to default size of 100px?
I'm looking in css file, but cannot find the appropriate code.

Click =>

The mod uses max. 65px instead of 100px, so anyway for 65px image do these edits in AvatarsDisplayIntegration.css

Code (find) Select
#profileview .avatar {
Code ("replace by") Select
#profileview .avatar, #profile_menu .avatar {

Code (find) Select
li.avatar, .avatar, .poster .avatar[data-adi~="avatar"], #profileview .avatar[data-adi~="avatar"], #profileview .adi_item_context {
Code ("replace by") Select
li.avatar, .avatar, .poster .avatar[data-adi~="avatar"], #profileview .avatar[data-adi~="avatar"], #profileview .adi_item_context, #profile_menu .profile_user_avatar .adi_item_context img {

Code (find) Select
li.avatar [data-adi~="inner"], #profileview [data-adi~="inner"] {
Code ("replace by") Select
li.avatar [data-adi~="inner"], #profileview [data-adi~="inner"], #profile_menu [data-adi~="inner"] {

Code (find) Select
#profileview [data-adi~="back"] {
Code ("replace by") Select
#profileview [data-adi~="back"], #profile_menu [data-adi~="back"] {

Code (find) Select
#profileview [data-adi~="front"] {
Code ("replace by") Select
#profileview [data-adi~="front"], #profile_menu [data-adi~="front"] {

thats it ;)

"If something is wrong, fix it if you can. But train yourself not to worry: Worry never fixes anything."

Click here to view my mods for SMF

Hey 👋 Did i helped... you like what i do. You can now buy me a coffee! ☕

Pipke

"If something is wrong, fix it if you can. But train yourself not to worry: Worry never fixes anything."

Click here to view my mods for SMF

Hey 👋 Did i helped... you like what i do. You can now buy me a coffee! ☕

Speed King

Thanks, now avatar size in user menu is 100px :)

Click =>

Shades.

Just got an error 500 blank page after starting a new topic with this mod installed. Here are the two errors I got in admin...

QuoteError
Type of error
General
Error message
8: Trying to access array offset on value of type null
File
/home2/*****/public_html/*****/Sources/AvatarsDisplayIntegration.php
Line
356
URL of page causing the error
https://*****.com/index.php?/topic,2.msg4.html
Backtrace information
#0: smf_error_handler()
Called from /home2/*****/public_html/*****/Sources/AvatarsDisplayIntegration.php on line 356
#1: adi_load_data()
Called from /home2/*****/public_html/*****/Sources/AvatarsDisplayIntegration.php on line 452
#2: adi_integrate_display_buttons()
Called from /home2/*****/public_html/*****/Sources/Subs.php on line 5213
#3: call_integration_hook()
Called from /home2/*****/public_html/*****/Sources/Display.php on line 1346
#4: Display()
Called from /home2/*****/public_html/*****/index.php on line 18

QuoteError
Type of error
Undefined_vars
Error message
8: Undefined variable: smcFunc
File
/home2/*****/public_html/*****/Sources/AvatarsDisplayIntegration.php
Line
356
URL of page causing the error
https://*****.com/index.php?/topic,2.msg4.html
Backtrace information
#0: smf_error_handler()
Called from /home2/*****/public_html/*****/Sources/AvatarsDisplayIntegration.php on line 356
#1: adi_load_data()
Called from /home2/*****/public_html/*****/Sources/AvatarsDisplayIntegration.php on line 452
#2: adi_integrate_display_buttons()
Called from /home2/*****/public_html/*****/Sources/Subs.php on line 5213
#3: call_integration_hook()
Called from /home2/*****/public_html/*****/Sources/Display.php on line 1346
#4: Display()
Called from /home2/*****/public_html/*****/index.php on line 187

When I uninstalled it my post was there and I was able to start a new topic again. I have it installed on other sites with same mods, actually this one has the least mods, but it works great on the other sites. Any ideas?

2.1RC4
Avatars Display Integration 1.4.2

Mods installed

1 Contact Page 6.0 Sep 21, 2021, 02:12 PM UNINSTALL LIST FILES DELETE
2 Forum Width Setting 1.2 Sep 21, 2021, 01:41 PM UNINSTALL EMULATING: 2.1RC3 LIST FILES DELETE
3 Ultimate Menu 1.0.3 Sep 21, 2021, 01:54 PM UNINSTALL EMULATING: 2.0 LIST FILES DELETE
4 BBC You 2.2 Sep 21, 2021, 10:25 PM UNINSTALL LIST FILES DELETE
5 Paragrapher 2.4 Sep 21, 2021, 09:53 PM UNINSTALL LIST FILES DELETE
6 Custom_Top_menu 1.4 Sep 21, 2021, 09:08 PM UNINSTALL LIST FILES DELETE
7 Avatars Display Integration 1.4.2 Today at 02:35 AM UNINSTALL LIST FILES DELETE
8 Similar Topics 1.1.1 Sep 21, 2021, 09:11 PM UNINSTALL LIST FILES DELETE
9 New Topic Button 1.0 Sep 21, 2021, 09:47 PM UNINSTALL LIST FILES DELETE
10 Menu Order 0.2.6 Sep 21, 2021, 09:06 PM UNINSTALL EMULATING: 2.0 LIST FILES DELETE
11 Alternate User Posting 2.1 Sep 21, 2021, 09:26 PM UNINSTALL LIST FILES DELETE
12 BBC Message Boxes 3.0.1 Sep 21, 2021, 09:21 PM UNINSTALL LIST FILES DELETE
13 Admin Notepad 2.0.2 Sep 21, 2021, 09:37 PM UNINSTALL LIST FILES DELETE
14 SMF Optimus 2.9.4 [06.08.20] Sep 21, 2021, 02:19 PM UNINSTALL LIST FILES DELETE
15 Google Analytics Code 1.5.1 Sep 21, 2021, 09:15 PM UNINSTALL EMULATING: 2.0 LIST FILES DELETE
16 RSS Feed Icon 1.1 Sep 21, 2021, 09:39 PM UNINSTALL LIST FILES DELETE
17 GDPR Pro 2.0.6d Sep 21, 2021, 02:13 PM UNINSTALL LIST FILES DELETE
18 Profile Moderator Management 3.0.1 Sep 21, 2021, 09:25 PM UNINSTALL LIST FILES DELETE
19 Profile Starsigns 0.3 Sep 21, 2021, 09:22 PM UNINSTALL EMULATING: 2.1RC3 LIST FILES DELETE
20 Welcome Topic Mod 2.3b Sep 21, 2021, 09:54 PM UNINSTALL LIST FILES DELETE
21 ICAP: Info Center Access Permission 1.0.0 Sep 21, 2021, 09:59 PM UNINSTALL EMULATING: 2.0 LIST FILES DELETE
22 Anti-spam by CleanTalk 2.35 Sep 21, 2021, 02:07 PM UNINSTALL LIST FILES DELETE
23 EhPortal 1.30 Sep 21, 2021, 10:34 PM UNINSTALL LIST FILES DELETE
24 Ad Seller Pro 3.0.4 Sep 21, 2021, 10:21 PM UNINSTALL LIST FILES DELETE
25 Curve2 Color Changer 1.2 Sep 21, 2021, 01:34 PM UNINSTALL LIST FILES DELETE

ShadesWeb.com - Custom Logos
https://shadesweb.com

BikerHound.com - Sniffing out the road ahead
https://bikerhound.com

Dream as if you'll live forever; Live as if you'll die today. - James Dean

Pipke

Quote from: Shades. on September 23, 2021, 10:50:32 PMJust got an error 500 blank page after starting a new topic with this mod installed. Here are the two errors I got in admin...

think i found the problem

in file .../Sources/AvatarsDisplayIntegration.php at line 347
Code (find) Select
    global $image_proxy_enabled, $user_info, $modSettings, $context;

Code (replace by) Select
    global $image_proxy_enabled, $user_info, $modSettings, $context, $smcFunc;

let me know if this solves the 2 errors.



"If something is wrong, fix it if you can. But train yourself not to worry: Worry never fixes anything."

Click here to view my mods for SMF

Hey 👋 Did i helped... you like what i do. You can now buy me a coffee! ☕

Shades.

I think that did the trick, thanks! :)  8)

ShadesWeb.com - Custom Logos
https://shadesweb.com

BikerHound.com - Sniffing out the road ahead
https://bikerhound.com

Dream as if you'll live forever; Live as if you'll die today. - James Dean

Advertisement: