Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CustomVariables.getCustomVariablesValuesFromNameId fails #2844

Closed
anonymous-matomo-user opened this issue Dec 30, 2011 · 2 comments
Closed
Labels
Bug For errors / faults / flaws / inconsistencies etc.
Milestone

Comments

@anonymous-matomo-user
Copy link

When calling to CustomVariables.getCustomVariablesValuesFromNameId the call fails with a Fatal error that says:
Fatal error: Call to undefined method Piwik_DataTable_Array::deleteColumn() in C:\inetpub\wwwroot\piwik\plugins\CustomVariables\API.php on line 87

The URL I was using to call was:
index.php?module=API&method=CustomVariables.getCustomVariablesValuesFromNameId&idSite=2&idSubtable=83&token_auth=[authkey]&period=day&date=2011-12-01,2011-12-30&format=xml

In looking at the code it looks like the problem is that deleteColumn is trying to be used to removing the pricing column but the object is not a dataTable and instead is a filtered view of the table.

@anonymous-matomo-user
Copy link
Author

Workaround (kind of) is to include the &_leavePriceViewedColumn=true parameter so that the price column gets included and the problematic code gets skipped.

@mattab
Copy link
Member

mattab commented Feb 9, 2012

(In [5790]) Fixes #2844
Thanks for the report

@anonymous-matomo-user anonymous-matomo-user added this to the 1.7 Piwik 1.7 milestone Jul 8, 2014
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug For errors / faults / flaws / inconsistencies etc.
Projects
None yet
Development

No branches or pull requests

2 participants