World map error

Got my site up and running again, just one error when using the world map module :

 

Warning: substr_compare() [function.substr-compare]: The length cannot exceed initial string length in /home/onderweg/public_html/LEDEN/inc/classes/BxDolTwigTemplate.php on line 43


I don't know how to solve this, someone encountered this problem too ?

Quote · 11 May 2013

Please could you provide your Dolphin version and the contents of 43rd line in this file ?

Rules → http://www.boonex.com/terms
Quote · 11 May 2013

 

Got my site up and running again, just one error when using the world map module :

 glad to see your down to just one error!!

ManOfTeal.COM a Proud UNA site, six years running strong!
Quote · 11 May 2013

I am getting a continuous rotating circle when trying to load the World Map, any ideas?

Stuart

D7.1.2

 

There are none so blind as those that will not see.
Quote · 11 May 2013

lol Newton27, indeed just 1 error. I started from a new 7.0.9 install, imported all database tables necessary to re-create my site and then upgraded to 7.1

 

Everything went well until I installed the world map module. Even before updating the profiles and locations this error showed up. I updated the profiles and locations, but nothing changed. The error was still there.

Maybe 1 mistake I made : I imported the bx_map_cities.sql, the  bx_map_profiles.sql and the bx_map_countries from the 7.0.9 database before I upgraded to 7.1.

If that is the mistake I have to start all over again :-(

AlexT, the version I'm running now is 7.1 and line 34  of this BxDolTwigTemplate.php says :  function addJsAdmin ($sName)


Quote · 11 May 2013

Oops, sorry ... it's line 43 and it says : 

 

return parent::parseHtmlByName ($sName . (substr_compare($sName, '.html', -5, 5) === 0 ? '' : '.html'), $aVars);

Quote · 11 May 2013

I know your a seasoned Dolphin...

But I have to ask, when you restored the .9 site, you did remove the Profiles Map module along with the other required module un installs?

ManOfTeal.COM a Proud UNA site, six years running strong!
Quote · 11 May 2013

Hi newton27,

 

I did remove the modules, however, in the database I imported following 3 tables :

 

bx_map_profiles

bx_map_cities

bx_map_countries

 

After that I upgraded to 7.1 and I installed the world map module.

 

I think I should have left those 3 tables out before upgrading:-(

Quote · 11 May 2013

 

I think I should have left those 3 tables out before upgrading:-(

 I agree...

[edit] In the current 7.1.2 database the maps now use

not the ones you inserted, those were dropped.

The new map module allows you to "redo" the profiles once you restore the member data.

 

profiles-map.jpg · 35.3K · 393 views
ManOfTeal.COM a Proud UNA site, six years running strong!
Quote · 11 May 2013

I already tried that, doesn't work.

Quote · 11 May 2013

Profiles aren't showing on the map either

Quote · 11 May 2013

I'm not familiair with coding, but what exactly does this line 43 say ?

Quote · 11 May 2013

It looks like you've updated to 7.1.0.B1 - it was an error on this line in first beta, I would suggest to update straight to 7.1.0 Release. Then to 7.1.1 and 7.1.2.

Also don't export data from old version - tables structure may be changed, the proper way is to apply upgrade.

World Maps module can be totally reinstalled and locations can be geocoded from the scratch, so there is no need to save old data from world map module.

Oops, sorry ... it's line 43 and it says : 
 
return parent::parseHtmlByName ($sName . (substr_compare($sName, '.html', -5, 5) === 0 ? '' : '.html'), $aVars);

 

Rules → http://www.boonex.com/terms
Quote · 13 May 2013

Where can I find this 7.1.0 release ? 

Quote · 16 May 2013

 

Where can I find this 7.1.0 release ? 

 http://sourceforge.net/projects/boonex-dolphin/files/Dolphin/7.1/

ManOfTeal.COM a Proud UNA site, six years running strong!
Quote · 16 May 2013
 
 
Below is the legacy version of the Boonex site, maintained for Dolphin.Pro 7.x support.
The new Dolphin solution is powered by UNA Community Management System.