Hi,

It appears that the function 'file_put_contents()' is a PHP 5 only function, so the latest version of Click HeatMap won't work for anyone using any of the Drupal supported PHP 4 variants.
I personally run PHP 4.4.4 on my server, and Drupal official supports PHP 4.3.5 and higher.

Any help would be appreciated.

Comments

deciphered’s picture

deciphered’s picture

Title: Fatal error: Call to undefined function: file_put_contents() » PHP 4 Compatability issues

Another unsupported PHP 4 function: scandir() on line 185

deciphered’s picture

Status: Active » Needs review
StatusFileSize
new3 KB

FIxed in patch:

  • PHP 4 alternative for file_put_contents()
  • PHP 4 alternative for scandir()
  • Timestamp issue: $_SERVER['REQUEST_TIME'] wasn't returning correct timestamp, replaced with time()
  • Javascript wasn't rooted correctly (http://drupal.org/node/220154)
deciphered’s picture

StatusFileSize
new3.93 KB

Missed a couple scandir() calls

boombatower’s picture

Status: Needs review » Fixed

Modified your patch a bit to maintain common style.

Thanks for finding the bug and fixing it!

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.