I was tested again clean D7 + DC install from cvs and if I go to product site I get the text of title.

Component are enabled:
Entity - all
Rules -all
Views - all
DC - all + Commerce Bulk Product Creation

I can create single product, but could not use bulk add product function.
After if I click the link get the message:
"You have not created any product types yet. Go to the product type creation page to add a new product type.."

Regards,
Joe

CommentFileSizeAuthor
#2 882800.distinct_empty_check.patch1.21 KBrszrama

Comments

rszrama’s picture

Status: Active » Closed (duplicate)

Yeah, I get this error w/ Views, too. The simple solution is to wrap the if condition in that line with a !empty().

Related issue: #882800: Move DISTINCT to a query option

rszrama’s picture

Status: Closed (duplicate) » Fixed
StatusFileSize
new1.21 KB

Hmm, will mark this fixed with the attached patch so others who see this error can find the solution.

dj1999’s picture

Yes, it's help but what about bulk add product? Open an other issue?

jibberish’s picture

Hi

I'm getting the same issue when creating a view. Rszrama, please could you explain your solution a little? I'm a bit new to this.

Cheers

Jibb

rszrama’s picture

Actually, as far as I know, the patch I wrote has been applied to Views itself. If you update to the most recent dev version, the problem should disappear. Otherwise you need to download that file I posted to your views directory and type patch -p0 < 882800.distinct_empty_check.patch. If you're on windows, see if Drupal's patch documentation has any tips: http://drupal.org/patch/apply

jibberish’s picture

Hi Rszrama

Thanks very much! That did the trick. I did d/l the latest version of the module, which didn't sort it. That patch, however, did. I've never installed a patch on drupal before so thanks loads for also adding the instructions on that.

Much appreciated

Cheers

Jibb

Status: Fixed » Closed (fixed)

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

anumathew’s picture

Issue summary: View changes

I got this error when i used hook_views_query_alter(&$view, &$query). and am using latest views(version 7.x-3.10)

lperepolkin1’s picture

Version: 7.x-1.x-dev » 7.x-1.11
Status: Closed (fixed) » Needs work

This issue exists in views 7.x-3.11.
May have been fixed in prior versions but it is back again.

mglaman’s picture

Status: Needs work » Fixed

Looks like this got hijacked as a "Views" issue. The patch in question is also agains Views.

Status: Fixed » Closed (fixed)

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