Ergebnis 1 bis 12 von 12

Thema: Warning: count(): Parameter must be an array... Countable in

  1. #1
    Contao-Nutzer
    Registriert seit
    04.02.2018.
    Beiträge
    7

    Standard Warning: count(): Parameter must be an array... Countable in

    Wenn ich mich auf der Seitenstruktur befinde, zeigt es mir oberhalb des orangen Balken diese Meldung an:

    Warning: count(): Parameter must be an array or an object that implements Countable in C:\xampp\htdocs\muster\vendor\contao\core-bundle\src\Resources\contao\drivers\DC_Table.php on line 3548


    Die folgende Zeile ist gemeint:
    for ($i=0, $c=\count($this->root); $i<$c; $i++)

    Ausschnitt aus der Datei DC_Table.php:
    for ($i=0, $c=\count($this->root); $i<$c; $i++)
    {
    $tree .= $this->generateTree($table, $this->root[$i], array('p'=>$this->root[($i-1)], 'n'=>$this->root[($i+1)]), $blnHasSorting, -20, ($blnClipboard ? $arrClipboard : false), ($GLOBALS['TL_DCA'][$this->strTable]['list']['sorting']['mode'] == 5 && $blnClipboard && $this->root[$i] == $arrClipboard['id']), false, false, $arrFound);
    }



    Sobad ich eine Seite speichere kommt folgende Fehlermeldung (und es wird nichts gespeichert). Es spielt keine Rolle ob ich auf "speichern" oder "speichern und schliessen" klicke (Die Pflichtfelder habe ich ausgefüllt)

    Internal Server Error
    Was ist das Problem?
    Attempted to load class "Transliterator" from the global namespace. Did you forget a "use" statement?


    Ich habe gesehen, dass dieses Problem schon einige Male aufgetaucht ist aber nicht im Zusammenhang mit dieser "DC_Table.php"

    Ich habe mir dann mal die "composer.json" angesehen. Da ist die "Core-bundle" gar nicht erst aufgelistet oder liegt es an der php-version?
    "php": "^7.1",
    "contao\/calendar-bundle": "^4.5",
    "contao\/comments-bundle": "^4.5",
    "contao\/faq-bundle": "^4.5",
    "contao\/listing-bundle": "^4.5",
    "contao\/manager-bundle": "4.5.*",
    "contao\/news-bundle": "^4.5",
    "contao\/newsletter-bundle": "^4.5"
    },

    Ich hoffe jemand kann mir helfen. Danke schonmal im Voraus.


    Edit: Unter "Artikel" wird die gleiche Fehlermeldung überhalb des orangen Balkens angezeigt.
    Unter "System-Log" steht folgendes:
    A new entry "tl_page.id=8" has been created
    Geändert von kevbo24 (04.02.2018 um 10:27 Uhr)

  2. #2
    Community-Moderator
    Wandelndes Contao-Lexikon
    Avatar von Spooky
    Registriert seit
    12.04.2012.
    Ort
    Scotland
    Beiträge
    34.088
    Partner-ID
    10107

    Standard

    Führe ein composer update aus, damit du auf Contao 4.5.3 aktualisierst. Siehe https://github.com/contao/core-bundle/issues/1217

  3. #3
    Contao-Nutzer
    Registriert seit
    04.02.2018.
    Beiträge
    7

    Standard

    Zitat Zitat von Spooky Beitrag anzeigen
    Führe ein composer update aus, damit du auf Contao 4.5.3 aktualisierst. Siehe https://github.com/contao/core-bundle/issues/1217
    Ich bin schon auf 4.5.3.
    Ich habe Contao erst gestern zum ersten Mal installiert

  4. #4
    Community-Moderator
    Wandelndes Contao-Lexikon
    Avatar von Spooky
    Registriert seit
    12.04.2012.
    Ort
    Scotland
    Beiträge
    34.088
    Partner-ID
    10107

    Standard

    Zeige mal die Ausgabe von
    Code:
    composer show

  5. #5
    Contao-Nutzer
    Registriert seit
    04.02.2018.
    Beiträge
    7

    Standard

    Zitat Zitat von Spooky Beitrag anzeigen
    Zeige mal die Ausgabe von
    Code:
    composer show
    Composer could not find a composer.json file in C:\Users\Kevin
    To initialize a project, please create a composer.json file as described in the https://getcomposer.org/ "Getting Started" section

    Check ich nicht ich habe das file composer.json doch, so sieht es aus komplett:

    {
    "name": "contao\/managed-edition",
    "type": "project",
    "description": "Contao Open Source CMS",
    "license": "LGPL-3.0-or-later",
    "authors": [
    {
    "name": "Leo Feyer",
    "homepage": "https:\/\/github.com\/leofeyer"
    }
    ],
    "require": {
    "php": "^7.1",
    "contao\/calendar-bundle": "^4.5",
    "contao\/comments-bundle": "^4.5",
    "contao\/faq-bundle": "^4.5",
    "contao\/listing-bundle": "^4.5",
    "contao\/manager-bundle": "4.5.*",
    "contao\/news-bundle": "^4.5",
    "contao\/newsletter-bundle": "^4.5"
    },
    "config": {
    "component-dir": "assets"
    },
    "extra": {
    "branch-alias": {
    "dev-4.5": "4.5.x-dev"
    }
    },
    "scripts": {
    "post-install-cmd": [
    "Contao\\ManagerBundle\\Composer\\ScriptHandler::i nitializeApplication"
    ],
    "post-update-cmd": [
    "Contao\\ManagerBundle\\Composer\\ScriptHandler::i nitializeApplication"
    ]
    }
    }

  6. #6
    Community-Moderator
    Wandelndes Contao-Lexikon
    Avatar von Spooky
    Registriert seit
    12.04.2012.
    Ort
    Scotland
    Beiträge
    34.088
    Partner-ID
    10107

    Standard

    Du musst das Kommando im Root Ordner deiner Contao Installation ausführen. Dort wo die composer.json deiner Contao Installation ist.

  7. #7
    Contao-Nutzer
    Registriert seit
    04.02.2018.
    Beiträge
    7

    Standard

    Ist es so korrekt?

    Code:
    C:\xampp\htdocs\muster>composer show
    ausi/slug-generator                v1.0.0    Slug Generator
    clue/stream-filter                 v1.4.0    A simple and modern approach to stream filtering in PHP
    composer/ca-bundle                 1.1.0     Lets you find a path to the system CA bundle, and includes a fallba...
    contao-components/ace              1.2.9     ACE code editor integration for Contao Open Source CMS
    contao-components/chosen           1.1.10    Chosen integration for Contao Open Source CMS
    contao-components/colorbox         1.6.4     Colorbox integration for Contao Open Source CMS
    contao-components/colorpicker      1.4.0.2   Color picker integration for Contao Open Source CMS
    contao-components/compass          0.12.2.1  Compass integration for Contao Open Source CMS
    contao-components/contao           7.1.4     Contao Open Source CMS components
    contao-components/datepicker       2.2.0.4   Date picker integration for Contao Open Source CMS
    contao-components/dropzone         5.1.1     DropZone integration for Contao Open Source CMS
    contao-components/highlight        9.12.0    Highlight.js integration for Contao Open Source CMS
    contao-components/html5shiv        3.7.3     HTML5 Shiv integration for Contao Open Source CMS
    contao-components/installer        1.2.6     Contao components installer
    contao-components/jquery           1.12.4    jQuery integration for Contao Open Source CMS
    contao-components/jquery-ui        1.12.1.1  jQuery UI integration for Contao Open Source CMS
    contao-components/mediabox         1.5.4.2   Mediabox integration for Contao Open Source CMS
    contao-components/mediaelement     4.2.7     MediaElement.js integration for Contao Open Source CMS
    contao-components/mootools         1.6.0.5   MooTools integration for Contao Open Source CMS
    contao-components/respimage        1.4.2     Respimage.js integration for Contao Open Source CMS
    contao-components/simplemodal      2.0.7     SimpleModal integration for Contao Open Source CMS
    contao-components/swipe            2.0.6.2   A JavaScript touch slider with dot menu
    contao-components/tablesort        3.4.9     Contao Open Source CMS tablesort
    contao-components/tablesorter      2.0.5.6   jQuery tablesorter integration for Contao Open Source CMS
    contao-components/tinymce4         4.7.4     TinyMCE 4 integration for Contao Open Source CMS
    contao/calendar-bundle             4.5.3     Adds calendar functionality to Contao 4
    contao/comments-bundle             4.5.3     Adds comments functionality to Contao 4
    contao/core-bundle                 4.5.3     Contao 4 core bundle
    contao/faq-bundle                  4.5.3     Adds FAQ functionality to Contao 4
    contao/image                       0.3.5     Contao image library
    contao/imagine-svg                 0.1.5     Contao Imagine SVG library
    contao/installation-bundle         4.5.3     Required to install and update Contao 4
    contao/listing-bundle              4.5.3     Allows to list arbitrary data in the Contao 4 front end
    contao/manager-bundle              4.5.3     Contao 4 manager bundle
    contao/manager-plugin              2.2.0     Contao 4 manager plugin
    contao/news-bundle                 4.5.3     Adds news functionality to Contao 4
    contao/newsletter-bundle           4.5.3     Adds newsletter functionality to Contao 4
    doctrine/annotations               v1.6.0    Docblock Annotations Parser
    doctrine/cache                     v1.7.1    Caching library offering an object-oriented API for many cache back...
    doctrine/collections               v1.5.0    Collections Abstraction library
    doctrine/common                    v2.8.1    Common Library for Doctrine projects
    doctrine/dbal                      v2.6.3    Database Abstraction Layer
    doctrine/doctrine-bundle           1.8.1     Symfony DoctrineBundle
    doctrine/doctrine-cache-bundle     1.3.2     Symfony Bundle for Doctrine Cache
    doctrine/inflector                 v1.3.0    Common String Manipulations with regard to casing and singular/plur...
    doctrine/lexer                     v1.0.1    Base library for a lexer that can be used in Top-Down, Recursive De...
    egulias/email-validator            2.1.3     A library for validating emails against several RFCs
    fig/link-util                      1.0.0     Common utility implementations for HTTP links
    friendsofsymfony/http-cache        2.1.0     Tools to manage HTTP caching proxies with PHP
    friendsofsymfony/http-cache-bundle 2.1.2     Set path based HTTP cache headers and send invalidation requests to...
    guzzlehttp/guzzle                  6.3.0     Guzzle is a PHP HTTP client library
    guzzlehttp/promises                v1.3.1    Guzzle promises library
    guzzlehttp/psr7                    1.4.2     PSR-7 message implementation that also provides common utility methods
    imagine/imagine                    v0.7.1    Image processing for PHP 5.3
    jdorn/sql-formatter                v1.2.17   a PHP SQL highlighting library
    knplabs/knp-menu                   2.3.0     An object oriented menu library
    knplabs/knp-menu-bundle            v2.2.1    This bundle provides an integration of the KnpMenu library
    knplabs/knp-time-bundle            1.8.0     Knplabs time bundle makes your dates look sensible and descriptive
    leafo/scssphp                      v0.7.4    scssphp is a compiler for SCSS written in PHP.
    league/uri                         5.2.0     URI manipulation library
    league/uri-components              1.6.0     URI components manipulation library
    league/uri-hostname-parser         1.0.4     ICANN base hostname parsing implemented in PHP.
    league/uri-interfaces              1.0.0     Common interface for URI representation
    league/uri-manipulations           1.3.0     URI manipulation library
    league/uri-parser                  1.3.0     userland URI parser RFC 3986 compliant
    league/uri-schemes                 1.1.1     URI manipulation library
    lexik/maintenance-bundle           v2.1.3    This bundle allows you to place your website in maintenance mode by...
    matthiasmullie/minify              1.3.58    CSS & JavaScript minifier, in PHP. Removes whitespace, strips comme...
    matthiasmullie/path-converter      1.1.0     Relative path converter
    michelf/php-markdown               1.8.0     PHP Markdown
    monolog/monolog                    1.23.0    Sends your logs to files, sockets, inboxes, databases and various w...
    nelmio/cors-bundle                 1.5.4     Adds CORS (Cross-Origin Resource Sharing) headers support in your S...
    nelmio/security-bundle             2.4.0     Extra security-related features for Symfony: signed/encrypted cooki...
    ocramius/package-versions          1.2.0     Composer plugin that provides efficient querying for installed pack...
    oyejorge/less.php                  v1.7.0.14 PHP port of the Javascript version of LESS http://lesscss.org (Orig...
    paragonie/random_compat            v2.0.11   PHP 5.x polyfill for random_bytes() and random_int() from PHP 7
    patchwork/utf8                     v1.3.1    Portable and performant UTF-8, Unicode and Grapheme Clusters for PHP
    php-http/client-common             1.7.0     Common HTTP Client implementations and tools for HTTPlug
    php-http/discovery                 1.3.0     Finds installed HTTPlug implementations and PSR-7 message factories
    php-http/guzzle6-adapter           v1.1.1    Guzzle 6 HTTP Adapter
    php-http/httplug                   v1.1.0    HTTPlug, the HTTP client abstraction for PHP
    php-http/message                   1.6.0     HTTP Message related tools
    php-http/message-factory           v1.0.2    Factory interfaces for PSR-7 HTTP Message
    php-http/promise                   v1.0.0    Promise used for asynchronous HTTP requests
    phpspec/php-diff                   v1.1.0    A comprehensive library for generating differences between two hash...
    phpunit/php-token-stream           1.4.12    Wrapper around PHP's tokenizer extension.
    psr/cache                          1.0.1     Common interface for caching libraries
    psr/container                      1.0.0     Common Container Interface (PHP FIG PSR-11)
    psr/http-message                   1.0.1     Common interface for HTTP messages
    psr/link                           1.0.0     Common interfaces for HTTP links
    psr/log                            1.0.2     Common interface for logging libraries
    psr/simple-cache                   1.0.0     Common interfaces for simple caching
    sensio/distribution-bundle         v5.0.21   Base bundle for Symfony Distributions
    sensio/framework-extra-bundle      v5.1.4    This bundle provides a way to configure your controllers with annot...
    sensiolabs/ansi-to-html            v1.1.3    A library to convert a text with ANSI codes to HTML
    sensiolabs/security-checker        v4.1.7    A security checker for your composer.lock
    simplepie/simplepie                1.5.1     A simple Atom/RSS parsing library for PHP
    swiftmailer/swiftmailer            v6.0.2    Swiftmailer, free feature-rich PHP mailer
    symfony/monolog-bundle             v3.1.2    Symfony MonologBundle
    symfony/polyfill-apcu              v1.6.0    Symfony polyfill backporting apcu_* functions to lower PHP versions
    symfony/polyfill-intl-icu          v1.6.0    Symfony polyfill for intl's ICU-related data and classes
    symfony/polyfill-mbstring          v1.6.0    Symfony polyfill for the Mbstring extension
    symfony/polyfill-php56             v1.6.0    Symfony polyfill backporting some PHP 5.6+ features to lower PHP ve...
    symfony/polyfill-php70             v1.6.0    Symfony polyfill backporting some PHP 7.0+ features to lower PHP ve...
    symfony/polyfill-util              v1.6.0    Symfony utilities for portability of PHP codes
    symfony/swiftmailer-bundle         v3.1.6    Symfony SwiftmailerBundle
    symfony/symfony                    v3.4.3    The Symfony PHP framework
    tecnickcom/tcpdf                   6.2.13    TCPDF is a PHP class for generating PDF documents and barcodes.
    terminal42/header-replay-bundle    1.4.1     Send preflight requests for user context headers and replay them fo...
    true/punycode                      v2.1.1    A Bootstring encoding of Unicode for Internationalized Domain Names...
    twig/twig                          v2.4.4    Twig, the flexible, fast, and secure template language for PHP
    ua-parser/uap-php                  v3.5.0    A multi-language port of Browserscope's user agent parser.
    webmozart/assert                   1.2.0     Assertions to validate method input/output with nice error messages.
    webmozart/path-util                2.3.0     A robust cross-platform utility for normalizing, comparing and modi...
    Geändert von kevbo24 (04.02.2018 um 13:31 Uhr)

  8. #8
    Community-Moderator
    Wandelndes Contao-Lexikon
    Avatar von Spooky
    Registriert seit
    12.04.2012.
    Ort
    Scotland
    Beiträge
    34.088
    Partner-ID
    10107

    Standard

    Sieht korrekt aus. Reporte das in dem verlinkten Ticket und poste genau Angaben über deine Server Umgebung.

  9. #9
    Contao-Nutzer
    Registriert seit
    04.02.2018.
    Beiträge
    7

    Standard

    Zitat Zitat von Spooky Beitrag anzeigen
    Sieht korrekt aus. Reporte das in dem verlinkten Ticket und poste genau Angaben über deine Server Umgebung.
    verlinkten Ticket? Was ist damit gemeint?

    Server Umgebung? Ich mache das ganze momentan über localhost. Was brauchst du denn bzw. wo/wie kann ich das herausfinden?

    Sorry für die Umstände

  10. #10
    Contao-Urgestein Avatar von fiedsch
    Registriert seit
    09.07.2009.
    Ort
    München
    Beiträge
    2.943

    Standard

    Zitat Zitat von kevbo24 Beitrag anzeigen
    verlinkten Ticket? Was ist damit gemeint?
    Der Link in Post #2.

    Serverumgebung: Versionen der verwendeten Software. also PHP, Datenbank, ...
    Contao-Community-Treff Bayern: http://www.contao-bayern.de

  11. #11
    Community-Moderator
    Wandelndes Contao-Lexikon
    Avatar von Spooky
    Registriert seit
    12.04.2012.
    Ort
    Scotland
    Beiträge
    34.088
    Partner-ID
    10107

    Standard

    Plus die Ausgabe von composer show.

  12. #12
    Contao-Nutzer
    Registriert seit
    04.02.2018.
    Beiträge
    7

    Standard

    Zitat Zitat von fiedsch Beitrag anzeigen
    Der Link in Post #2.

    Serverumgebung: Versionen der verwendeten Software. also PHP, Datenbank, ...
    Zitat Zitat von Spooky Beitrag anzeigen
    Plus die Ausgabe von composer show.
    ok Danke, ich versuche es mal!

    Edit:
    Scheint als wäre ich nicht der einzige mit diesem Probelm:
    https://github.com/contao/core-bundle/issues/1353
    Geändert von kevbo24 (04.02.2018 um 16:23 Uhr)

Aktive Benutzer

Aktive Benutzer

Aktive Benutzer in diesem Thema: 1 (Registrierte Benutzer: 0, Gäste: 1)

Lesezeichen

Lesezeichen

Berechtigungen

  • Neue Themen erstellen: Nein
  • Themen beantworten: Nein
  • Anhänge hochladen: Nein
  • Beiträge bearbeiten: Nein
  •