Select Album error (SMF bridge) - STILL NEED HELP 05/12!! Select Album error (SMF bridge) - STILL NEED HELP 05/12!!
 

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Main Menu

Select Album error (SMF bridge) - STILL NEED HELP 05/12!!

Started by haley, May 03, 2005, 08:29:04 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

haley

Ok, I have a fresh install of SMF and Coppermine...I think the bridge went well. The groups are showing up correctly, the profile button goes to the SMF profile, etc. Nice. This is the first error I've discovered:

Select album

Warning: array_multisort(): Argument #1 is expected to be an array or a sort flag in /home/nrhyacom/public_html/gallery/bridge/smf.inc.php on line 497


Any idea? I'm pretty good with SMF, but this is my first experience with Coppermine, so I'm still learning. Thanks!

Nibbler

In that file, find:

        // We transpose and divide the matrix into columns to prepare it for use in array_multisort().
        foreach ($merged_array as $key => $row) {
           $aid[$key] = $row['id'];
           $title[$key] = $row['album_name'];
           $album_lineage[$key] = $row['username_category'];
        }


and add just before it

$album_lineage = array();

That should get rid of the error.

haley

Thanks much. I tried that but it didn't fix it. :(

I'm getting this area at the bottom of the admin utils page, under Select Album.


haley

This site is set to go live this Friday. If someone knows how to fix this, please let me know.

haley

Please? This is my last day to work on it before it goes live. I really don't want to reinstall CM as a separate feature. :(

This is what it's saying after I pasted in the line I was given in the first reply.

Warning: array_multisort(): Argument #3 is expected to be an array or a sort flag in /home/nrhyacom/public_html/gallery/bridge/smf.inc.php on line 497

Nibbler

Then add

$title = array();

and maybe even

$aid = array();

No reason to worry about it, it's not a real error.

haley