MyBB Community Forums

Full Version: [Tutorial] Updated: True integration with Coppermine and MyBB
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3 4 5 6 7 8 9
I have a problem with this integration. When I do everything like in tutorial on my gallery see this error:

Typ błędu: /error type/
Ostrzeżenie (2) /warning/
Treść błędu: /the error message/
in_array() [function.in-array]: Wrong datatype for second argument
Lokalizacja: /location/
Plik: inc/functions.php /file/
Linia: 1100 /line/
Kod:
1097. 
1098.         foreach($groupscache[$gid] as $perm => $access)
1099.         {
1100.             if(!in_array($perm, $grouppermignore))
1101.             {
1102.                 if(isset($usergroup[$perm]))
1103.                 { 

MyBB version: 1.6.7
Coppermine version: 1.5.18
was the bridge working 100% before starting the integration?
before starting integration i can add photo, edit groups settings etc.
i think - everything was good before starting the integration...
but was it bridged? you can have a working coppermine without bridging to mybb.
How to recognize that the connection did not work?
Becouse in coppermine settengs i have groups from mybb and in menu link members redirect to members list in mybb...
that means it is bridged then.

try editing the cpg_mybb_wrapper.php in the coppermine folder and add

",$grouppermignore" to the global variable list at the top of the page and try it again.
When I add it, a have this error:
Typ błędu:
Ostrzeżenie (2)
Treść błędu:
in_array() [function.in-array]: Wrong datatype for second argument
Lokalizacja:
Plik: inc/functions.php
Linia: 1112
Kod:
1109.                 }
1110. 
1111.                 // 0 represents unlimited for numerical group permissions (i.e. private message limit) so take that into account.
1112.                 if(in_array($perm, $groupzerogreater) && ($access == 0 || $permbit === 0))
1113.                 {
1114.                     $usergroup[$perm] = 0;
1115.                     continue; 

When I else add ",$groupzerogreater" I have this error:
Typ błędu:
Ostrzeżenie (2)
Treść błędu:
Invalid argument supplied for foreach()
Lokalizacja:
Plik: inc/functions.php
Linia: 1147
Kod:
1144.     $displaygroup = array();
1145.     $group = $groupscache[$gid];
1146. 
1147.     foreach($displaygroupfields as $field)
1148.     {
1149.         $displaygroup[$field] = $group[$field];
1150.     } 
Looks like you have to add $disaplygroupfields as well.

This is odd, there must be some configuration of your site that is requiring all of these variables to be added. Just keep adding the variables as you get the errors that are similar to these you have been getting
when i add $disaplygroupfields error is this same
typo: $disaplygroupfields should be $displaygroupfields
Pages: 1 2 3 4 5 6 7 8 9