8: Trying to access array offset on value of type null ?action=profile;u=1

Started by rcane, February 28, 2022, 08:52:08 AM

Previous topic - Next topic

rcane

Quote from: Arantor on February 13, 2023, 02:14:34 PM
Quote from: rcane on February 13, 2023, 01:34:26 PMI'm also seeing errors on Sources/Load.php

lines:  2046, 2047, 2053

Great, *what* errors?

I stopped posting because I wasn't sure if this needed it's own thread and to ask for this to be closed.


"Undefined index: default_theme_url "

/Sources/Load.php - Line: (see above lines)

Arantor

And what's on those lines?

I ask because you've customised your forum and the lines will likely be different.

C'mon, you've played this game - if you want help you need to make it as easy as possible for people to help you...

rcane

Quote from: Arantor on February 13, 2023, 02:28:58 PMAnd what's on those lines?

I ask because you've customised your forum and the lines will likely be different.

C'mon, you've played this game - if you want help you need to make it as easy as possible for people to help you...

I have.  Sorry.  I didn't think Load.php ever got touched.  Certainly not by me.



The first two $attempt arrays are 2046/47 respectively.



// Fall back on the default theme if necessary.
$attempts[] = array($settings['default_theme_dir'], $template, $lang, $settings['default_theme_url']);
$attempts[] = array($settings['default_theme_dir'], $template, $language, $settings['default_theme_url']);


// Fall back on the English language if none of the preferred languages can be found.

if (!in_array('english', array($lang, $language)))
{
$attempts[] = array($settings['theme_dir'], $template, 'english', $settings['theme_url']);
$attempts[] = array($settings['default_theme_dir'], $template, 'english', $settings['default_theme_url']);
             }

The last $attempt array ^^^ is 2053.

Arantor


rcane


Kindred

Сл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."

rcane

Quote from: Kindred on February 13, 2023, 08:00:20 PMAccessing The error log is generating the errors??

sure looks that way...

You'd know more than I, but does accessing the logs hit those lines in Load.php?

Arantor

Everything hits those lines in Load.php. Everything that loads the theme.

The question is what is trying to access the theme before it's properly loaded.

rcane

Quote from: Arantor on February 13, 2023, 08:27:32 PMEverything hits those lines in Load.php. Everything that loads the theme.

The question is what is trying to access the theme before it's properly loaded.

0.  where does the theme get officially, properly, loaded?
1. Can you think of an example so I can see where you're coming from?
2. Every thing I've made, save some buttons and such, sit on private php pages--all on-demand only kind of things.

3. Haven't changed the theme since day 1.

4. Could a security violation from the outside be suspect?  There's a story there from an unhappy user who, in the middle of telling me off for accessing her account to check on an accounting page complaint she made, dropped that her man is a software engineer and IT security expert.   

Few days after that the shout box goes wonky and now I'm seeing these errors.   

I've considered moving up to 2.1 anyway; maybe it's time to start researching how to make a responsible move...

rcane

I think this is what caused shout box to stop working.

I just noticed the news fader is showing all three news items I have, at the same time.  No fading/rotation.

So, the theme hasn't completely loaded.... ?

rcane

This was another that came up in the log, and I haven't done anything but uninstall the latest shout box.

index.php?action=admin;area=logs;sa=errorlog;desc;filter=session;value=30a08f86827e7c3653188e0c0819b6aa


Themes/antsMutantCurveTheme/Errors.template.php (html_above sub template - eval?) - Line: 175

Kindred

Ah... Those other symptoms make it sound like the javascript is failing to load somewhere in the middle. This could mean that this theme fails to completely load...

Shout Box and news fader all depend on javascript... And javascript is loaded at the start on every page

By the way, I know a number of "IT security experts" who could not hack their way out of a paper bag. Unlike the movies knowing where the spot issues is not the same as knowing how to cause those issues in the 1st place
Сл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."

rcane

Quote from: Kindred on February 13, 2023, 09:27:15 PMAh... Those other symptoms make it sound like the javascript is failing to load somewhere in the middle. This could mean that this theme fails to completely load...

Shout Box and news fader all depend on javascript... And javascript is loaded at the start on every page

By the way, I know a number of "IT security experts" who could not hack their way out of a paper bag. Unlike the movies knowing where the spot issues is not the same as knowing how to cause those issues in the 1st place


Well,

Got any steps you can recommend?

I'm ok moving up to 2.1–kinda was the plan anyway when I had the time.

I know a few things here and there will get wiped but preserving the members table and themes table are obviously priorities.

This is, of course, if I cannot find the source error.


What about just selecting the core theme?

Thanks for posting on this too.

Kindred

Well. Yes, if you switch back to the core/default theme and the problem goes away, your know that your issue is in the theme
Сл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."

rcane

Quote from: Kindred on February 13, 2023, 10:56:15 PMWell. Yes, if you switch back to the core/default theme and the problem goes away, your know that your issue is in the theme


Can you re-install a theme over itself?  Does that re-write sufficiently, or would going to core/default first be betters?

rcane

Quote from: Kindred on February 13, 2023, 10:56:15 PMWell. Yes, if you switch back to the core/default theme and the problem goes away, your know that your issue is in the theme

Seems to be back in order.

1. went core theme;
2. backed up everything and documented any changes to CSS and such;
3. uninstalled the theme in question and deleted all its folders;
4. installed latest version
5. put it all back together.

No errors posting and things are going fine. 

It doesn't help me find the source, but I'll start a log and note the error logs after any setting changes and mods to spot trouble going forward.

Kindred

As a note, by reinstalling a clean copy of the theme - you may have errors from any MODS that you installed, since mods MIGHT make changes to theme template files....  If so, you will have to MANUALLY apply any template changes to the theme   that's one reason why most 2.1 mods are being done as hooks.
Сл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."

rcane

Quote from: Kindred on February 14, 2023, 12:09:41 PMAs a note, by reinstalling a clean copy of the theme - you may have errors from any MODS that you installed, since mods MIGHT make changes to theme template files....  If so, you will have to MANUALLY apply any template changes to the theme   that's one reason why most 2.1 mods are being done as hooks.


Good to know.

I only had a couple installed.  I don't "see" any errors, but I'll go verify things are functioning as they should.


Advertisement: