[vz-users] PHP Error unexpected 'array_slice'

dl4huf dl4huf at t-online.de
Fri Sep 23 15:23:16 CEST 2016


Hallo

Ich habe auf meinem BananaPi eben ein Update gemacht :

root at alix ~www/volkszaehler.org (git)-[master] # git pull
remote: Counting objects: 231, done.
remote: Compressing objects: 100% (117/117), done.
remote: Total 231 (delta 150), reused 78 (delta 78), pack-reused 36
Receiving objects: 100% (231/231), 69.42 KiB, done.
Resolving deltas: 100% (160/160), completed with 34 local objects.
 From https://github.com/volkszaehler/volkszaehler.org
    c05e1a6..c0ce5bd  master     -> origin/master
 From https://github.com/volkszaehler/volkszaehler.org
  * [new tag]         0.5        -> 0.5
Updating c05e1a6..c0ce5bd
Fast-forward
  .travis.yml                                |   46 
+++++++++++++++----------
  composer.json                              |   10 +++---
  htdocs/frontend/index.html                 |   64 
++++++++++++++---------------------
  htdocs/frontend/javascripts/entities.js    |    2 +-
  htdocs/frontend/javascripts/entity.js      |    8 ++---
  htdocs/frontend/javascripts/functions.js   |   12 -------
  htdocs/frontend/javascripts/init.js        |   19 ++---------
  htdocs/frontend/javascripts/wui.js         |   45 
++++++++++++++-----------
  htdocs/frontend/stylesheets/style.css      |   28 ++++++++++++---
  lib/Controller/AggregatorController.php    |   15 ++++-----
  lib/Controller/CapabilitiesController.php  |    6 ++--
  lib/Controller/ChannelController.php       |    4 +--
  lib/Controller/Controller.php              |   37 ++++++++++++++++----
  lib/Controller/DataController.php          |   37 ++++++++++----------
  lib/Controller/EntityController.php        |    4 +--
  lib/Controller/IotController.php           |    5 +--
  lib/Exception/ConfigurationException.php   |   41 ++++++++++++++++++++++
  lib/Exception/HttpExceptionInterface.php   |   37 ++++++++++++++++++++
  lib/Interpreter/AccumulatorInterpreter.php |   41 +++++++++-------------
  lib/Interpreter/AggregatorInterpreter.php  |   94 
++++-----------------------------------------------
  lib/Interpreter/DataIterator.php           |   68 
+++++++++++++------------------------
  lib/Interpreter/ImpulseInterpreter.php     |   41 +++++++++-------------
  lib/Interpreter/Interpreter.php            |   55 
+++++++++++++++++-------------
  lib/Interpreter/SensorInterpreter.php      |   43 +++++++++--------------
  lib/Router.php                             |   21 ++++++------
  lib/Server/MiddlewareAdapter.php           |   23 +++++++------
  lib/View/JSON.php                          |   66 
+++++++++++++++++-------------------
  lib/View/View.php                          |   28 ++++++++++-----
  misc/controller/misc/log_weather.sh        |   81 
+++++++++++++++++++++++++++++++-------------
  misc/controller/misc/log_weather_wu.sh     |  144 
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
  phpunit.xml                                |    1 +
  test/GroupTest.php                         |   32 ++++++++++++++++++
  test/PushServerTest.php                    |   50 
+++++++++++++++++++++++++++
  33 files changed, 724 insertions(+), 484 deletions(-)
  create mode 100644 lib/Exception/ConfigurationException.php
  create mode 100644 lib/Exception/HttpExceptionInterface.php
  create mode 100644 misc/controller/misc/log_weather_wu.sh
  create mode 100644 test/PushServerTest.php
root at alix ~www/volkszaehler.org (git)-[master] #

Leider bekomme ich nach nun im Webfrontend die Meldung :

../middleware.php/data/a9651a40-09a1-11e2-9b23-7fd4ea837e18.json?from=1474549816798&to=1474636216798&tuples=&group=day 
<http://192.168.30.100/middleware.php/data/a9651a40-09a1-11e2-9b23-7fd4ea837e18.json?from=1474549816798&to=1474636216798&tuples=&group=day>:

Internal Server Error

Im Apache Error-Log stehen viele Zeilen dieser Art :

[Fri Sep 23 15:12:15 2016] [error] [client 192.168.30.74] PHP Parse 
error:  syntax error, unexpected 'array_slice' (T_STRING) in 
/var/www/volkszaehler.org/lib/Interpreter/SensorInterpreter.php on line 
51, referer: http://192.168.30.100/frontend/
[Fri Sep 23 15:12:16 2016] [error] [client 192.168.30.74] PHP Parse 
error:  syntax error, unexpected 'array_slice' (T_STRING) in 
/var/www/volkszaehler.org/lib/Interpreter/ImpulseInterpreter.php on line 
52, referer: http://192.168.30.100/frontend/
[Fri Sep 23 15:12:16 2016] [error] [client 192.168.30.74] PHP Parse 
error:  syntax error, unexpected 'array_slice' (T_STRING) in 
/var/www/volkszaehler.org/lib/Interpreter/SensorInterpreter.php on line 
51, referer: http://192.168.30.100/frontend/


Was geht hier schief  und was muss ich tun damit es wieder geht ?


Gruß Ronald






More information about the volkszaehler-users mailing list