Closed (fixed)
Project:
Statistics Pro
Version:
6.x-2.3
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Reporter:
Created:
15 Sep 2010 at 15:06 UTC
Updated:
6 Dec 2010 at 12:50 UTC
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
Comment #1
pumpkinkid commentedAlso getting this message on the status page...
Field drupal_statspro.day: no Schema type for mysql type date.
Comment #2
sphism commentedYep, 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()
Comment #3
hihappycats commentedyes, same here. anyone can help on this?
Comment #4
pumpkinkid commentedI 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.
Comment #5
rsevero commentedIsn't there any warning in your site's status page?
Comment #6
pumpkinkid commentedI don't have the module installed at the moment... however, #1 has a message that showed on my status page before.
Comment #7
rsevero commentedThe message at #1 is not important.
It is presented by the Schema module because it doesn't understand table columns of type "date".
Comment #8
pumpkinkid commentedAlright then besides that, no there were no other errors...
Comment #9
rsevero commentedMarking as fixed for now.
If there is new info, please reopen.
Comment #10
pumpkinkid commentedWait... 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.
Comment #11
rsevero commentedWhen you opened this issue there already was a newer version of this module. Could you please install the newest version and report back?
Comment #12
rsevero commentedSorry, 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.
Comment #13
rob c commentedinstall 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.
Comment #14
rsevero commentedThanks 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.
Comment #15
rob c commentedYour welcome :) but check out
http://drupal.org/node/963816
Comment #16
pumpkinkid commentedAwesome! 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!
Comment #17
Romejoe commentedGetting this with 2.3 as well. Should it be fixed in 2.3 or just in DEV version available atm?
Comment #18
Romejoe commentedSeems it should work with 2.3 regarding the patch notes so I reopen it.
Does not work for me...
Comment #19
rsevero commentedWhat 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?
Comment #20
Romejoe commentedThats 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.
Comment #21
rsevero commentedI'm glad it's working for you now.
Marking it only as fixed so it follows the normal closing path for issues.