I am receiving this and other errors when trying to view different pages.

reports/statspro/user | Fatal error: Call to a member function set_data() on a non-object

reports/statspro/pi | Fatal error: Call to a member function set_data()

reports/statspro/node | Fatal error: Call to a member function set_data() on a non-object

reports/statspro/log | Fatal error: Call to a member function set_data() on a non-object

reports/statspro/comment | Fatal error: Call to a member function set_data() on a non-object in

reports/statspro/overview | Fatal error: Call to undefined method stdClass::get_chart()

Any ideas?

Comments

pumpkinkid’s picture

Also getting this message on the status page...

Field drupal_statspro.day: no Schema type for mysql type date.

sphism’s picture

Priority: Normal » Critical

Yep, same here, i just get WSOD for the whole package, shame...

just tried to fix but couldn't...

reports/statspro/overview | Fatal error: Call to undefined method stdClass::get_chart()

hihappycats’s picture

yes, same here. anyone can help on this?

pumpkinkid’s picture

I started running into some caching issues with other modules, not sure if the issue was related... may give this module another shot knowing what I know now.

rsevero’s picture

Assigned: Unassigned » rsevero
Category: bug » support
Priority: Critical » Normal

Isn't there any warning in your site's status page?

pumpkinkid’s picture

I don't have the module installed at the moment... however, #1 has a message that showed on my status page before.

rsevero’s picture

The message at #1 is not important.

It is presented by the Schema module because it doesn't understand table columns of type "date".

pumpkinkid’s picture

Alright then besides that, no there were no other errors...

rsevero’s picture

Status: Active » Fixed

Marking as fixed for now.

If there is new info, please reopen.

pumpkinkid’s picture

Status: Fixed » Active

Wait... how is it fixed? I can't use the module because I get errors all over the place.... Others had the same problem... and my only solution was to remove it...

It's not fixed, but I would be willing to re-install it to help troubleshoot the module.

rsevero’s picture

Status: Active » Postponed (maintainer needs more info)

When you opened this issue there already was a newer version of this module. Could you please install the newest version and report back?

rsevero’s picture

Sorry, I confused Statistics Pro module and the Charts and Graphs module versions.

Please re-enable Statistics Pro to see if the error is still there.

Let me know which version of Charts and Graphs are you using also.

rob c’s picture

Version: 6.x-2.1 » 6.x-2.2

install Drupal 6.19

attempt 1:
install Statistics
install Charts and Graphs
install Charts and Graphs: Open Flash Charts 2
install Statistics advanced settings
install Statistics Pro
config access logging
create a post
access the post with another (not logged in) browser
run cron
> stats overview page is broken

attempt 2:
install Statistics
install Statistics advanced settings
install Statistics Pro
config access logging
create a post
access the post with another (not logged in) browser
run cron
> stats overview page works fine (and looks nice!)

install Charts and Graphs
install Charts and Graphs: Open Flash Charts 2
> stats overview page is broken

attempt 3:
install Statistics
config access logging
create a post
access the post with another (not logged in) browser
install Charts and Graphs
install Charts and Graphs: Open Flash Charts 2
install Statistics Pro

> stats overview page is broken

also tried to:
empty Statistics table at config page
rerun cron

no errors on the status report, error is the same as above at all tests.
yes, the swftools status page displays a flash demo
yes, the openflash chart libs are in the right place
yes, this is a localized site, but not i18n, just and only the core modules and the modules listed below.
yes, i've tried both 'SWFObject 2 - JavaScript' and the 'Direct embedding - do not use JavaScript replacement' options at the SWF config page.

disable the chart and graphs module and the stats page is working again.

versions:
Statistics advanced settings 6.x-1.5
Statistics Pro 6.x-2.2
Charts and Graphs 6.x-2.4
Charts and Graphs: Open Flash Charts 2 6.x-2.4
SWF Tools 6.x-2.5
SWFObject2 6.x-2.5
(Admin 6.x-2.0 and Demo module to make live a lil more easy, but i also tried it without on a clean install)

Not sure if this is an Charts/StatsPro issue, but it sure looks like it.

it's only the overview page that is broken, so it looks like the other bug broken overview after update, but it's Not fixed in 2.2.

rsevero’s picture

Category: support » bug
Status: Postponed (maintainer needs more info) » Fixed

Thanks for your detailed info. With it I finally managed to understand what was wrong: incomplete support for Charts and Graphs 6.x-2.x.

Fixed with http://drupal.org/cvs?commit=447004.

rob c’s picture

Your welcome :) but check out
http://drupal.org/node/963816

pumpkinkid’s picture

Awesome! Thanks AllRob, I hadn't even gotten a chance to go through your steps! It did sound exactly what the issue was, but I wasn't sure :-) Nice to see this being taken care of!

Romejoe’s picture

Status: Active » Fixed

Getting this with 2.3 as well. Should it be fixed in 2.3 or just in DEV version available atm?

Romejoe’s picture

Version: 6.x-2.2 » 6.x-2.3
Status: Fixed » Active

Seems it should work with 2.3 regarding the patch notes so I reopen it.
Does not work for me...

rsevero’s picture

Status: Fixed » Postponed (maintainer needs more info)

What Charts and Graphs version are you using? If it's not the latest, please upgrade it.

To test, first go to the modules page and enable the following modules:
* Advanced Help
* Charts and Graphs
* all Charts and Graphs charting libraries you want to use
* Google Charts and Bluff even if you don't want to use them as they will help debugging this issue

Go to your site's status page. Is there and warnings produced by Charts and Graphs? If there is, fix them.

Please go to Charts and Graphs Advanced Help page for each charting library enabled and call their example pages. Do you get the graphs or some error? Which error do you get with which charting library?

Romejoe’s picture

Status: Postponed (maintainer needs more info) » Closed (fixed)

Thats it. Got it working. I did not enable a library since I assumed they are modules to be used with other addons not libraries.
Sorry for bothering you.

rsevero’s picture

Category: bug » support
Status: Closed (fixed) » Fixed

I'm glad it's working for you now.

Marking it only as fixed so it follows the normal closing path for issues.

Status: Fixed » Closed (fixed)

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