Closed (fixed)
Project:
Views (for Drupal 7)
Version:
7.x-3.8
Component:
Miscellaneous
Priority:
Major
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
21 May 2014 at 20:07 UTC
Updated:
23 Sep 2014 at 07:26 UTC
Jump to comment: Most recent
Comments
Comment #1
mas0h commentedI have the same issue after updating to 7.38.
Comment #2
jansete commentedNow I'm moving all my php fields in a module:
Is very simple:
My last code in global PHP:
Now
my_module.info
my_module.module
my_module.views.inc
handlers/my_module_get_my_function.inc
Comment #3
gngn commentedWe've got the same problem after updating to 7.38.
For now we reverted to 7.37.
Comment #4
bessone commentedSame problem to me, downgrading back to 7.37 fixed for now.
Comment #5
jansete commentedIt could be nice moving all to your modules, store PHP in database is not the best practice and is insecure, I'm moving all now and is very easy. Try it guys!
Comment #6
Berliner-dupe commentedSame problem here.
Move to module is very very expensive because i have a lot of different views.
Is no other fix available?
Edit: I went back to Views views-7.x-3.7.
Comment #7
acdtrp commentedthat''s a pretty serious bug! i'm glad that downgrade fixed it but i'm surprised that an official release with such bug can slip out.
Comment #8
dawehnerThis issue is most probably caused by #1055616: Query arguments should be replaced before generating cache ID ... on top of that I really think that views_php should be adapted
Comment #9
jayvolk commentedCount me among those that have been bitten by this bug... Had to roll back... found out because client found out first.. ugh.
Pretty awful bug...
Comment #10
elantion commentedYES, I have to downgrade to 3.7... everything doing perfect...Not even the 3.7-dev can work.
Comment #11
Anonymous (not verified) commentedim using 60 different views at my project... and a lot of them use Global PHP fields ... with selection about an 1500 results.... please im beggin you FIX that asap, because my boss is going to kill me soon... :(
Comment #12
mirsoft commentedI can confirm that solution in #2 works great.
The Global: PHP fields come from "Views PHP" module and this module should be always used only as a temporary quick solution (see note in the module description).
IMHO, modules like Views PHP should better never exist, because they attract developers with quick and dirty solutions, which may easily lead to overall misconcepted site. The issues like this and expensive fixes are then a result. Simply said, the best one can do is to uninstall this module, implement Views handlers properly and not wait for a patch - no matter what it costs.
Comment #13
johntang commentedNot all, How I can handlers filter with some views? Where is put the condition to detect special view?
Comment #14
dawehnerWrite a filter handler which uses the post_execute method for example should work, but those would have failed with the pager always already.
Comment #15
tuccio commentedHey this is a major bug, just stop asking people to remove a popular module and to write a custom module to avoid running into this bug.
A bunch of views were working fine before the update 7.x-3.8, then after the update they are broken, and now I should remove a IMO great module (View PHP) and write a custom module and fix 10's if not 100's of views and you claim this issue is fixed??? That's just damn selfish and unconsiderate of all the Drupal builders who are not rocket scientists like yourself, or just are busier than you.
Comment #16
tuccio commentedComment #17
tuccio commentedhttps://drupal.org/node/2276165
Comment #18
jaykaycgn commentedsame Issue here. #17 seems to fix this. please provide a warning that this views-update breaks the site when using views php or release a bugfix-version instead of a feature update, geez.
Comment #19
manoj.surala commentedSame issue and I downgraded to 7.x-3.7.
The problem is in 3.8 version it is just taking the pager limit what I'm giving for the pager as the higher limit and zero as lower limit while retrieving the result from the database. Hence only that particular number of records are being fetched. How can a bug like this come out in the stable release? This bug just ate a day of mine. I never thought this could be a version problem. First time I faced this kind of problem with views though.
Seems like I should give a try which is there in this link https://drupal.org/node/2276165
Comment #20
dawehnerThere is still a patch in #2276165: Pager disappears when Global: PHP used in Views 3.8
@manoj.surala
Believe me or not, but I consider that stable version of software have more bugs than dev versions, simply because stable means that nothing changes. Many bugs get fixed in DEV months before what you call a stable release comes out.
On top of that I wonder why you actually use views PHP if it does not have a stable release at all :P
Comment #21
weekbeforenextIn trying to convert my Views PHP fields to proper Views fields, I found this great resource for adding Views fields that are not related to database tables.
Database independent Views 3 custom field handlers
Hope this help others.
Comment #23
sadanand kenganal commentedSame issue and Revert back to 7.x-3.7.
Its working fine. Thanks guys.
I have written Global php for adding two fields. Its working fine. But, Views_cal module will not display page sum. All values will be zero. Any help. Please