Google Member Map

Started by TLM, December 18, 2005, 08:43:52 PM

Previous topic - Next topic

WhatsUp

I am still getting this on install thru' PM:
11.     Execute Modification     ./Sources/ModSettings.php     Test failed
I have uninstalled some non-vital mods, but no joy.
If I install anyway, is this likely to break SMF?
History Hunters: http://historyhuntersinternational.org/
Enter: test/test
SMF and TinyPortal

damacguy

I think the Thank You mod is the problem (at least I think it is for me). Uninstall that, then try and install the latest release candidate.

Goad

Quote from: Goad on January 04, 2007, 05:05:06 PM
Quote from: Goad on January 04, 2007, 10:40:19 AM
when i go to hit the "install now" button....i get this error....

Quote
Fatal error: packageinstall() [function.require]: Failed opening required '/xxxxx/xxxx/xxxxxxx/xxx/website/Packages/temp/./add_settings.php'
(include_path='.:/usr/local/lib/php') in /xxxxx/xxxx/xxxxxxx/xxx/website/Sources/Packages.php on line 549


I still get this error....  :(

I wish i never upgraded to 1.1.1, I have had nothing but problems with EVERY component since.

still getting it with RC8 :(

Can anyone help me out?

Bigguy

Have you installed other mods. ??? Is your "Package" folder chmodded to 777, if not do that and see if there is a temp folder in that folder if not create one and chmod it to 777. See if that helps.

FoneBone

I would like to thank all of you for testing all the release candidats and posting the problems with them.  ;D

damacguy

Quote from: FoneBone on January 08, 2007, 09:56:09 AM
I would like to thank all of you for testing all the release candidats and posting the problems with them.  ;D

Thank you for helping TLM with the mod and working on these release candidates.

Goad

Quote from: Bigguy on January 08, 2007, 01:29:56 AM
Have you installed other mods. ??? Is your "Package" folder chmodded to 777, if not do that and see if there is a temp folder in that folder if not create one and chmod it to 777. See if that helps.

i have other packages that were installed, but got whiped out (just like this one) when i upgraded to 1.1.1.

I have also added the temp dir and chmod'd it to 777 and I get the same error.

im beyond frustrated :(

Bigguy

In your Admin panel under packages, go to options. At the bottom you will see:

"Change all file permissions throughout the forum such that:"

Change it to:

"All files are writable."

And click change file permissions and try once more to install.

WhatsUp

Uninstalled so many mods that my site is now only half functional.
Did the chmod thing, still get:
11.     Execute Modification     ./Sources/ModSettings.php     Test failed

I have now have to ask: is this mod more valuable than the six that I deleted to try and get it to work, and the answer is no.
History Hunters: http://historyhuntersinternational.org/
Enter: test/test
SMF and TinyPortal

Bigguy

You should be able to get it all back installed after you install this mod. Of course it is your decision if you don't want to. If that is the only error you are getting then I would say you are close to installing this. You have 3 choices 1.) you can forget about it 2.) you can uninstall the other mods, install this one and then reinstall the rest. Or 3.) install with the errors and add the changes manually to the file it failed on. I am sorry you are having problems. If I can help in any way I will. :)

WhatsUp

#790
That's a kind, offer - thanks!

OK, now installed.
It seems to work ok  >:(

Trying to reach Features and Options I get this:
Fatal error: Cannot redeclare modifygooglemapsettings() (previously declared in Sources/ModSettings.php:354) in Sources/ModSettings.php on line 395

Clearly I need to know how to mod files manually. Your advice most appreciated.
History Hunters: http://historyhuntersinternational.org/
Enter: test/test
SMF and TinyPortal

Bigguy

In your sources directory find the file Modsettings.php and open it with an editor. ( I prefer php designer 2007) After you open it find:

'layout' => 'ModifyLayoutSettings',
'karma' => 'ModifyKarmaSettings',


Before that add:

'googlemap' => 'ModifyGoogleMapSettings',

Then find:

'karma' => array(
'title' => $txt['smf293'],
'href' => $scripturl . '?action=featuresettings;sa=karma;sesc=' . $context['session_id'],
'is_last' => true,
),


Before that add:

'googlemap' => array(
'title' => $txt['googleMapFO'],
'href' => $scripturl . '?action=featuresettings;sa=googlemap;sesc=' . $context['session_id'],
'is_last' => true,
),


Then find:

// This function basically just redirects to the right save function.

Before that add:

'googlemap' => 'ModifyGoogleMapSettings',

Then find:

$context['post_url'] = $scripturl . '?action=featuresettings2;save;sa=karma';
$context['settings_title'] = $txt['smf293'];


Before that add:

function ModifyGoogleMapSettings()
{
global $txt, $scripturl, $context, $settings, $sc;

$config_vars = array(
// Map - On or off?
array('check', 'googleMapsEnable'),
array('check', 'googleMapsEnableLegend'),
'',
// Key, pins static/gender/membergroup
array('text', 'googleMapsKey'),
array('check', 'googleMapsPinGender'),
array('int', 'googleMapsPinNumber'),
            array('select', 'googleMapsType', array('G_NORMAL_MAP' => 'Map', 'G_SATELLITE_MAP' => 'Satellite', 'G_HYBRID_MAP' => 'Hybrid')),
            array('select', 'googleSidebar', array('No Sidebar', 'Sidebar Right', 'Sidebar Bottom')),
        '',
            // Default Location/Zoom
            array('float', 'googleMapsDefaultLat', '25'),
            array('float', 'googleMapsDefaultLong', '25'),
            array('int', 'googleMapsDefaultZoom'),
        '',
            // Clustering Options
            array('check', 'googleMapsEnableClusterer'),
            array('int', 'googleMapsMinMarkerCluster'),
            array('int', 'googleMapsMaxVisMarker'),
            array('int', 'googleMapsMaxNumClusters'),
            array('int', 'googleMapsMaxLinesCluster'),
           
);

// Saving?
if (isset($_GET['save']))
{
saveDBSettings($config_vars);
redirectexit('action=featuresettings;sa=googlemap');
}

$context['post_url'] = $scripturl . '?action=featuresettings2;save;sa=googlemap';
$context['settings_title'] = $txt['googleMapFO'];

prepareDBSettingContext($config_vars);
}


These are the edits for that file. BEFORE doing anything BACKUP that file so if you screw up you can put the original back. Hope this helps.

WhatsUp

Almost...  ;)

Parse error: syntax error, unexpected T_DOUBLE_ARROW in Sources/ModSettings.php on line 160

This is the code:

159 }
160 'googlemap' => 'ModifyGoogleMapSettings',
161 // This function basically just redirects to the right save function.
History Hunters: http://historyhuntersinternational.org/
Enter: test/test
SMF and TinyPortal

Bigguy

Can you post your file please and I will see what I can do.

binaryspiral

I farked something up,

I've been following this thread and trying different versions of this map - but something happened that duplicated the "Map" buttons with the last version, so I uninstalled it. Now I've got duplicate map areas in the Forum Profile pages of my users.

I figured I could just do a restore on the /Sources files - but that hasn't fixed it. I've got extensive backups from the last few days and weeks... I really just want it back to normal, so I need to know what file(s) did this change that would cause this?

Bigguy

Try uploading a fresh copy of profile.template.php That might solve the problem.

WhatsUp

Quote from: Bigguy on January 08, 2007, 09:33:47 PM
Can you post your file please and I will see what I can do.
Thanks!
History Hunters: http://historyhuntersinternational.org/
Enter: test/test
SMF and TinyPortal

Bigguy

Well, I hope this works for you. Backup before trying please:


WhatsUp

Closer yet  :D

I can now get into Features and Options, which is a big improvement, but when I enter Member Map, get:

Fatal error: Call to undefined function: modifygooglemapsettings() in Sources/ModSettings.php on line 315

Still, I look on the bright side: the whole site works, including this mod, just that I cannot alter the focus of the map (which I may be able to do in the d/base).

I very much appreciate your help on this, Bigguy!
History Hunters: http://historyhuntersinternational.org/
Enter: test/test
SMF and TinyPortal

Bigguy

The edit just doesn't want to go where it is supposed to go. I am still trying.

Advertisement: