• My account
    • (X)Sign in

      I am a returning customer at TYPO3 Multishop

      Enter your username and password here in order to log in on the website:

      Forgot your password?

      Not yet customer of TYPO3 Multishop?

      • Order history
      • Automatic generated e-mail history
      • Track your Order
      New at TYPO3 Multishop
You are here:

Help by translating Multishop in your local language

On the following page you can help by translating Multishop in your local language:

https://translation.typo3.org/projects/TYPO3.ext.multishop/

Spanish:

https://translation.typo3.org/es/TYPO3.ext.multishop/pi1/locallang.xlf

The following language are already translated by our supporters:

  • Dutch
  • German
  • French

in_array() error in : admin_stats_orders/turn_over_per_year.php


Author Message
woepwoep
Ronald Wopereis
Multishop newbie
Topic creator
registered since: 16.01.2013
Posts: 4
#1: PHP Warning: in_array() expects parameter 2 to be array, null given in /var/www/.../typo3conf/ext/multishop/scripts/admin_pages/includes/admin_stats_orders/turn_over_per_year.php line 28 (More information)


source code:
(in_array($row['id'], $this->get['tx_multishop_pi1']['status']) ?'checked="checked"':'')

cause of the error:
$this->get['tx_multishop_pi1']['status'] is not initialized as an (empty) array.

solution:
if (!$this->get['tx_multishop_pi1']['status'])
$this->get['tx_multishop_pi1']['status'] = array();

NB: same error in turn_over_per_month.php

[This article was edited 1 times, at last 04.11.2014 at 11:58.]
Written on: 04. 11. 2014 [11:56]
bas
Bas van Beek
Multishop guru
registered since: 12.05.2010
Posts: 644
Better turn your TYPO3 installation to production mode. Then you don't get this annoying warnings.

I'm fixing it but takes time (low prio at this moment).
Written on: 06. 11. 2014 [12:17]