Skip to content
View in the app

A better way to browse. Learn more.

thirty bees forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

stats...again

Featured Replies

Not sure if you were fully done with Remove NVD3/gridhtml dependency, but at 9pm CST, I d/l 1.0.4rc1 with all your commits and u/l it over my test site. I uninstalled and deleted both the NVD3, and Grid HTML modules. I also u/l the latest Statsmodule . After that, any stats module that needs to display graphs, shows the following error... Graph engine selected is unavailable.

  • Author

Belay that comment, I did a diff with Beyond Compare wrong, now I got it right, and it works just fine. so....nevermind....

  • 1 year later...

I stumbled upon similar problem.

Stats module error msg:

Warning at line 427 in the file /classes/module/ModuleStats.php
[2] call_user_func() expects parameter 1 to be a valid callback, class 'StatsModule' does not have a method 'hookGraphEngine'
Would you be so kind to help me in resolving that issue.

 

Thanks in advance!

To fix an issue we'd need the required steps to reproduce this issue. As if one would explain it to a child: click here, do that, ...

Reprosteps: Go to Statistics > Best categories

During installation, statsmodule class is registered as default grid renderer. But this class does not implement hookGraphEngine. And it also does not extends ModuleGridEngineCore class as well, so it can't be used as a renderer at all.

The fix should consist of: 

1. fix the configuration key (drop it completely)

2. add additional checks to ModuleStatsCore::engineGrid to ensure grid engine implements hook,... or even better, drop this nonsense and call hook in standard way

3. add additional checks to ModuleStatsCore::createGrid to ensure grid engine implements ModuleGridEngineCore interface

... and the same for *Graph

 

Well, i use tb 1.0.x version, right after installing modules statsmodule and statsdata when open some statistic page's tabs i receive mentioned warning.

This message generated when following tabs:

  • best categories
  • best customers
  • best manufacturers
  • best suppliers
  • best vouchers
  • best selling products
  • browsers and operating systems
  • customer accounts
  • newsletter
  • orders profit
  • registered customer information
  • sales and orders
  • visitors origin

 

18 minutes ago, datakick said:

Reprosteps: Go to Statistics > Best categories

During installation, statsmodule class is registered as default grid renderer. But this class does not implement hookGraphEngine. And it also does not extends ModuleGridEngineCore class as well, so it can't be used as a renderer at all.

The fix should consist of: 

1. fix the configuration key (drop it completely)

2. add additional checks to ModuleStatsCore::engineGrid to ensure grid engine implements hook,... or even better, drop this nonsense and call hook in standard way

3. add additional checks to ModuleStatsCore::createGrid to ensure grid engine implements ModuleGridEngineCore interface

... and the same for *Graph

 

Thank you Petr for detailed explanation.

Unfortunately, because i'm not skilled in php programming, i can't appy steps you've described for this problem resolution.

I've found config key(s) and deleted it. Then i stopped. Further? Not sure i can do it.

Anyway thank you for prompt reaction.

2 hours ago, DaoKakao said:

Thank you Petr for detailed explanation.

 Unfortunately, because i'm not skilled in php programming, i can't appy steps you've described for this problem resolution.

I've found config key(s) and deleted it. Then i stopped. Further? Not sure i can do it.

Anyway thank you for prompt reaction.

To make it work, all you need to do is to delete this entry from configuration table:

DELETE FROM tb_configuration 
 WHERE name IN ('PS_STATS_GRID_RENDER', 'PS_STATS_RENDER') 
   AND value = 'statsmodule';

The core code will be fixed in one of the upcoming version

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.