errors on reg

17 years 9 months ago #16683 by inator
errors on reg was created by inator
When I register a new user I get the following:

Warning: array_merge() [function.array-merge]: Argument #1 is not an array in C:\Program Files\xampp\htdocs\Website\forum\common.php on line 78

Warning: array_merge() [function.array-merge]: Argument #2 is not an array in C:\Program Files\xampp\htdocs\Website\forum\common.php on line 78

Warning: array_merge() [function.array-merge]: Argument #3 is not an array in C:\Program Files\xampp\htdocs\Website\forum\common.php on line 78

Warning: array_merge() [function.array-merge]: Argument #4 is not an array in C:\Program Files\xampp\htdocs\Website\forum\common.php on line 78

Warning: array_merge() [function.array-merge]: Argument #6 is not an array in C:\Program Files\xampp\htdocs\Website\forum\common.php on line 78

Warning: array_merge() [function.array-merge]: Argument #7 is not an array in C:\Program Files\xampp\htdocs\Website\forum\common.php on line 78
Registration Complete!
You may now login.


any ideas?

Please Log in to join the conversation.

17 years 9 months ago #16714 by inator
Replied by inator on topic Re:errors on reg
bump

Please Log in to join the conversation.

17 years 9 months ago #16778 by geeffland
Replied by geeffland on topic Re:errors on reg
I have had about 3 other users report this issue but no-one has reported back enough info to debug. There must be some server setting which is causing this... it basically is an error because some variables are not set...

here is a fix you can try... go into phpbbconnector.php and replace the includephpBBFiles function with the one below:

[code:1] function includephpBBFiles() {
global $phppBBsessionID, $phpBBforumPath;
global $db, $phpEx, $phpbb_root_path;
global $lang, $table_prefix, $theme, $style, $board_config, $userdata;
$phpbb_root_path = $this->forumPath();
// set these variables to make sure and avoid the argument is not an array error with array_merge in common.php
if (!isset($HTTP_GET_VARS) || !is_array($HTTP_GET_VARS))
{
$HTTP_GET_VARS = array();
}
if (!isset($HTTP_POST_VARS) || !is_array($HTTP_POST_VARS))
{
$HTTP_POST_VARS = array();
}
if (!isset($HTTP_COOKIE_VARS) ||
!is_array($HTTP_COOKIE_VARS))
{
$HTTP_SESSION_VARS = array();
}
if (!isset($HTTP_SERVER_VARS) ||
!is_array($HTTP_SERVER_VARS))
{
$HTTP_SERVER_VARS = array();
}
if (!isset($HTTP_SESSION_VARS) ||
!is_array($HTTP_SESSION_VARS))
{
$HTTP_SESSION_VARS = array();
}
if (!isset($HTTP_ENV_VARS) || !is_array($HTTP_ENV_VARS))
{
$HTTP_ENV_VARS = array();
}
if (!isset($HTTP_POST_FILES) || !is_array($HTTP_POST_FILES))
{
$HTTP_POST_FILES = array();
}
include_once($phpbb_root_path . 'extension.inc');
include_once($phpbb_root_path . 'common.'.$phpEx);
return true;
}
[/code:1]

Let me know how this works...
Greg

CB3PD Developer - CB Connector (formerly phpBB Connector) plugin

Please Log in to join the conversation.

17 years 9 months ago #16789 by inator
Replied by inator on topic Re:errors on reg
Thanks Greg.

Some improvement, I only get this now (after replacing with the code you provided):

Warning: array_merge() [function.array-merge]: Argument #3 is not an array in C:\Program Files\xampp\htdocs\Website\forum\common.php on line 78
Registration Complete!
You may now login.


We're much closer.

Please Log in to join the conversation.

17 years 9 months ago #16790 by inator
Replied by inator on topic Re:errors on reg
inator wrote:

Thanks Greg.

Some improvement, I only get this now (after replacing with the code you provided):

Warning: array_merge() [function.array-merge]: Argument #3 is not an array in C:\Program Files\xampp\htdocs\Website\forum\common.php on line 78
Registration Complete!
You may now login.


We're much closer.


Nevermind...I inspected the code, there was a little cut-n-paste error in the following code:

if (!isset($HTTP_COOKIE_VARS) ||
!is_array($HTTP_COOKIE_VARS))
{
$HTTP_SESSION_VARS = array();
}

I changed it to this and all works well now:

if (!isset($HTTP_COOKIE_VARS) ||
!is_array($HTTP_COOKIE_VARS))
{
$HTTP_COOKIE_VARS = array();
}


Thanks again Greg... u da man! I assume this will be included in a future release?

Please Log in to join the conversation.

17 years 9 months ago #16792 by geeffland
Replied by geeffland on topic Re:errors on reg
Just for my info... was registration the only place that saw this error? (to make sure it goes in the right spot)

Greg

CB3PD Developer - CB Connector (formerly phpBB Connector) plugin

Please Log in to join the conversation.

Moderators: beatnantgeefflandmartijn189krileon
Time to create page: 0.216 seconds