Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Just installed 7.x-3.x-dev. Went to "calendar/month" and got
Fatal error: Call to a member function use_pager() on a non-object in C:\wamp\www\drupal7\sites\all\modules\views\includes\view.inc on line 510
Comments
Comment #1
KarenS CreditAttribution: KarenS commentedIf you bump up from 7.2 to 7.3 all the handlers have changed and you will have to clear the caches. After that you will find that you need to re-create any custom views you created because the handlers are different, so you will get a lot of messages about missing handlers.
This branch is still under development, but I'm happy to have as many people trying it out as possible because I want to switch to it soon. The code is much simpler and will be easier to maintain, which should mean it will work more reliably.
The downside of the new branch is that any existing views will need to be fixed to use the new handlers. In most cases it will be easier to just delete old views and start over.
So you won't want to jump back and forth between 7.2 and 7.3.
Comment #2
NancyDruThis was a brand new install, so core should have cleared the cache, but I did it manually any way. The view I was trying is the standard one you provide. I deleted it and installed 7.2 - well, you see my other issues...
If you would prefer, I will delete 7.2 and re-install 7.3; the site is nowhere near ready yet.
Comment #3
KarenS CreditAttribution: KarenS commentedYou will save yourself an update later if you just start out on 7.3. It is not ready for production, but if you're not either you might as well use it.
If you are using the tarball, there are lots of issues fixed today that are not in the tarball. You may want to wait and try again tomorrow with all the latest fixes in it.
Comment #4
NancyDruOkay, I disabled and uninstalled 7.2, with liberal cache flushing. Then I installed 7.3, with more cache flushing). I will update it again tomorrow.
This problem is gone now.
Comment #5
rjacobs CreditAttribution: rjacobs commentedSame problem here with both a clean install, and on an install that had Calendar 7.x-2.x-dev previously (which was uninstalled in favor of moving to 7.x-3.x-dev).
Using:
Calendar 7.x-3.x-dev (2011-Jul-18)
Date 7.x-2.0-alpha3
Views 7.x-3.0-rc1
Ctools 7.x-1.0-beta1
Could something in the updates between the 15th and the 18th be a variable in this issue?
Trying to edit the code calendar view (bundled with the module) leads to the error, and a white screen. From my php error log:
PHP Fatal error: Call to a member function use_pager() on a non-object in /[...]/htdocs/sites/all/modules/views/includes/view.inc on line 510
I've tried liberal cache clearing on both installs (via devel and the core Drupal performance options) but this same error results. Is there any other steps I should try, or any other info I can pass on? Once again, I'm seeing this same problem on a Drupal install that previously had Calendar 7.x-2.x-dev installed (and then fully uninstalled) and a clean Drupal install.
Comment #6
rjacobs CreditAttribution: rjacobs commentedOk, I spoke too soon. Sorry Karen, I forgot to heed your note on the project page about using the latest dev versions of all dependencies. The following module combinations have worked for me (no PHP Fatal error) upon further testing:
Calendar 7.x-3.x-dev (2011-Jul-18)
Date 7.x-2.x-dev (2011-Jul-18)
Views 7.x-3.x-dev (2011-Jul-18)
Ctools 7.x-1.x-dev (2011-Jul-18)
And:
Calendar 7.x-3.x-dev (2011-Jul-18)
Date 7.x-2.x-dev (2011-Jul-18)
Views 7.x-3.0-rc1
Ctools 7.x-1.0-beta1
So it looks like the Date module version was the one that needed changing in my case.
Sorry that I missed this the first time, but I'm hoping that someone else encountering this problem may get some assistance by reading this.
Ryan
Comment #7
rjacobs CreditAttribution: rjacobs commentedEdit: Changing status (hopefully to the correct setting).
Comment #8
connellc CreditAttribution: connellc commentedComment #9
connellc CreditAttribution: connellc commentedComment #10
connellc CreditAttribution: connellc commentedI haven't even used Calendar yet, nor I have enabled it in a view. It is inactive in the blocks as well.
I guess I will just have to uninstall it again.
And - yes, I do have 7.3; and - no, I haven't created any custom views of this module.
Comment #11
KarenS CreditAttribution: KarenS commented@connelic, I have no idea what you're saying by re-opening this issue, and 'needs review' means there is a patch to review. If you went from 7.2 to 7.3 you have to flush the caches several times even if you never used the views. If you're saying you have a bug with the latest dev version of all these modules, *after* flushing the caches and confirming that the default view doesn't need to be reverted, then you need to provide clear steps to reproduce your problem.
Comment #12
KarenS CreditAttribution: KarenS commentedYou also need to clarify if you are using the -dev version of all the related modules, Date, Calendar, Views and CTools. Saying you're using '7.3' does not tell me if you're using the dev version. There is also a 7.3 alpha version.
Comment #13
ausj02 CreditAttribution: ausj02 commentedAlso having problems with this module when using Calendar. Everything is up to date. Using Drupal 7.7, which might present a compatibility problem.
Fatal error: Call to a member function use_pager() on a non-object in /home/.../modules/views/includes/view.inc on line 510
Drupal Version: 7.7
Calendar: 7.x-3.0-alpha1
Views: 7.x-3.0-rc1
Date: 7.x-2.0-alpha3
Ctools: 7.x-1.0-rc1
Comment #14
NancyDruPersonally, I use the -dev version of all the above and it works fine for me.
Comment #15
KarenS CreditAttribution: KarenS commented@ausj02, you are not using the dev version of Date or Calendar. You need to use the *dev* version of the code until I can cut a new release (which I can't do until a couple more critical bugs get fixed, and I can't confirm that the bugs are fixed when people who are not using the latest code keep reopening these bug reports to say the 'latest' code is still broken).
Comment #16
NancyDruWell, I think you're doing a marvelous job, Karen. Everything I've run into has been fixed rather quickly.
Comment #17
rjacobs CreditAttribution: rjacobs commentedAgreed with Nancy, I've had great results with Calendar on D7 ever since I started using the dev version of it and Date.
Cheers,
Ryan
Comment #18
shenzhuxi CreditAttribution: shenzhuxi commentedThe latest 7.3 codes on git stall have this problem.
Comment #19
NancyDruAs you can see, I originally had this problem with v2. I disabled the module and cleared cache. Then I deleted all of the module code and downloaded version 3 (-dev) and enabled it. Then I cleared the cache again. After that the problem went away.
Comment #20
StephenRobinson CreditAttribution: StephenRobinson commentedI have never used the calendar before and I get this error when trying to clone views with 7.x-3.0-alpha1 and 7.x-3.x-dev 2011-Aug-07.
Fatal error: Call to a member function use_pager() on a non-object in /www/htdocs/sites/all/modules/contrib/views/includes/view.inc on line 510
Comment #21
StephenRobinson CreditAttribution: StephenRobinson commentedI have upgraded to the dev versions of date and calendar on a NEW install and I get:
Fatal error: Call to a member function use_pager() on a non-object in /www/htdocs/sites/all/modules/contrib/views/includes/view.inc on line 510 - actually after clearing caches, I got past this error....ED
Comment #22
KarenS CreditAttribution: KarenS commentedI'm going to call this fixed. It has turned into a thread where people report there is a problem using older versions and finally realize it works if you use the latest code and clear the caches.
Comment #23
andrea_soto CreditAttribution: andrea_soto commentedI still have this problem
It was a brand new install with :
Calendar : 7.x-3.0-alpha1 tar.gz (52.16 KB) | zip (68.4 KB) 2011-Aug-01 Notes
Date: 7.x-2.0-alpha3 tar.gz (165.58 KB) | zip (199.81 KB) 2011-Apr-26 Notes
views: 7.x-3.0-rc1 tar.gz (1.41 MB) | zip (1.6 MB) 2011-Jun-17 Notes
Chaos: 7.x-1.0-rc1 tar.gz (372.15 KB) | zip (562.7 KB) 2011-Jul-28 Notes
And I got this error:
"Fatal error: Call to a member function use_pager() on a non-object in /home/andreasa/mysite/sites/all/modules/views/includes/view.inc on line 510"
Then I moved to the latest greatest dev version of all of them , and same problem.
I did clear my cache
Comment #24
NancyDruClear it again. Clear the Views cache. Then clear the Drupal cache again.
Comment #25
juampynr CreditAttribution: juampynr commentedConfirmed, the first set of module versions mentioned ad comment #6 worked for me too. I already had content and views listing nodes with date fields. I did not have to do anything extra to make it work. Updating date module to the dev version fixed the bug.
Comment #26
ausj02 CreditAttribution: ausj02 commentedAppreciate it Karen! Thanks for all your work on the module.
Comment #27
Starminder CreditAttribution: Starminder commented+1
Comment #28
KarenS CreditAttribution: KarenS commentedI will try one more time to mark this fixed.
Comment #29
Starminder CreditAttribution: Starminder commentedNote: all of my modules are up to date as of today, yet I started seeing this today. I've cleared cache, run cron, redid my calendar views. I'm definitely open to suggestions.
Comment #30
NancyDruDisable the module (do NOT uninstall). Delete all the code, clear the cache. Re-download the code; clear the cache. Re-enable the module; clear the cache; clear Views cache. Try again.
If it's okay now, mark this issue fixed.
Comment #31
shenzhuxi CreditAttribution: shenzhuxi commented#6 confirmed
use the latest date module solve it.
Comment #32
DrDres CreditAttribution: DrDres commentedi use the latest date module and I still get the error...
Comment #33
NancyDruUse the latest Views, Ctools, Date, and Calendar together - all four have to be in synch. Then see #30.
Comment #34
drywall CreditAttribution: drywall commentedPlease note: As of this writing, you must be using the latest DEVELOPMENT version of Date (7.x-2.x-dev), not the latest release version (7.x-2.0-alpha3). At least, that's the only way I could get rid of this error.
Comment #35
connellc CreditAttribution: connellc commentedI just stopped using the module altogether.
Comment #36
Starminder CreditAttribution: Starminder commented@connelc - you're not the only one with the problem.
Comment #37
NancyDruIt works just fine for me - see #30.
Comment #38
KarenS CreditAttribution: KarenS commented@Starminder, what version of everything are you using, Date, Calendar, Views, and CTools? "all of my modules are up to date as of today" does not tell me what version of everything you are using, which is the key question.
Comment #39
Starminder CreditAttribution: Starminder commentedat the time I posted all were current dev versions. I have a multisite install and was able to fix this on the primary site, so for now I'm OK. When I try to go to one of the other sites I'm getting this no matter what i do, so it seems I'll need to delete the module which may play havoc on the site that's working, so for now, I'm leaving well enough alone.
Comment #40
KarenS CreditAttribution: KarenS commentedThen the important question is first, did you clear the caches repeatedly on the sites that are not working? And if that did not work, what is different on the sites that are not working from the one that is?
Comment #41
NancyDruAnd, remember that the Views cache clearing is a separate function...
Comment #42
Sharique CreditAttribution: Sharique commentedTo me this issue may be due to date module, after updating to alpha4 (released yesterday), it is resolved.
Comment #43
KarenS CreditAttribution: KarenS commentedI was never able to replicate this issue and there have been lots of changes since it was reported. Check the very latest dev versions of both Date and Calendar, clear the caches, re-edit the view and re-save it. If there is still a problem in the latest code you can reopen.
Comment #44
shreeni2 CreditAttribution: shreeni2 commentedThanks Karen,
Its working smooth for me!
Comment #45
drupalninja99 CreditAttribution: drupalninja99 commentedI have tried a bunch of different combinations of version, what are the exact versions I need to get rid of the use_pager() error?
Comment #46
SocialNicheGuru CreditAttribution: SocialNicheGuru commentedI just came across this.
I had a view plugin for the page display
I remove the plugin
the view showed "display all" but when I clicked on the display widget, nothing was selected.
selecting one of the remaining option made the error go away
Comment #47
golubovicm CreditAttribution: golubovicm as a volunteer commentedAnd that bug is still present. Tried to import view from a bit older project to brand new (core and all modules are up to date) and I'm getting error:
Fatal error: Call to a member function use_pager() on a non-object in /var/www/html/tmb/sites/all/modules/views/includes/view.inc on line 690
Comment #48
golubovicm CreditAttribution: golubovicm as a volunteer commentedFound out what caused this issue for me - on site where I was doing export I had installed "Views load more" module and on site where I was importing that view I didn't. I think that's a bug in view import process. I didn't get any error during the import and it succeeded as everything was ok.