coppermine-gallery.com/forum

Support => cpg1.3.x Support => Older/other versions => cpg1.3 (BBS) Integration / Bridging => Topic started by: haley on May 03, 2005, 08:29:04 PM

Title: Select Album error (SMF bridge) - STILL NEED HELP 05/12!!
Post by: haley on May 03, 2005, 08:29:04 PM
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!
Title: Re: Select Album error (SMF bridge)
Post by: Nibbler on May 04, 2005, 03:57:26 PM
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.
Title: Re: Select Album error (SMF bridge)
Post by: haley on May 06, 2005, 05:41:09 PM
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.
Title: Re: Select Album error (SMF bridge)
Post by: turtleboy on May 10, 2005, 04:05:26 AM
I'm getting the same sort of error with a vb bridge.
Title: Re: Select Album error (SMF bridge) - STILL NEED HELP 05/10
Post by: haley on May 10, 2005, 06:19:51 PM
This site is set to go live this Friday. If someone knows how to fix this, please let me know.
Title: Re: Select Album error (SMF bridge) - STILL NEED HELP 05/12!!
Post by: haley on May 12, 2005, 04:16:52 PM
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
Title: Re: Select Album error (SMF bridge) - STILL NEED HELP 05/12!!
Post by: Nibbler on May 12, 2005, 05:26:09 PM
Then add

$title = array();

and maybe even

$aid = array();

No reason to worry about it, it's not a real error.
Title: Re: Select Album error (SMF bridge) - FIXED
Post by: haley on May 12, 2005, 05:42:15 PM
Woo that fixed it! Thanks so much!