Error in version 2.1.4 - National Flags
Error in version 2.1.4
[phpBB Debug] PHP Warning: in file [ROOT]/ext/rmcgirr83/nationalflags/event/listener.php on line 579: in_array() expects parameter 2 to be array, null given
[phpBB Debug] PHP Warning: in file [ROOT]/ext/rmcgirr83/nationalflags/event/listener.php on line 579: array_keys() expects parameter 1 to be array, boolean given
Usually, pressing F5 will solve it.
I didnt have this error in 2.1.3.
- null2
- Registered User
- Posts: 516
- Joined: Wed Jan 20, 2010 11:03 am
- Contact:
Re: Error in version 2.1.4
means the cache for the users and flags isn't being generated.null2 wrote:Sometimes, I get this error (it repeats several times at top screen):
[phpBB Debug] PHP Warning: in file [ROOT]/ext/rmcgirr83/nationalflags/event/listener.php on line 579: in_array() expects parameter 2 to be array, null given
Try this fix to that file
https://github.com/rmcgirr83/phpBB-3.1- ... ick_pull=1
Appreciate the extensions/mods/support then buy me a beer
- RMcGirr83
- Former Team Member
- Posts: 22016
- Joined: Wed Jun 22, 2005 4:33 pm
- Location: Your display
- Name: Rich McGirr
- Contact:
Re: Error in version 2.1.4
- null2
- Registered User
- Posts: 516
- Joined: Wed Jan 20, 2010 11:03 am
- Contact:
Re: Error in version 2.1.4
Appreciate the extensions/mods/support then buy me a beer
- RMcGirr83
- Former Team Member
- Posts: 22016
- Joined: Wed Jun 22, 2005 4:33 pm
- Location: Your display
- Name: Rich McGirr
- Contact:
Re: Error in version 2.1.4
- null2
- Registered User
- Posts: 516
- Joined: Wed Jan 20, 2010 11:03 am
- Contact:
Re: Error in version 2.1.4
- null2
- Registered User
- Posts: 516
- Joined: Wed Jan 20, 2010 11:03 am
- Contact:
Re: Error in version 2.1.4
[phpBB Debug] PHP Warning: in file [ROOT]/ext/rmcgirr83/nationalflags/event/listener.php on line 581: in_array() expects parameter 2 to be array, null given
[phpBB Debug] PHP Warning: in file [ROOT]/ext/rmcgirr83/nationalflags/event/listener.php on line 581: array_keys() expects parameter 1 to be array, boolean given
It happened after I changed board language to English. After a F5, error disapeared.
- null2
- Registered User
- Posts: 516
- Joined: Wed Jan 20, 2010 11:03 am
- Contact:
Re: Error in version 2.1.4
Appreciate the extensions/mods/support then buy me a beer
- RMcGirr83
- Former Team Member
- Posts: 22016
- Joined: Wed Jun 22, 2005 4:33 pm
- Location: Your display
- Name: Rich McGirr
- Contact:
Re: Error in version 2.1.4
- null2
- Registered User
- Posts: 516
- Joined: Wed Jan 20, 2010 11:03 am
- Contact:
Re: Error in version 2.1.4
How many users are on your forum and have chosen a flag?
Appreciate the extensions/mods/support then buy me a beer
- RMcGirr83
- Former Team Member
- Posts: 22016
- Joined: Wed Jun 22, 2005 4:33 pm
- Location: Your display
- Name: Rich McGirr
- Contact:
Re: Error in version 2.1.4
My forum had more than 1,000,000 users but in December I made a cleaning to remove old ones. I left these ones who signed up once, at least, in the last 2 years.
===========
IN TIME: Error happened again today, but in line 601, just browsing forum.
- null2
- Registered User
- Posts: 516
- Joined: Wed Jan 20, 2010 11:03 am
- Contact:
Re: Error in version 2.1.4
Appreciate the extensions/mods/support then buy me a beer
- RMcGirr83
- Former Team Member
- Posts: 22016
- Joined: Wed Jun 22, 2005 4:33 pm
- Location: Your display
- Name: Rich McGirr
- Contact:
Re: Error in version 2.1.4
I couldnt find a "logic reason" for these errors. They look like random.
- null2
- Registered User
- Posts: 516
- Joined: Wed Jan 20, 2010 11:03 am
- Contact:
Re: Error in version 2.1.4
I will return to version 2.1.3 for a while.
- null2
- Registered User
- Posts: 516
- Joined: Wed Jan 20, 2010 11:03 am
- Contact:
Re: Error in version 2.1.4
Can you paste this sql command within phpmyadmin (CTRL + V if right click doesn't display paste command) and tell me how long the query takes to run and how many rows were returned
Code: Select all
SELECT user_id, user_flag FROM phpbb_users WHERE user_flag > 0
Appreciate the extensions/mods/support then buy me a beer
- RMcGirr83
- Former Team Member
- Posts: 22016
- Joined: Wed Jun 22, 2005 4:33 pm
- Location: Your display
- Name: Rich McGirr
- Contact: