trouble while installing, error in bitGmap.php ?

MaStErGrAhAm

trouble while installing, error in bitGmap.php ?

Posted:14 Sep 2008 (18:34 UTC)
hi everyone, i'm trying to install Bitweaver on server, but i have a problem :

Parse error: syntax error, unexpected '=', expecting ')' in /mnt/102/sdb/b/2/sokkermag/gmap/BitGmap.php on line 189

I checked source file and everything seems ok, where did the problem may come from please?
JP

Re: trouble while installing, error in bitGmap.php ?

Posted:27 Sep 2008 (16:59 UTC)
I got the same error today...
xing
Joined: 07 Mar 2004

Re: trouble while installing, error in bitGmap.php ?

Posted:24 Nov 2008 (07:47 UTC)
what version of gmap are you using?

can you paste a few lines of code around the line in question? about 10 lines above and below should probably do. you can use the {code} ... {/code} block to paste it.

x
Anonymous

Re: trouble while installing, error in bitGmap.php ?

Posted:03 Dec 2008 (00:11 UTC)
I downloaded bitweaver 2.1 RC today and during install, I got the same error. Here are the lines of code you requested.


<?php
    
function getMapType( &$pGmaptypeId ) {
        global 
$gBitSystem;
        
$ret NULL;
        if ( 
$pGmaptypeId && is_numeric$pGmaptypeId )) {

            
$bindVars = array( (int)$pGmaptypeId );

            
$query "SELECT bmt.*
                      FROM `"
.BIT_DB_PREFIX."gmaps_maptypes` bmt
                      WHERE bmt.`maptype_id` = ?"
;

            
$result $this->mDb->query$query$bindVars );

            if( 
$result && $result->numRows() ) {
                
$ret $result->fields;
            }
        }
        return 
$ret;
    }



    
//get all maptypes for a given gmap_id
    
function getMapTypes( &$pGmapId NULL ) {
        global 
$gBitSystem;
        
$ret NULL;

        
$bindVars = array(); $selectSql ''$joinSql ''$whereSql '';

        if( @
$this->verifyId$pGmapId ) ) {
            
$selectSql .= ", ( SELECT GROUP_CONCAT( gtk.`tilelayer_id` ORDER BY gtk.".$this->mDb->convertSortmode( array( 'pos_asc' ) )." )
                      FROM `"
.BIT_DB_PREFIX."gmaps_tilelayers_keychain` gtk
                      INNER JOIN `"
.BIT_DB_PREFIX."gmaps_tilelayers` gtl ON (gtl.`tilelayer_id` = gtk.`tilelayer_id` )
                      WHERE gtk.`maptype_id` = gsk.`set_id` )
                      `tilelayer_ids`"
;
            
$joinSql .= " INNER JOIN `".BIT_DB_PREFIX."gmaps_sets_keychain` gsk ON (gmt.`maptype_id` = gsk.`set_id`) ";
            
$whereSql .= " WHERE gsk.`gmap_id` = ? AND gsk.`set_type` = 'maptypes' ";
            
array_push$bindVars, (int)$pGmapId );
        }
?>


The line is question is

<?php
    
function getMapTypes( &$pGmapId NULL ) {
?>

tones

Re: trouble while installing, error in bitGmap.php ?

Posted:03 Dec 2008 (18:13 UTC)
I ran into the same error during the install when I selected the Gmap package. I couldn't find a fix so I decided to restart the installer in hopes of deselecting the Gmap package. But Gmap was already activated and the error wouldn't allow me to start over. Here is what I did to get around it.

I decided to start over by deleting the Bitweaver files and uploaded a fresh one. Then I deleted the database and created a new one. Just to be sure, I also deleted my browser cookie the failed install might have placed.

I crossed my fingers, typed in my install url and it went back to the beginning. Yes! This time I made sure to deselect the Gmap package during the install and now it's working fine.
xing
Joined: 07 Mar 2004

Re: trouble while installing, error in bitGmap.php ?

Posted:22 Mar 2009 (07:15 UTC)
this has been fixed in CVS. please manually remove the & sign in that line. that will allow you to use that package without any problems.

x
  Page 1 of 1  1