ChronoEngine.com homepage

Forums

Please write a review for the extension you are using on the Joomla extensions directory before posting a new question as we are being spammed by many negative reviews.

Thank you for your support!

temp google error

mduda 15 Dec, 2017
Updated to j3.8.3 yesterday. Am now receiving this error when submitting form. Any ideas?
GreyHead 15 Dec, 2017
Hi mduda,

This looks like a Joomla question, not a CF one. As far as I know CF doesn't try to create or use any folder like that.

Bob
mduda 15 Dec, 2017
Hi Bob,

The only other change that's been made was that I added google verification. I don't see any other errors on the site. I have another cf on the site that does not use google save, and there's no problem submitting it. Is there something that I need to change in the coding for the google save plugin since I added the google verification for the site?

The form submission is saving into the table, but not the google sheet.
mduda 15 Dec, 2017
When I remove the gsheet save - everything else works - and no errors are thrown.
mduda 16 Dec, 2017
Is the error coming from the cf file: extras/google/cache/file:

private function getWriteableCacheFile($file)
  {
    return $this->getCacheFile($file, true);
  }

  private function getCacheFile($file, $forWrite = false)
  {
    return $this->getCacheDir($file, $forWrite) . '/' . md5($file);
  }

  private function getCacheDir($file, $forWrite)
  {
    // use the first 2 characters of the hash as a directory prefix
    // this should prevent slowdowns due to huge directory listings
    // and thus give some basic amount of scalability
    $storageDir = $this->path . '/' . substr(md5($file), 0, 2);
    if ($forWrite && ! is_dir($storageDir)) {
      if (! mkdir($storageDir, 0755, true)) {
        $this->client->getLogger()->error(
            'File cache creation failed',
            array('dir' => $storageDir)
        );
        throw new Google_Cache_Exception("Could not create storage directory: $storageDir");
      }
    }
    return $storageDir;
  }

Is it possible this is throwing the error?
mduda 17 Dec, 2017
1 Likes
Fixed. In case anyone else is having the same trouble. I'm on a shared host, and once I setup the google analytics, I was getting this mkdir error. I fixed it by creating a folder underneath my tmp folder - use whatever name you want - example /tmp/mygooglecache

Then went into the config.php file located in components/com_chronoforms5/extras/Google

Code around line 137 for me shows
'directory' => sys_get_temp_dir() . '/Google_Client'

I commented that line out, and added
'directory' => '../tmp/mygooglecache'

Hopefully this helps.
This topic is locked and no more replies can be posted.

2Checkout.com

2CheckOut.com Inc. (Ohio, USA) is an authorized retailer for goods and services provided by ChronoEngine.com