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

Ecommerce Log shows error when there are abandoned carts and no conversion yet #6713

Closed
DanMan opened this issue Nov 23, 2014 · 5 comments
Closed
Assignees
Labels
Bug For errors / faults / flaws / inconsistencies etc.
Milestone

Comments

@DanMan
Copy link

DanMan commented Nov 23, 2014

I am getting the following error when trying to view "Ecommerce & Goals" -> "Ecommerce Log" inside the "ACTIONDETAILS" column. The displayed value is "Array". This prevents Ecommerce tracking from working.

There is an error. Please report the message (Piwik 2.9.1) and full backtrace in the Piwik forums (please do a Search first as it might have been reported already!).

 Notice: Array to string conversion in /piwik/tmp/templates_c/06/e9/8d13f6b90910853526617a22da6eefba1c03ff46f16fda6987b440d9aa0c.php on line 87

Backtrace -->

 #0 Piwik\Error::errorHandler(...) called at [/piwik/tmp/templates_c/06/e9/8d13f6b90910853526617a22da6eefba1c03ff46f16fda6987b440d9aa0c.php:87]
 #1 __TwigTemplate_06e98d13f6b90910853526617a22da6eefba1c03ff46f16fda6987b440d9aa0c->doDisplay(...) called at [/piwik/vendor/twig/twig/lib/Twig/Template.php:279]
 #2 Twig_Template->displayWithErrorHandling(...) called at [/piwik/vendor/twig/twig/lib/Twig/Template.php:253]
 #3 Twig_Template->display(...) called at [/piwik/tmp/templates_c/74/36/7aa4f13776d81133be36fd2f1fe50896dacf55ad52275f4a7d1c86f28be1.php:138]
 #4 __TwigTemplate_74367aa4f13776d81133be36fd2f1fe50896dacf55ad52275f4a7d1c86f28be1->doDisplay(...) called at [/piwik/vendor/twig/twig/lib/Twig/Template.php:279]
 #5 Twig_Template->displayWithErrorHandling(...) called at [/piwik/vendor/twig/twig/lib/Twig/Template.php:253]
 #6 Twig_Template->display(...) called at [/piwik/tmp/templates_c/f5/9f/b463644af015dec0fb15b7ca0172d244cb0eb68d36ad4556dfe2a86f9e8a.php:115]
 #7 __TwigTemplate_f59fb463644af015dec0fb15b7ca0172d244cb0eb68d36ad4556dfe2a86f9e8a->doDisplay(...) called at [/piwik/vendor/twig/twig/lib/Twig/Template.php:279]
 #8 Twig_Template->displayWithErrorHandling(...) called at [/piwik/vendor/twig/twig/lib/Twig/Template.php:253]
 #9 Twig_Template->display(...) called at [/piwik/vendor/twig/twig/lib/Twig/Template.php:264]
 #10 Twig_Template->render(...) called at [/piwik/vendor/twig/twig/lib/Twig/Environment.php:292]
 #11 Twig_Environment->render(...) called at [/piwik/core/View.php:259]
 #12 Piwik\View->renderTwigTemplate(...) called at [/piwik/core/View.php:253]
 #13 Piwik\View->render(...) called at [/piwik/core/Plugin/ViewDataTable.php:415]
 #14 Piwik\Plugin\ViewDataTable->render(...) called at [/piwik/core/Plugin/Report.php:304]
 #15 Piwik\Plugin\Report->render(...) called at [/piwik/core/Plugin/Controller.php:329]
 #16 Piwik\Plugin\Controller->renderReport(...) called at [/piwik/plugins/Live/Controller.php:70]
 #17 Piwik\Plugins\Live\Controller->getVisitorLog(...) called at [:]
 #18 call_user_func_array(...) called at [/piwik/core/FrontController.php:582]
 #19 Piwik\FrontController->doDispatch(...) called at [/piwik/core/FrontController.php:96]
 #20 Piwik\FrontController->dispatch(...) called at [/piwik/plugins/Goals/Controller.php:109]
 #21 Piwik\Plugins\Goals\Controller->getEcommerceLog(...) called at [:]
 #22 call_user_func_array(...) called at [/piwik/core/FrontController.php:582]
 #23 Piwik\FrontController->doDispatch(...) called at [/piwik/core/FrontController.php:96]
 #24 Piwik\FrontController->dispatch(...) called at [/piwik/core/dispatch.php:36]
 #25 require_once(...) called at [/piwik/index.php:46]

Deleting the tmp/ folder contents doesn't fix it. See also here: http://forum.piwik.org/read.php?2,122159

@asafyish
Copy link

+1

@mattab mattab added the Bug For errors / faults / flaws / inconsistencies etc. label Nov 24, 2014
@mattab mattab added this to the Piwik 2.10.0 milestone Nov 24, 2014
@mattab
Copy link
Member

mattab commented Nov 24, 2014

Thanks for the report!

Could you please open the file piwik/tmp/templates_c/06/e9/8d13f6b90910853526617a22da6eefba1c03ff46f16fda6987b440d9aa0c.php and copy paste here the lines 80-90 ? (referring to the error message)

@safetys123
Copy link

I have already meet this problem.If you have 0 Ecommerce Orders and some Abandoned Carts,
then you click the Ecommerce Log link, you will see the issue.

@DanMan
Copy link
Author

DanMan commented Nov 24, 2014

Line 78 and following of requested file:

      if ($this->getAttribute((isset($context["row"]) ? $context["row"] : $this->getContext($context, "row")), "getMetadata", array(0 => "html_label_suffix"), "method")) {
          echo "<span class='label-suffix'>";
          echo $this->getAttribute((isset($context["row"]) ? $context["row"] : $this->getContext($context, "row")), "getMetadata", array(0 => "html_label_suffix"), "method");
          echo "</span>";
      }
  }
  // line 18
  echo "<span class=\"value\">";
  if ($this->getAttribute((isset($context["row"]) ? $context["row"] : $this->getContext($context, "row")), "getColumn", array(0 => (isset($context["column"]) ? $context["column"] : $this->getContext($context, "column"))), "method")) {
      echo $this->getAttribute((isset($context["row"]) ? $context["row"] : $this->getContext($context, "row")), "getColumn", array(0 => (isset($context["column"]) ? $context["column"] : $this->getContext($context, "column"))), "method");
  } else {
      echo "-";
  }

safetys123 is right. Now that some orders have been tracked, it seems to work as expected. The whole E-Com Log only has the 3 usual columns anymore. Before, it had more than a dozen. Did it dump the DB table?

@safetys123
Copy link

Now, How to solve the problems ??? somebody could sovle this problem...

@mattab mattab self-assigned this Nov 27, 2014
@mattab mattab changed the title Error on Ecommerce Log Ecommerce Log shows error when there are abandoned carts and no conversion yet Nov 27, 2014
@mattab mattab closed this as completed in 0805e5f Nov 27, 2014
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

4 participants