Menu

Can't configure Googlemap

Help
2009-03-18
2013-05-30
  • Doug Laidlaw

    Doug Laidlaw - 2009-03-18

    I have just done a clean install of PhpGedview 4.2 basic and am adding modules.  The Googlemap modu;le has changed significantly, so I uploaded the current one.

    When I copy my API code and try to save the config, I see:

    GoogleMap Configuration
    ERROR 2: fopen(modules/googlemap/config.php) [function.fopen]: failed to open stream: Permission denied
    0 Error occurred on in function fopen
    1 called from line 144 of file editconfig.php in function include_once
    2 called from line 72 of file module.php

    Warning: fopen(modules/googlemap/config.php) [function.fopen]: failed to open stream: Permission denied in /home/doug/public_html/phpgedview/modules/googlemap/editconfig.php on line 144
    Error!!! Cannot write to the PhpGedView configuration file. Please check file and directory permissions and try again.

    The module no longer has a config.php, and I had made my global config.php world-writable.  Installing the old Googlemap config.php makes the tab disappear.

    What am I missing?

    Doug.

     
    • Borksoft

      Borksoft - 2009-03-18

      Did you check the permissions and owner of the googlemap directory and the copied config.php file in the googlemap directory? What version was the old Googlemap configuration from? Can you enable the Googlemap module from the  admin menu?

       
    • Doug Laidlaw

      Doug Laidlaw - 2009-03-18

      Thanks for the advice.  I changed the permissions on Googlemap then uploaded Gallery2 before checking.  Now I can't log in at all.  At first, a link to my site added the subdirectory install/ and that doesn't exist - it is install.php  Then I did a global change of permissions and I get a more fundamental error message.  The reference to install/ sounds like something from Gallery that is being added when it shouldn't.

      I am going to delete Gallery2 and get that much working, but I thought that I should report back.

       
    • Doug Laidlaw

      Doug Laidlaw - 2009-03-18

      I deleted Gallery2, chmodded everything else to 777, and got Googlemap working.  Of course, everything is very insecure at the moment, so that is the next step.  The server won't let me take away the owner's write permissions, so the best I can do with config.php is 644, but it will have to do.

      Doug.

       
      • Borksoft

        Borksoft - 2009-03-18

        Yes, that is also how my configuration is. I just changed my permissions to 444 for all .php files in the googlemap module and it is running OK. Make sure the owner and group are the owner and group of the webserver (probably apache).

         
  • Mark Hattam

    Mark Hattam - 2010-01-12

    Can we update the "googlemap_readme.txt" file … as I've spent this evening trying to get GoogleMaps going, and it doesn't mention about enabling it from the "admin menu".

    README file for the Googlemap module for phpGedView
    Versions supported: V4.0 (preferred) and V3.3.8.
    The files in this archive should be extracted into you modules directory.
    These are the instruction on getting your Googlemap interface to work:
    If you are using version 3.3.8 of phpGedview you also need to do the
    following:
    1. Backup your individual.php in the PGV root
    2. Copy individual-3.3.8.php from the googlemap directory to PGV root.
    Next follow the following steps (both 3.3.8 and 4.0):
    1. Get your personal Google Map API key from
       http://www.google.com/apis/maps/signup.html
    2. Go to the Googlemap confiuration page. You can find this page under the
       Map-tab on the individual page.
    3. Enter the key in the input field, and click save.
    

    Mark

     

Log in to post a comment.