plugin-clickheat icon indicating copy to clipboard operation
plugin-clickheat copied to clipboard

ClickHeat redirects to Dashboard

Open kassemshehady opened this issue 9 years ago • 9 comments

I Install ClickHeat Plugin in Piwik , But when clicking on it the page redirects to Dashboard. Please Help. Thanks

kassemshehady avatar Jan 28 '16 12:01 kassemshehady

Hello, Same issue here, as I said in the piwik forum, by pressing esc I stopped the redirect and saw I had to insert a JS in my pages, but after this, this still doesn't work. No redirect, but no image either (the cache directory is empty).

Arvi89 avatar Jan 29 '16 02:01 Arvi89

Hi,

yes, similar issue here... stopping even earlier... the escape doesn't work for me at all...

UPDATE:

ok, escape worked now... will update if I face same issue as Arvi89 after installation...

Snev313 avatar Feb 02 '16 08:02 Snev313

same issue.

zourite avatar Feb 08 '16 19:02 zourite

Yes, I have same issue.

tpialek avatar Feb 10 '16 08:02 tpialek

Yes, I´ve the same issue. Has anyone a patchwork / workaround?

benhartwich avatar Feb 13 '16 14:02 benhartwich

Up. Same issue, plus if I esc the page renders to the other commonly reported error of

Fatal error: Class 'Piwik_ClickHeat_Controller' not found in /[INSTALL PATH]/plugins/ClickHeat/libs/layout.php on line 18

stemel avatar Feb 15 '16 15:02 stemel

I have the same issue. I found a fix for this with the post of fvdm : https://github.com/piwikjapan/plugin-clickheat/issues/4#issuecomment-104983272 Thanks to him !

GaetanNaulin avatar Feb 17 '16 10:02 GaetanNaulin

Redirecting to the Dashboard when no clicks have yet been recorded is very confusing in my opinion, is this the expected behaviour?

aj-justo avatar Jan 03 '17 16:01 aj-justo

https://issues.matomo.org/attachments/5493/piwik-clickheat-fix-redirect-to-dashboard-bug.patch

--- ClickHeat/Controller.php.orig	2012-08-03 15:07:15.449002296 +0200
+++ ClickHeat/Controller.php	2012-08-03 14:54:19.192001798 +0200
@@ -202,9 +202,9 @@
 	{
 		$group = isset($_GET['group']) ? str_replace('/', '', $_GET['group']) : '';
 		$conf = self::conf();
+		$webPage = array( CLICKHEAT_PATH . 'clickempty.html' );
 		if (is_dir($conf['logPath'].$group))
 		{
-			$webPage = array('/');
 			if (file_exists($conf['logPath'].$group.'/url.txt'))
 			{
 				$f = @fopen($conf['logPath'].$group.'/url.txt', 'r');
@@ -214,8 +214,8 @@
 					fclose($f);
 				}
 			}
-			echo $webPage[0];
 		}
+		echo $webPage[0];
 	}
 
 	function javascrip

001101 avatar Sep 29 '19 02:09 001101