piwik-sitesearch icon indicating copy to clipboard operation
piwik-sitesearch copied to clipboard

Undefined property: Piwik_SiteSearch_Controller

Open flammy opened this issue 13 years ago • 5 comments

Hi,

I installed this plugin (version: 0.1.3) on Piwik 1.5.

EDIT: Its displayed as 0.1.3 but I downloaded the 0.1.7 from here.

After the installation I get the following PHP error on the internal search page:

Notice: Undefined property: Piwik_SiteSearch_Controller::$range in [[..]]piwik/plugins/SiteSearch/Controller.php on line 34 

and Piwik prints the following backtrace:

#0 Piwik_ErrorHandler(8, 1 => 'Undefined property: Piwik_SiteSearch_Controller::$range', 2 => '[[..]]piwik/plugins/SiteSearch/Controller.php', 3 => 34, 4 => array ('view' => Piwik_View::__set_state(array('template' => 'SiteSearch/templates/index.tpl', 'smarty' => Piwik_Smarty::__set_state(array('template_dir' => array (0 => '[[..]]piwik/plugins', 1 => '[[..]]piwik/themes/default', 2 => '[[..]]piwik/themes'), 'compile_dir' => '[[..]]piwik/tmp/templates_c', 'config_dir' => 'configs', 'plugins_dir' => array (0 => '[[..]]piwik/core/SmartyPlugins', 1 => '[[..]]piwik/libs/Smarty/plugins'), 'debugging' => false, 'error_reporting' => '6143', 'debug_tpl' => '', 'debugging_ctrl' => 'NONE', 'compile_check' => true, 'force_compile' => false, 'caching' => 0, 'cache_dir' ...#1 Piwik_SiteSearch_Controller->index(array () called at [:]#2 call_user_func_array(array (0 => Piwik_SiteSearch_Controller::__set_state(array('pluginName' => 'SiteSearch', 'strDate' => NULL, 'date' => NULL, 'idSite' => 1, 'site' => Piwik_Site::__set_state(array('id' => 1)), 'period' => 'range')), 1 => 'index'), 1 => array ()) called at [[[..]]piwik/core/FrontController.php:127]#3 Piwik_FrontController->dispatch(array () called at [[[..]]piwik/index.php:53]

Is there a workaround?

greets

flam

flammy avatar Jun 22 '11 15:06 flammy

This happens when a custom date range is selected. Try a different period, and it should work. SiteSearch will be integrated in Piwik Core soon. This issue will be fixed during the course of the integration. Thanks for your patience...

timo-bes avatar Jun 22 '11 15:06 timo-bes

Hi,

thanks for the fast reply.

Now all works fine for me.

greets

flam

flammy avatar Jun 22 '11 15:06 flammy

Could you please provide a fix for this problem? The issue is already pretty old and SiteSearch has not become part of the Piwik Core yet.

My dashboard always shows "There is no data for this report." for the "Most popular internal searches" widget because of this problem.

thomasschuerger avatar Mar 15 '12 12:03 thomasschuerger

I would suspect the dashboard problem is unrelated (unless you are using period=range).

The plans to integrate SiteSearch in Core have just entered the active development phase. So we won't make you wait much longer...

timo-bes avatar Mar 15 '12 12:03 timo-bes

I have configured Piwik to use "Previous 7 days (not including today)". I have the same problem if I use "Last 7 days (including today)". Both seem to use a custom date range.

However, if I use "Current Week", for example, it works without any problems.

I'm looking forward to have the fixed SiteSearch in the Piwik Core.. :)

thomasschuerger avatar Mar 15 '12 13:03 thomasschuerger