EzPortal - Portal Software for Forums

EzPortal Forums => Support => Topic started by: Shades on April 28, 2022, 12:18:49 pm

Title: Undefined index: href
Post by: Shades on April 28, 2022, 12:18:49 pm
SMF 2.1.1
ezPortal 5.5

After creating a new topic I get this error in logs:

Quote
Error
Type of error
Undefined_vars
Error message
8: Undefined index: href
File
/home/*****/public_html/Sources/Subs.php
Line
1801
URL of page causing the error
https://*****.com/?action=post;msg=40;topic=21.0

Backtrace information
#0: smf_error_handler()
Called from /home/*****/public_html/Sources/Subs.php on line 1801
#1: {closure}()
Called from /home/*****/public_html/Sources/Subs.php on line 3628
#2: parse_bbc()
Called from /home/*****/public_html/Sources/Subs-EzPortalMain2.php on line 756
#3: EzBlockRecentTopicsBlock()
Called from /home/*****/public_html/Themes/default/EzPortal2.1.template.php on line 1928
#4: ShowEzBlocks()
Called from /home/*****/public_html/Themes/default/EzPortal2.1.template.php on line 1975
#5: template_ezblock_below()
Called from /home/*****/public_html/Sources/Load.php on line 2807
#6: loadSubTemplate()
Called from /home/*****/public_html/Sources/Subs.php on line 4668
#7: template_footer()
Called from /home/*****/public_html/Sources/Subs.php on line 4157
#8: obExit()
Called from /home/*****/public_html/index.php on line 193
Title: Re: Undefined index: href
Post by: EzPortal on April 30, 2022, 12:11:26 pm
Can attach your sources/subs.php
Title: Re: Undefined index: href
Post by: Shades on April 30, 2022, 01:45:34 pm
 8)
Title: Re: Undefined index: href
Post by: Shades on May 16, 2022, 02:27:16 pm
I just edited that same topic with the image attachment and got this same error again. I think this is why I'm having problems as discussed in this topic (https://www.ezportal.com/support/imageattachment-display-issue/msg5013/?topicseen#new).

Here is my subs.php in case it changed from the last one I uploaded in the earlier post above. ;)
Title: Re: Undefined index: href
Post by: Shades on May 16, 2022, 02:58:21 pm
Looks like the line numbers changed so I may have added something but the above subs,php is the latest! ;)

Here is the updated error message:

Quote
Error
Type of error
Undefined_vars
Error message
8: Undefined index: href
File
/home/*****/public_html/Sources/Subs.php
Line
1809
URL of page causing the error
https://*****.com/?action=post;msg=40;topic=21.0

Backtrace information
#0: smf_error_handler()
Called from /home/*****/public_html/Sources/Subs.php on line 1809
#1: {closure}()
Called from /home/*****/public_html/Sources/Subs.php on line 3636
#2: parse_bbc()
Called from /home/*****/public_html/Sources/Subs-EzPortalMain2.php on line 756
#3: EzBlockRecentTopicsBlock()
Called from /home/*****/public_html/Themes/default/EzPortal2.1.template.php on line 1928
#4: ShowEzBlocks()
Called from /home/*****/public_html/Themes/default/EzPortal2.1.template.php on line 1975
#5: template_ezblock_below()
Called from /home/*****/public_html/Sources/Load.php on line 2810
#6: loadSubTemplate()
Called from /home/*****/public_html/Sources/Subs.php on line 4676
#7: template_footer()
Called from /home/*****/public_html/Sources/Subs.php on line 4165
#8: obExit()
Called from /home/*****/public_html/index.php on line 197
Title: Re: Undefined index: href
Post by: Shades on September 29, 2022, 07:05:13 pm
Hey VB, I did a new install SMF 2.1.2 and EzPortal 5.5.1 and still getting these errors when creating a new post.

Quote
Error
Type of error
Undefined_vars
Error message
8: Undefined index: href
File
/home/******/public_html/Sources/Subs.php
Line
1809
URL of page causing the error
https://******.com/?action=post;msg=81;topic=34.0

Backtrace information
#0: smf_error_handler()
Called from /home/******/public_html/Sources/Subs.php on line 1809
#1: {closure}()
Called from /home/******/public_html/Sources/Subs.php on line 3636
#2: parse_bbc()
Called from /home/******/public_html/Sources/Subs-EzPortalMain2.php on line 756
#3: EzBlockRecentTopicsBlock()
Called from /home/******/public_html/Themes/default/EzPortal2.1.template.php on line 1928
#4: ShowEzBlocks()
Called from /home/******/public_html/Themes/default/EzPortal2.1.template.php on line 1975
#5: template_ezblock_below()
Called from /home/******/public_html/Sources/Load.php on line 2810
#6: loadSubTemplate()
Called from /home/******/public_html/Sources/Subs.php on line 4676
#7: template_footer()
Called from /home/******/public_html/Sources/Subs.php on line 4165
#8: obExit()
Called from /home/******/public_html/index.php on line 194

Here is a copy of my new subs.php...
Title: Re: Undefined index: href
Post by: EzPortal on October 04, 2022, 06:29:11 pm
Copy this file to your sources folder and see if it helps.
Title: Re: Undefined index: href
Post by: Shades on October 04, 2022, 08:28:41 pm
I think that did the trick! No more errors after creating new post. Thank you! 8)
Title: Re: Undefined index: href
Post by: EzPortal on October 04, 2022, 08:49:59 pm
Glad that helped.