• Patrice

    (@patricevigier)


    Hello,

    For a while I have string(0) that shows briefly from time to time.

    Also on some pluging update I get something like
    Update Failed: string(0) "" string(0) "" {"success":true,"data":{"update":"plugin","slug":"the plugin name","oldVersion":"Version 6.73","newVersion":"Version 7.23","plugin":"The plugin name\/ThePluginName.php","pluginName":"The plugin name"}}

    In fact the update succeed like said in "success":true,"data":....

    But I wonder why there is this string(0), it worries me.

    Debian 9
    PHP 7.0.33
    WP 4.9.8

    Do you have any ideas?

    Thank you
    Patrice

Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter Patrice

    (@patricevigier)

    I also get

    string(0) "" string(0) "" Notice:  unserialize(): Error at offset 0 of 134696 bytes in 
    /xxx/xxx/xxx/wp-content/themes/xxxxr/am/classes/class-wc-plugin-update.php

    It looks like your theme has an internal update mechanism, which has a problem.
    Considering that this is not allowed in themes that are in the repository, and we only support themes in the repository, you need to go ask at the theme’s support forum.

    Also, at least update your site to WP 4.9.15, which came out today. Your PHP is a bit old also, but if you update your PHP, you will be seeing more Notices because WP 4.9 does not have the latest PHP updates.

    Also, if it’s a production site, why do you have WP_DEBUG on? You shouldn’t be seeing any of those messages. https://wordpress.org/support/article/editing-wp-config-php/#wp_debug

    Thread Starter Patrice

    (@patricevigier)

    Hello Joy,
    THANK YOU VERY MUCH for your answer.
    As per your suggestion I have updated to 4.9.15
    I’m using Debian stable and PHP 7.0.33 is their latest release. Regarding stability it is better to stay with their stable version because it is very stable!
    I have the debug on because I’m not in production yet.
    I’m not sure the theme is the problem because this occur only in the admin but I will contact them.
    Take care
    Patrice

    If it’s not the theme (at least part of it is), then you can consider migrating to classicpress, which has all the latest PHP fixes but is basically WP 4.9.

    In today’s Support team, I asked about a list of WP and PHP versions. They showed me this page, which I had never seen before: https://make.wordpress.org/core/handbook/references/php-compatibility-and-wordpress-versions/

    Thread Starter Patrice

    (@patricevigier)

    Hello Joy,

    Great link for the PHP compatibility.

    I followed your advise and updated my theme, as fare as I’m, the message disappeared. So this was probably the problem.

    Thank you again.
    Patrice

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘string(0)’ is closed to new replies.