Skip to main content
Topic: A lot "Undefined index: is_admin" (I guess after installing patch) (Read 1874 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

A lot "Undefined index: is_admin" (I guess after installing patch)

Hello,

I have some issues with my ElkArte. I guess, after installing Patch, I can't go to upper/main directory. The Forum shows just something like:

Code: [Select]
Notice: Undefined index: is_admin in /www/htdocs/**********/sources/Security.php on line 1052

Notice: Undefined index: linktree in /www/htdocs/**********/sources/Load.php on line 1871

Warning: Invalid argument supplied for foreach() in /www/htdocs/**********/sources/Load.php on line 1871

Notice: Undefined index: is_guest in /www/htdocs/**********/sources/Load.php on line 1803

***** by me.  :-[ 

I have no problems getting in Admin-Area or post directly an answer in my forums.

Can somebody tell me, what I did wrong or how I can fix this.

Thank you in advance.

Edit: I guess I fixed it by creating a new board all seems ok.
Last Edit: May 03, 2019, 08:31:18 am by Tegenarian

Re: A lot "Undefined index: is_admin" (I guess after installing patch)

Reply #1

Interesting ... glad you got it fixed!   If it occurred right after an upgrade it may have been an old cache file that had not (yet) been reset.

Re: A lot "Undefined index: is_admin" (I guess after installing patch)

Reply #2

Hi, I've got the same problem... I can load the main page and read any topic shown in recent posts but I'm getting a blank page when I click on a board .
PHP and PHP-FPM are at 7.3.5, running on nginx. In my case, creating a new board didn't fix the problem, any help is appreciated.

Code: [Select]
2019/05/24 23:46:49 [error] 14062#14062: *41120 FastCGI sent in stderr: 
PHP message: PHP Notice:  Undefined index: is_admin in /srv/http/elkarte/sources/Security.php on line 1052
PHP message: PHP Notice:  Undefined index: is_guest in /srv/http/elkarte/sources/Load.php on line 1803
PHP message: PHP Notice:  Undefined index: mod_cache in /srv/http/elkarte/sources/Load.php on line 1809
PHP message: PHP Notice:  Undefined index: username in /srv/http/elkarte/sources/Load.php on line 1810
PHP message: PHP Notice:  Undefined index: language in /srv/http/elkarte/sources/Load.php on line 1811
PHP message: PHP Notice:  Undefined index: email in /srv/http/elkarte/sources/Load.php on line 1812
PHP message: PHP Notice:  Undefined index: ignoreusers in /srv/http/elkarte/sources/Load.php on line 1813
PHP message: PHP Notice:  Undefined index: name in /srv/http/elkarte/sources/Load.php on line 1819
PHP message: PHP Notice:  Undefined index: smiley_set in /srv/http/elkarte/sources/Load.php on line 1826
PHP message: PHP Notice:  Undefined index: smiley_set in /srv/http/elkarte/sources/Load.php on line 1827
PHP message: PHP Notice:  Undefined index: possibly_robot in /srv/http/elkarte/sources/BrowserDetector.class.php on line 249
PHP message: PHP Warning:  array_unshift() expects parameter 1 to be array, null given in /srv/http/elkarte/sources/Load.php on line 1578
PHP message: PHP Notice:  Undefined index: language in /srv/http/elkarte/sources/Load.php on line 1639
PHP message: PHP Notice:  Undefined index: time_offset in /srv/http/elkarte/sources/Subs.php on line 553
PHP message: PHP Notice:  Undefined index: time_offset in /srv/http/elkarte/sources/Subs.php on line 439
PHP message: PHP Notice:  Undefined index: time_format in /srv/http/elkarte/sources/Subs.php on line 478
PHP message: PHP Notice:  Undefined index: smiley_set in /srv/http...





Re: A lot "Undefined index: is_admin" (I guess after installing patch)

Reply #3

Workaround: downgrade php/php-fpm to 7.2.


 

Re: A lot "Undefined index: is_admin" (I guess after installing patch)

Reply #4

I dont think Elk will run smoothly on 7.3.
I see some problems here and there when running locally.

ETA: yep, I guess 7.2 is the one for the time being.
I have to check 1.1.6 if all the needed fixes were applied.
Bugs creator.
Features destroyer.
Template killer.