Advertisement:

Author Topic: Undefined Index errors in logs  (Read 742 times)

Offline Dsr-reefing

  • Newbie
  • *
  • Posts: 9
Undefined Index errors in logs
« on: February 04, 2020, 07:00:08 AM »
Hi,

I am getting these errors:

Type of error: Undefined

8: Undefined index:
xxxxxxxx/forum/index.php?action=calendar;viewmonth;year=2023;month=7;day=22
/storage/content/47/1002647/xxxxxx/public_html/forum/Sources/Subs.php (Line 3096)

Already checked the smiley settings and corrected them, still get these errors



Offline Dzonny

  • Localizer
  • SMF Super Hero
  • *
  • Posts: 12,265
  • Gender: Male
  • No sleep...
    • dzontra.nikola on Facebook
    • Dzonny on GitHub
    • dzontranikola on LinkedIn
    • @opusteniforum on Twitter
    • Samo opusteno
Re: Undefined Index errors in logs
« Reply #1 on: February 04, 2020, 07:19:15 AM »
Hello there.
Which version are you using? Did you download it from our site?
Can we see the URL?

Offline Illori

  • Project Manager
  • SMF Legend
  • *
  • Posts: 52,565
Re: Undefined Index errors in logs
« Reply #2 on: February 04, 2020, 07:22:30 AM »
also what is the full error message, undefined index of what?

Offline Dsr-reefing

  • Newbie
  • *
  • Posts: 9
Re: Undefined Index errors in logs
« Reply #3 on: February 04, 2020, 10:07:59 AM »
Hello there.
Which version are you using? Did you download it from our site?
Can we see the URL?

Version 2.1 RC2 with no mods at all.

hxxp:www.dsrreefing.nl/forum [nonactive]

Error only shown in the logs in the administration


Offline Dsr-reefing

  • Newbie
  • *
  • Posts: 9
Re: Undefined Index errors in logs
« Reply #4 on: February 04, 2020, 10:11:27 AM »
also what is the full error message, undefined index of what?

The full error message is as shown in my starting post!

Offline Illori

  • Project Manager
  • SMF Legend
  • *
  • Posts: 52,565
Re: Undefined Index errors in logs
« Reply #5 on: February 04, 2020, 10:13:42 AM »
it is missing what the undefined index is of. without that it is hard to tell you what needs to be done to fix it.

Offline Dsr-reefing

  • Newbie
  • *
  • Posts: 9
Re: Undefined Index errors in logs
« Reply #6 on: February 04, 2020, 10:23:09 AM »
it is missing what the undefined index is of. without that it is hard to tell you what needs to be done to fix it.

It is not missing anything, see the screendump of the error messages.


Offline Illori

  • Project Manager
  • SMF Legend
  • *
  • Posts: 52,565
Re: Undefined Index errors in logs
« Reply #7 on: February 04, 2020, 10:27:15 AM »
there is an icon next to undefined, click on that and post us what it shows.

Offline live627

  • Developer
  • SMF Hero
  • *
  • Posts: 5,791
  • Gender: Male
    • live627 on Facebook
    • live627 on GitHub
    • live627 on LinkedIn
    • @live627 on Twitter
    • livemods
Re: Undefined Index errors in logs
« Reply #8 on: February 04, 2020, 10:29:53 AM »
The git tag leads me to a docblock

https://github.com/SimpleMachines/SMF2.1/blob/v2.1-rc.2/Sources/Subs.php#L3096

Click on the filename in the log and paste the lines of code here. I suspect it's somewhere near what I posted.

Offline Dsr-reefing

  • Newbie
  • *
  • Posts: 9
Re: Undefined Index errors in logs
« Reply #9 on: February 04, 2020, 10:31:33 AM »
there is an icon next to undefined, click on that and post us what it shows.

See the new screendump for extra information

Offline Dsr-reefing

  • Newbie
  • *
  • Posts: 9
Re: Undefined Index errors in logs
« Reply #10 on: February 04, 2020, 10:37:31 AM »
The git tag leads me to a docblock

hxxp:github.com/SimpleMachines/SMF2.1/blob/v2.1-rc.2/Sources/Subs.php#L3096 [nonactive]

Click on the filename in the log and paste the lines of code here. I suspect it's somewhere near what I posted.

I made a screendump of the lines of code

Offline Dsr-reefing

  • Newbie
  • *
  • Posts: 9
Re: Undefined Index errors in logs
« Reply #11 on: February 04, 2020, 10:47:18 AM »
It has something to do with the smileys.

When i set the smileys to Off     in   Current Theme -> Select default smiley set for this theme: ->  No Smileys

Then the error is gone!
 

Offline live627

  • Developer
  • SMF Hero
  • *
  • Posts: 5,791
  • Gender: Male
    • live627 on Facebook
    • live627 on GitHub
    • live627 on LinkedIn
    • @live627 on Twitter
    • livemods
Re: Undefined Index errors in logs
« Reply #12 on: February 04, 2020, 10:59:26 AM »
When did the errors start?
Do you have any cache enabled?

Offline Dsr-reefing

  • Newbie
  • *
  • Posts: 9
Re: Undefined Index errors in logs
« Reply #13 on: February 04, 2020, 11:08:15 AM »
When did the errors start?
Do you have any cache enabled?
Really don't know when the errors started. i guess right after upgrading to RC2

Cache is off

Online shawnb61

  • Developer
  • SMF Hero
  • *
  • Posts: 2,278
    • sbulen on GitHub
Re: Undefined Index errors in logs
« Reply #14 on: February 04, 2020, 11:17:27 AM »
This is confirmed & had been logged earlier as: https://github.com/SimpleMachines/SMF2.1/issues/5990

The line # is different, likely due to a mod, but the trace is the same.

I only started seeing it very recently with the latest github.

I have been able to reproduce, by navigating to & then off of a post that has a smiley in it...

Address the process rather than the outcome.  Then, the outcome becomes more likely.   - Fripp

Offline Dsr-reefing

  • Newbie
  • *
  • Posts: 9
Re: Undefined Index errors in logs
« Reply #15 on: February 04, 2020, 11:23:51 AM »
This is confirmed & had been logged earlier as: hxxp:github.com/SimpleMachines/SMF2.1/issues/5990 [nonactive]

The line # is different, likely due to a mod, but the trace is the same.

I only started seeing it very recently with the latest github.

I have been able to reproduce, by navigating to & then off of a post that has a smiley in it...

And what is the solution to this?

It's really flooding my error logs. Everytime someone visits just the home url of my forum or when i go to the Admin section a new error is added.
When i refresh that main page you can see the error log is counting up.

There are no smileys on the main pages of the forum or admin section

Online shawnb61

  • Developer
  • SMF Hero
  • *
  • Posts: 2,278
    • sbulen on GitHub
Re: Undefined Index errors in logs
« Reply #16 on: February 04, 2020, 02:19:05 PM »
No solution at this time.

I will move this thread to the Bug Reports board so it will get updated when fixed. 
Address the process rather than the outcome.  Then, the outcome becomes more likely.   - Fripp

Online shawnb61

  • Developer
  • SMF Hero
  • *
  • Posts: 2,278
    • sbulen on GitHub
Re: Undefined Index errors in logs
« Reply #17 on: February 04, 2020, 05:18:40 PM »
I have found that level-1 smf caching helps.  The error is only logged when reloading smileys.  If cached, it doesn't do that often. 
Address the process rather than the outcome.  Then, the outcome becomes more likely.   - Fripp

Online shawnb61

  • Developer
  • SMF Hero
  • *
  • Posts: 2,278
    • sbulen on GitHub
Re: Undefined Index errors in logs
« Reply #18 on: February 05, 2020, 05:55:47 PM »
Dsr-reefing -

We believe we have a solution to this problem, which can be found here:
https://github.com/SimpleMachines/SMF2.1/pull/6003/files

It would be very helpful to know if this resolves your issue.

Thanks,
Address the process rather than the outcome.  Then, the outcome becomes more likely.   - Fripp

Online shawnb61

  • Developer
  • SMF Hero
  • *
  • Posts: 2,278
    • sbulen on GitHub
Re: Undefined Index errors in logs
« Reply #19 on: February 13, 2020, 12:22:07 AM »
That fix has been merged, and the issue should be resolved.

Upgrade to the latest version of 2.1 from Github & you'll be fine.

I'm moving this to the closed board.
Address the process rather than the outcome.  Then, the outcome becomes more likely.   - Fripp