• Hi
    I recently installed your plugin, and now am getting the following error
    Uninitialized string offset: 0 in /www/wp-content/plugins/query-monitor/collectors/environment.php on line 256

    It happens if you click within the dashboard on the upper line to open the daschboard of Query Monitor

    Can you have a look at this please
    It seems that a value is checked, that is not present
    Thanks for your help,
    Peter

Viewing 3 replies - 16 through 18 (of 18 total)
  • Thread Starter Peter Smits

    (@psmits1567)

    Hi John

    My apologies as it was not clear to me where this list resides.
    But without my fix the list is still there
    Extensions
    50
    bcmath 7.2.16
    bz2 7.2.16
    calendar 7.2.16
    cgi-fcgi false
    Core 7.2.16
    ctype 7.2.16
    curl 7.2.16
    date 7.2.16
    dom 20031129
    exif 7.2.16
    fileinfo 1.0.5
    filter 7.2.16
    ftp 7.2.16
    gd 7.2.16
    gettext 7.2.16
    hash 1.0
    iconv 7.2.16
    imap 7.2.16
    intl 1.1.0
    json 1.6.0
    libxml 7.2.16
    mbstring 7.2.16
    mysqli 7.2.16
    mysqlnd 5.0.12-dev
    openssl 7.2.16
    pcre 7.2.16
    PDO 7.2.16
    pdo_mysql 7.2.16
    pdo_sqlite 7.2.16
    Phar 2.0.2
    posix 7.2.16
    pspell 7.2.16
    Reflection 7.2.16
    session 7.2.16
    SimpleXML 7.2.16
    soap 7.2.16
    sockets 7.2.16
    SPL 7.2.16
    sqlite3 7.2.16
    standard 7.2.16
    tidy 7.2.16
    tip_wh 11
    tokenizer 7.2.16
    xml 7.2.16
    xmlreader 7.2.16
    xmlwriter 7.2.16
    xsl 7.2.16
    Zend OPcache 7.2.16
    zip 1.15.4
    zlib 7.2.16

    Database
    RDBMS MariaDBjessie
    Server Version 5.5.5
    Extension mysqli
    Client Version 50012 (5.0.12)

    If I look at the list provided by query then the extension tip_wh is causing this
    I do not know what extension or core part this is.

    Regards,

    Thread Starter Peter Smits

    (@psmits1567)

    Hi John

    Did you manage to find the root cause of this problem ?
    Currently even with my fix in place I get the error again
    [16-Jun-2019 07:40:03 UTC] PHP Notice: Uninitialized string offset: 0 in /www/wp-content/plugins/query-monitor/collectors/environment.php on line 257

    I noticed in my access log the following
    hospiceamandi.nl 2a01:4f8:141:332a::2 – – [16/Jun/2019:07:39:42 +0200] “GET /robots.txt HTTP/1.1” 301 243 “-” “Mozilla/5.0 (compatible; BLEXBot/1.0; +https://webmeup-crawler.com/)” 295 462
    hospiceamandi.nl 2a01:4f8:141:332a::2 – – [16/Jun/2019:07:39:42 +0200] “GET /robots.txt HTTP/1.1” 200 289 “-” “Mozilla/5.0 (compatible; BLEXBot/1.0; +https://webmeup-crawler.com/)” 321 522
    Could a call like this cause the problem ?
    All versions of plugins are indicated correctly

    Thread Starter Peter Smits

    (@psmits1567)

    Hi John

    As I indicated before the extension tip_wh is causing the error.
    This extension does not have a version !
    If this extension is encountered the first part is empty
    So we need to check if the part is empty or not
    I have added this to your loop
    foreach ( $parts as $part ) {
    if (!empty($part)){
    if ( is_numeric( $part[0] ) ) {
    $version = $part;
    break;
    }
    }
    }

    Now it is working without errors, for the extension it now reports the day indicated in the string

Viewing 3 replies - 16 through 18 (of 18 total)
  • The topic ‘Uninitialized string offset: 0 on line 265’ is closed to new replies.