News:

Wondering if this will always be free?  See why free is better.

Main Menu

Im getting random errors

Started by Snow-Man, May 02, 2024, 02:14:22 PM

Previous topic - Next topic

Snow-Man

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


Kindred

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.
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

Snow-Man

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

Steve

Where did you get the core theme for v2.1.4?
DO NOT pm me for support unless asked to!

Snow-Man

Quote from: Steve on May 02, 2024, 02:40:45 PMWhere did you get the core theme for v2.1.4?
default installation

Steve

Um ... 2.1.4 doesn't have a core theme as far as I know. The default theme is called Curve2.
DO NOT pm me for support unless asked to!

Snow-Man

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?

Steve

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.
DO NOT pm me for support unless asked to!

Snow-Man

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

Steve

When you go to your profile and then look and layout, is Curve2 an option?
DO NOT pm me for support unless asked to!

Snow-Man

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.

Steve

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.
DO NOT pm me for support unless asked to!

Doug Heffernan

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?

Snow-Man

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

Sir Osis of Liver

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.
When in Emor, do as the Snamors.
                              - D. Lister

Kindred

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
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

Snow-Man

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

Snow-Man

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
'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

Steve

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?
DO NOT pm me for support unless asked to!

Snow-Man

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

Steve

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?
DO NOT pm me for support unless asked to!

Snow-Man

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

shawnb61

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.
A question worth asking is born in experience & driven by necessity. - Fripp

Snow-Man

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

Steve

Are you using more than one captcha?
DO NOT pm me for support unless asked to!

Snow-Man


Snow-Man

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?

Steve

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.  :)
DO NOT pm me for support unless asked to!

Snow-Man

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

Snow-Man

Hello guys, anyhelp? im still getting errors

Plus


Sir Osis of Liver

Start a new topic, post all details and link to your forum.
When in Emor, do as the Snamors.
                              - D. Lister

Doug Heffernan

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.

Steve

I think I'll adjust it a bit ...
DO NOT pm me for support unless asked to!

Advertisement: