Error in version 2.1.4 - National Flags
Error in version 2.1.4
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
[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.
[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.
Sorry for my bad english. I'm from USA.
-
- Registered User
- Posts: 522
- Joined: Wed Jan 20, 2010 11:03 am
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
Former Modifications/Extensions Team Member | My extensions | github | All requests for support via PM will be ignored
Appreciate the extensions/mods/support then you can support me by buying a beer
Appreciate the extensions/mods/support then you can support me by buying a beer
-
- Former Team Member
- Posts: 22105
- Joined: Wed Jun 22, 2005 4:33 pm
- Location: Your display
- Name: Rich McGirr
Re: Error in version 2.1.4
Doing that, I got an error 500 and blank screen.
Sorry for my bad english. I'm from USA.
-
- Registered User
- Posts: 522
- Joined: Wed Jan 20, 2010 11:03 am
Re: Error in version 2.1.4
Then you didn't do the edit correctly.
Former Modifications/Extensions Team Member | My extensions | github | All requests for support via PM will be ignored
Appreciate the extensions/mods/support then you can support me by buying a beer
Appreciate the extensions/mods/support then you can support me by buying a beer
-
- Former Team Member
- Posts: 22105
- Joined: Wed Jun 22, 2005 4:33 pm
- Location: Your display
- Name: Rich McGirr
Re: Error in version 2.1.4
I think you were right. Now, its in test. I will let you know if it removed the bug.
Sorry for my bad english. I'm from USA.
-
- Registered User
- Posts: 522
- Joined: Wed Jan 20, 2010 11:03 am
Re: Error in version 2.1.4
No problems anymore. I think its solved. Thank you!
Sorry for my bad english. I'm from USA.
-
- Registered User
- Posts: 522
- Joined: Wed Jan 20, 2010 11:03 am
Re: Error in version 2.1.4
Same error today:
[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.
[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.
Sorry for my bad english. I'm from USA.
-
- Registered User
- Posts: 522
- Joined: Wed Jan 20, 2010 11:03 am
Re: Error in version 2.1.4
Sorry, I'm not sure why that's happening. Can you paste in the data within the data_users_and_flags php file (not the lock file) found in the cache directory?
Former Modifications/Extensions Team Member | My extensions | github | All requests for support via PM will be ignored
Appreciate the extensions/mods/support then you can support me by buying a beer
Appreciate the extensions/mods/support then you can support me by buying a beer
-
- Former Team Member
- Posts: 22105
- Joined: Wed Jun 22, 2005 4:33 pm
- Location: Your display
- Name: Rich McGirr
Re: Error in version 2.1.4
Download it here: https://www.sendspace.com/file/ehnlcm
Sorry for my bad english. I'm from USA.
-
- Registered User
- Posts: 522
- Joined: Wed Jan 20, 2010 11:03 am
Re: Error in version 2.1.4

How many users are on your forum and have chosen a flag?
Former Modifications/Extensions Team Member | My extensions | github | All requests for support via PM will be ignored
Appreciate the extensions/mods/support then you can support me by buying a beer
Appreciate the extensions/mods/support then you can support me by buying a beer
-
- Former Team Member
- Posts: 22105
- Joined: Wed Jun 22, 2005 4:33 pm
- Location: Your display
- Name: Rich McGirr
Re: Error in version 2.1.4
Right now, 220718 registered users. I believe 95+% of them set a flag.
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.
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.
Sorry for my bad english. I'm from USA.
-
- Registered User
- Posts: 522
- Joined: Wed Jan 20, 2010 11:03 am
Re: Error in version 2.1.4
That is for viewing the memberlist. I'm not sure why this is occuring but may have some suggestions for you to try.
Former Modifications/Extensions Team Member | My extensions | github | All requests for support via PM will be ignored
Appreciate the extensions/mods/support then you can support me by buying a beer
Appreciate the extensions/mods/support then you can support me by buying a beer
-
- Former Team Member
- Posts: 22105
- Joined: Wed Jun 22, 2005 4:33 pm
- Location: Your display
- Name: Rich McGirr
Re: Error in version 2.1.4
It happened in version 2.1.4. In version 2.1.3 was ok.
I couldnt find a "logic reason" for these errors. They look like random.
I couldnt find a "logic reason" for these errors. They look like random.
Sorry for my bad english. I'm from USA.
-
- Registered User
- Posts: 522
- Joined: Wed Jan 20, 2010 11:03 am
Re: Error in version 2.1.4
One more time today: https://s10.postimg.org/3up93vjtl/tela.jpg
I will return to version 2.1.3 for a while.
I will return to version 2.1.3 for a while.
Sorry for my bad english. I'm from USA.
-
- Registered User
- Posts: 522
- Joined: Wed Jan 20, 2010 11:03 am
Re: Error in version 2.1.4
Well I would still like to figure out why this is happening.
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
you may need to change phpbb to be the proper prefix of the table in your database.
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
Former Modifications/Extensions Team Member | My extensions | github | All requests for support via PM will be ignored
Appreciate the extensions/mods/support then you can support me by buying a beer
Appreciate the extensions/mods/support then you can support me by buying a beer
-
- Former Team Member
- Posts: 22105
- Joined: Wed Jun 22, 2005 4:33 pm
- Location: Your display
- Name: Rich McGirr