Simple Machines Community Forum

SMF Support => SMF 2.1.x Support => Topic started by: Snow-Man on May 02, 2024, 02:14:22 PM

Title: Im getting random errors
Post by: Snow-Man on May 02, 2024, 02:14:22 PM
Hello guys,

last days im getting different errors and didn't know how to stop or fix it

these one of the errors

General errors :
QuoteGuest
 XX.XXX.XX.XXX
 789844761332b901ee44ac155aa7dab0

 /homepages/21/d38531796/htdocs/fear/forum/Sources/Subs.php (Line 4548)  Backtrace information

Type of error: General
Error messageSelect
2: foreach() argument must be of type array|object, null given

QuoteGuest
 XX.XX.XX.XXX
 789844761332b901ee44ac155aa7dab0
/homepages/21/d38531796/htdocs/fear/forum/Sources/Subs.php (Line 4548)  Backtrace information

Type of error: Undefined
Error messageSelect
2: Undefined array key "template_layers"

QuoteGuest
 XX.XXX.XX.XXX
 789844761332b901ee44ac155aa7dab0
 /homepages/21/d38531796/htdocs/fear/forum/Sources/Subs.php (Line 5563)  Backtrace information

Type of error: Undefined
Error messageSelect
2: Undefined array key "can_register"

Quote2: Undefined array key "is_guest"

Quote2: Undefined array key "id"


CRITICAL

QuoteXX.XXX.XXX.XXX
 46de41a912bdaeb1a1c88685344a7ef1
 index.php?action=admin;area=viewmembers;sa=browse;type=approve  Backtrace information

Type of error: Critical
Error message
Administration login attempt!
Referrer: index.php?action=admin;area=viewmembers;sa=browse;type=approve
User agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/124.0.0.0 Safari/537.36
IP: XX.XXX.XXX.XX

Quote/homepages/21/d38531796/htdocs/fear/forum/Sources/Subs.php (Line 4548)

Type of error: General
Error message
2: foreach() argument must be of type array|object, null given

Title: Re: Im getting random errors
Post by: Kindred on May 02, 2024, 02:31:48 PM
Smf version?
Mods installed?
Php version?

Theme?
Url?

It looks like you have mods which are not fully installed and/or support the php version you use.
Title: Re: Im getting random errors
Post by: Snow-Man on May 02, 2024, 02:37:48 PM
Quote from: Kindred on May 02, 2024, 02:31:48 PMSmf version?
Mods installed?
Php version?

Theme?
Url?

It looks like you have mods which are not fully installed and/or support the php version you use.
im using the latest smf version 2.1.4
These are mods
QuoteTop Stats
Members Online Today
Attachment Browser
Video Embed
Search Engine BBC
Topic Solved
Board Sorting Method
Top Replies
Say Thanks
My Read_Topics
Mod Version Checker
MPAAP
SMF 2.1.4 Update
Stop Forum Spam
Yet Another YouTube BBCode Tag
Simple Audio Video Embedder

php version is 7 as i remember

default theme : Core Theme
Title: Re: Im getting random errors
Post by: Steve on May 02, 2024, 02:40:45 PM
Where did you get the core theme for v2.1.4?
Title: Re: Im getting random errors
Post by: Snow-Man on May 02, 2024, 02:42:40 PM
Quote from: Steve on May 02, 2024, 02:40:45 PMWhere did you get the core theme for v2.1.4?
default installation
Title: Re: Im getting random errors
Post by: Steve on May 02, 2024, 02:45:56 PM
Um ... 2.1.4 doesn't have a core theme as far as I know. The default theme is called Curve2.
Title: Re: Im getting random errors
Post by: Snow-Man on May 02, 2024, 02:47:35 PM
Quote from: Steve on May 02, 2024, 02:45:56 PMUm ... 2.1.4 doesn't have a core theme as far as I know. The default theme is called Curve2.
i dont remember that i have added another theme, i kept it how it is. is it the problem about these errors?
Title: Re: Im getting random errors
Post by: Steve on May 02, 2024, 02:50:51 PM
Installing 2.1.4 would have automatically made your default theme Curve2 and gotten rid of Core. I'm not a coder so I can't answer your question specifically but the fact you have the Core theme as default concerns me.
Title: Re: Im getting random errors
Post by: Snow-Man on May 02, 2024, 02:52:32 PM
Quote from: Steve on May 02, 2024, 02:50:51 PMInstalling 2.1.4 would have automatically made your default theme Curve2 and gotten rid of Core. I'm not a coder so I can't answer your question specifically but the fact you have the Core theme as default concerns me.
literally forget about that, still remember that i have done anything to the forum, just added some mods and nothing else
Title: Re: Im getting random errors
Post by: Steve on May 02, 2024, 02:53:33 PM
When you go to your profile and then look and layout, is Curve2 an option?
Title: Re: Im getting random errors
Post by: Snow-Man on May 02, 2024, 02:55:49 PM
Quote from: Steve on May 02, 2024, 02:53:33 PMWhen you go to your profile and then look and layout, is Curve2 an option?
its in the options i see Use this theme or preview theme.
Title: Re: Im getting random errors
Post by: Steve on May 02, 2024, 02:58:26 PM
Maybe I misremember about the Core theme then. I will have to let one of the coders take over.

It would be much easier for them if they had the URL to your forum.

Tagging @Kindred.
Title: Re: Im getting random errors
Post by: Doug Heffernan on May 02, 2024, 03:04:26 PM
Quote from: Snow-Man on May 02, 2024, 02:52:32 PMstill remember that i have done anything to the forum, just added some mods and nothing else

You are saying that as if it's no big deal when in fact it's a big deal. What mods did you install prior to the errors starting to pop up?
Title: Re: Im getting random errors
Post by: Snow-Man on May 02, 2024, 03:06:22 PM
Quote from: Doug Heffernan on May 02, 2024, 03:04:26 PM
Quote from: Snow-Man on May 02, 2024, 02:52:32 PMstill remember that i have done anything to the forum, just added some mods and nothing else

You are saying that as if it's no big deal when in fact it's a big deal. What mods did you install prior to the errors starting to pop up?
i dont remember which one because i have installed all of mods together, have downloaded all important mods
Title: Re: Im getting random errors
Post by: Sir Osis of Liver on May 02, 2024, 03:13:43 PM
Link to forum?

Core theme remains when 2.0 is upgraded to 2.1, but isn't accessible in 2.1.  Some users refer to Curve2 as core theme, that's probably the case here.
Title: Re: Im getting random errors
Post by: Kindred on May 02, 2024, 05:19:43 PM
If you are using core rather than curve2(aka default) then, yes, that would cause problems

I believe that stop forum spam may require at least php 8.0
Title: Re: Im getting random errors
Post by: Snow-Man on May 03, 2024, 03:46:25 PM
Quote from: Kindred on May 02, 2024, 05:19:43 PMIf you are using core rather than curve2(aka default) then, yes, that would cause problems

I believe that stop forum spam may require at least php 8.0

thank you guys for helping, i will change forum and see if i keep getting errors
Title: Re: Im getting random errors
Post by: Snow-Man on May 04, 2024, 05:31:18 AM
hello guys, i have changed theme to compatible one for my smf version yesterday but i kept getting these errors
i have installed this theme ProCurve (https://custom.simplemachines.org/index.php?theme=3014)
'undefined_vars'


 
Quote/homepages/21/d38531796/htdocs/fear/forum/Sources/Subs.php (Line 4560)

2: Undefined array key "template_layers"



 
Quote/homepages/21/d38531796/htdocs/fear/forum/Sources/Subs.php (Line 5575)

2: Undefined array key "can_register"


 
Quote/homepages/21/d38531796/htdocs/fear/forum/Sources/Subs.php (Line 5565)

2: Undefined array key "session_id"


 
Quote/homepages/21/d38531796/htdocs/fear/forum/Sources/Subs.php (Line 5565)

2: Undefined array key "session_var"



 
Quote/homepages/21/d38531796/htdocs/fear/forum/Sources/Subs.php (Line 5419)

2: Undefined array key "id"


Quote/homepages/21/d38531796/htdocs/fear/forum/Sources/Subs.php (Line 5410)

2: Undefined array key "id"



 
Quote/homepages/21/d38531796/htdocs/fear/forum/Sources/Subs.php (Line 5405)

2: Undefined array key "is_guest"




 
Quote/homepages/21/d38531796/htdocs/museum/forum/Sources/Subs.php (Line 5386)

2: Undefined array key "can_mod"



General


 
Quote/homepages/21/d38531796/htdocs/fear/forum/Sources/Subs.php (Line 4560)

2: foreach() argument must be of type array|object, null given
Title: Re: Im getting random errors
Post by: Steve on May 04, 2024, 07:40:40 AM
You didn't do what was suggested though. Can you change your PHP version to at least 8.0?

On top of that, you've been asked a number of times for the url of your forum. Without that, we're flying blind here. If you'd rather not post it publicly, PM it to me and I'll make sure only the right people see it.

And again, when you say 'Core' theme, are you actually meaning the Core them from 2.0.x or the Curve2 theme from 2.1.x?
Title: Re: Im getting random errors
Post by: Snow-Man on May 04, 2024, 08:51:34 AM
Quote from: Steve on May 04, 2024, 07:40:40 AMYou didn't do what was suggested though. Can you change your PHP version to at least 8.0?

On top of that, you've been asked a number of times for the url of your forum. Without that, we're flying blind here. If you'd rather not post it publicly, PM it to me and I'll make sure only the right people see it.

And again, when you say 'Core' theme, are you actually meaning the Core them from 2.0.x or the Curve2 theme from 2.1.x?
i have sent all details on PM
Title: Re: Im getting random errors
Post by: Steve on May 05, 2024, 08:21:55 AM
Got it and made other team members aware of the url. And as @Kindred said, using the old Core theme on a 2.1.x system would cause you problems. When installing the ProCurve theme, did you get any errors by its installation test?
Title: Re: Im getting random errors
Post by: Snow-Man on May 05, 2024, 11:33:31 AM
Quote from: Steve on May 05, 2024, 08:21:55 AMGot it and made other team members aware of the url. And as @Kindred said, using the old Core theme on a 2.1.x system would cause you problems. When installing the ProCurve theme, did you get any errors by its installation test?
i didnt mention before, im using php 8.3 and yea, still getting after switching to new theme too
Title: Re: Im getting random errors
Post by: shawnb61 on May 05, 2024, 11:57:32 AM
I would use 8.2 with 2.1.4.

8.3 has known issues with session handlers.  https://github.com/SimpleMachines/SMF/issues/7793

I would also suggest using the default theme and no mods until you are error-free.
Title: Re: Im getting random errors
Post by: Snow-Man on May 05, 2024, 01:29:47 PM
Quote from: shawnb61 on May 05, 2024, 11:57:32 AMI would use 8.2 with 2.1.4.

8.3 has known issues with session handlers.  https://github.com/SimpleMachines/SMF/issues/7793

I would also suggest using the default theme and no mods until you are error-free.
thank you, i have done that and now ill wait to see if i get errors
Title: Re: Im getting random errors
Post by: Steve on May 05, 2024, 04:35:14 PM
Are you using more than one captcha?
Title: Re: Im getting random errors
Post by: Snow-Man on May 06, 2024, 07:39:57 AM
Quote from: Steve on May 05, 2024, 04:35:14 PMAre you using more than one captcha?
Yes,im using 4
Title: Re: Im getting random errors
Post by: Snow-Man on May 06, 2024, 11:58:02 AM
I have tried everything told to me but I kept getting errors same as first ones
edit:
do i have to check action list that shows edited files by mods?
Title: Re: Im getting random errors
Post by: Steve on May 06, 2024, 12:30:10 PM
Quote from: Snow-Man on May 06, 2024, 07:39:57 AM
Quote from: Steve on May 05, 2024, 04:35:14 PMAre you using more than one captcha?
Yes,im using 4
I meant the captchas that give you the image, not the questions/answers.  :)
Title: Re: Im getting random errors
Post by: Snow-Man on May 06, 2024, 12:31:13 PM
Quote from: Steve on May 06, 2024, 12:30:10 PM
Quote from: Snow-Man on May 06, 2024, 07:39:57 AM
Quote from: Steve on May 05, 2024, 04:35:14 PMAre you using more than one captcha?
Yes,im using 4
I meant the captchas that give you the image, not the questions/answers.  :)
oh sorry, yes using one
Title: Re: Im getting random errors
Post by: Snow-Man on May 08, 2024, 06:45:18 AM
Hello guys, anyhelp? im still getting errors
Title: Re: Im getting random errors
Post by: Plus on November 14, 2024, 02:05:34 PM
i have same problem ..
Title: Re: Im getting random errors
Post by: Sir Osis of Liver on November 14, 2024, 04:25:25 PM
Start a new topic, post all details and link to your forum.
Title: Re: Im getting random errors
Post by: Doug Heffernan on November 14, 2024, 05:11:39 PM
Quote from: Snow-Man on May 04, 2024, 08:51:34 AM
Quote from: Steve on May 04, 2024, 07:40:40 AMYou didn't do what was suggested though. Can you change your PHP version to at least 8.0?

On top of that, you've been asked a number of times for the url of your forum. Without that, we're flying blind here. If you'd rather not post it publicly, PM it to me and I'll make sure only the right people see it.

And again, when you say 'Core' theme, are you actually meaning the Core them from 2.0.x or the Curve2 theme from 2.1.x?
i have sent all details on PM

Seeing @Steve's signature, I don't think that was a good idea.
Title: Re: Im getting random errors
Post by: Steve on November 15, 2024, 08:35:11 AM
I think I'll adjust it a bit ...