• Resolved bradbpw

    (@bradbpw)


    I have been attempting to get this to work on my site, but continue getting the error:

    General Error fetching Google Users: Could not create storage directory: /tmp/GoogleGAL_Client/90

    I am getting the error because I am on a shared server and someone else on that shared server has already claimed that directory.

    I have discussed this with the developers before and we couldn’t find a way to get around it. I’m just curious if there are any plans in a future update to get around this error.

    https://www.ads-software.com/plugins/google-apps-directory/

Viewing 1 replies (of 1 total)
  • Sorry to hear this is still a problem. It’s really down to the Google client library, and I’m not sure if they have any plans to change it. Probably not – the easiest suggestion is to move off a shared server of course.

    For the benefit of others, here are some solutions that might work depending on your setup:

    I have looked at the Google client library code, and it seems that it just takes the full path for the temporary location from a PHP function called sys_get_temp_dir – and the location can be set via your PHP configuration.

    Ideally, your web host would find a way for sys_get_temp_dir to return a directory that is unique to your own user. It doesn’t sound quite right to me that you are sharing the temp space with other users.

    If your web hosting company can’t find a way to make this happen, it may also be possible to turn off caching within the plugin, meaning that the Google client library shouldn’t need to write anything to the temp area.

    Here are some instructions for disabling the cache for the Google Client Library, hopefully meaning it doesn’t need to access any temp directory.

    You need to do two things:

    1. Create a text file somewhere in your WordPress directory, called maybe googleclient.ini. It should contain only one line:

    cache_class = GoogleGAL_Cache_Null

    Let’s say this file is located here: /var/www/~username/wp/googleclient.ini (but it can be anywhere you like).

    2. In your WordPress code, perhaps in your theme’s functions.php file, you need to add this:

    add_action('gal_client_config_ini', 'mycustom_gal_client_config_ini');
    
    function mycustom_gal_client_config_ini($config) {
        require_once '/var/www/~username/wp/wp-content/plugins/googleappslogin-enterprise/core/Google/Cache/Null.php'; /* <--- you will need to enter the full path here */
        return '/var/www/~username/wp/googleclient.ini'; /* <--- or whatever the full path is */
    }

    In the code above, you would need to work out the full path to Google/Cache/Null.php, which is contained in the plugin. Something like this: /var/www/~username/wp/wp-content/plugins/googleappslogin-premium/core/Google/Cache/Null.php

Viewing 1 replies (of 1 total)
  • The topic ‘Could not create storage directory’ is closed to new replies.