Closed (outdated)
Project:
Views (for Drupal 7)
Version:
6.x-3.x-dev
Component:
Code
Priority:
Critical
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
22 Jun 2010 at 18:47 UTC
Updated:
25 Aug 2017 at 13:39 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
dawehnerIt would be cool if you could export one of the views which are not working anymore.
Comment #2
MatthijsG commented- same problem? http://drupal.org/node/834222
Comment #3
dawehnerIt's like comparing apples with pears. It makes no sense as long you don't have mapping between them.
This function can be called by a lot of! functions. So it is important to be able to reproduce it.
Does [834222] fix it for you?
If it's related to date module views i suggest you to move the issue to the date issue queue.
Comment #4
MatthijsG commentedClosed. Bug is coming from a CCK field, which gives the error in the View. Stil not clear which CCKfield :-(
Comment #5
Starminder commentedI was getting this on 6x-2.11, so I upgraded to 3xdev. Unfortunately that didn't fix it. Here's an export of the view that I'm trying to build. Would love to get past this....
Comment #6
dawehnerDo you have a recent version of cck installed?
Additional when you have such an error please enable the devel module on your site and write something like this into the drupal_clone function in includes/common.inc previous to the php error line.
Based on this you can find out what called the drupal_clone function and based on this you might be able to find the root of the problem.
Comment #7
esmerel commentedno activity for 30 days
Comment #8
kenorb commentedI've the same problem.
After I upgraded views to 6.x-3.0-alpha3 or 6.x-3.0-dev, I've following error:
I've CCK 6.x-3.0-alpha3, I had as well previous stable version (no difference).
So I think it's the same problem.
I see this error from CLI, because I can't see any error on the page (some MAMP bug):
This view DOES work with 6.x-2.12!
My exported view: http://pastebin.com/vxjQnx8H
Steps to reproduce:
1. Create 'company' content type and add few nodes.
2. Create 'product' content type and add few nodes.
3. Create 'Prices' vocabulary in taxonomy and add few nodes.
4. Tag some of the nodes with terms.
5. Import view from: http://pastebin.com/vxjQnx8H
6. Go to view page: /price_list
You should see the error (I think).
Query is as follow:
This is Taxonomy View and there are 3 relationships:
1. 'company': Taxonomy: Node (all nodes tagged by terms).
2. 'company2product': Taxonomy: Related terms (Relationship to 'company' - all terms related to 'company' content)
3. 'product': Taxonomy: Node (Relationship to 'company2product')
Basically the purpose of the terms are kind of gateway, which connecting two kind of nodes (something like node-reference, but without
There is another thing.
Testing page load of the same page: /price_list based on xdebug logs between 6.x-2.12 and 6.x-3.x - the difference of size xdebug log is very huge:
Looks like 3.x has some kind of loop.
I had that problem on Mac (MAMP) with PHP 5.2.17, I'll try to reproduce it on different environment (Linux).
Comment #9
kenorb commentedI've tested again, but on Linux this time.
I could reproduce this issue again, but I had to change the view a little:
Import from here: http://pastebin.com/cq6Xbx1y
Views: 6.x-3.0-alpha3 (BUT works on 6.x-3.0-dev)
CCK: 6.x-2.9
Backtrace:
Comment #10
kenorb commentedLooks like it was fixed somehow in dev.
It doesn't happen with latest dev.
My mistake, it doesn't work with latest dev (it was 2.12).
Comment #11
kenorb commentedHere is backtrace from latest dev:
Comment #12
kenorb commentedAttached feature including broken Views, Content types: company and product, and Taxonomy vocabulary.
After enabling go to: /price_list (to see the error).
Comment #13
dawehnerIn fact this variable isn't used.
I'm not sure whether this is the right way to fix it.
Comment #14
kenorb commentedWorks great for me, removes the fatal error.
Comment #15
dawehnerOkay the patch against 6.x-3.x worked, commited.
Sadly it didn't worked for 6.x-2.x
@kenorb
Does this all this applies to drupal7?
Comment #16
kenorb commentedI didn't test on Drupal 7
Comment #17
geerlingguy commentedMight be a problem on D7 as well; I'm testing Views Tree and some relationships, and I'm hitting this issue. I'll test and see. (Nevermind, seems to possibly be unrelated... possibly. See #1493234: Getting PHP Fatal error: __clone method called on non-object in views_handler_field_field.inc).
Comment #18
Dean Reilly commentedadjust_join shouldn't be being called when there's no join defined. This has been fixed in this issue #887768: Notice: Undefined index: in views_query->add_table().
The removal of the add_table line will break a relationship between a node and its terms (unless you're lucky and the term_node is already in the query for some other reason). See issue #1409640: Taxonomy terms on node relationship potentially joins on wrong table where the problem has been reported and I've posted a patch reverting dawehner's change above.
Comment #19
mustanggb commentedComment #20
kenorb commented