Support » Theme: evolve » PHP Deprecated: Array and string offset access syntax with curly braces…

  • Hello,

    There is deprecation notice in my PHP error log file:

    [22-Jan-2020 15:35:08 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /path/to/wp-content/themes/evolve/inc/support.php on line 170

    A version upgrade will be very much appreciated!

    Thanks and regards,
    joern

Viewing 2 replies - 1 through 2 (of 2 total)
  • PHP RFC: Deprecate curly brace syntax for accessing array elements and string offsets

    Until this is fixed in the theme’s source, anyone bothered by the deprecation notice (like I am 😉 ) can fix it by replacing the curly braces {} with square brackets [] in evolve/inc/support.php at line 170:

    if ( !isset( $version{1} ) ) {

    should be changed to

    if ( !isset( $version[1] ) ) {

    • This reply was modified 1 year, 2 months ago by Bart Kuijper.
    • This reply was modified 1 year, 2 months ago by Bart Kuijper.
    • This reply was modified 1 year, 2 months ago by Bart Kuijper.
    • This reply was modified 1 year, 2 months ago by Bart Kuijper.

    Hi,
    I have a “similar” problem:
    designer/includes/tcpdf/tcpdf.php on line 17008 Warning: “continue” targeting switch is equivalent to “break”. Did you mean to use “continue 2”? in /customers/f/8/d/ejmart.dk/httpd.www/wp-content/plugins/woocommerce-products-designer/includes/tcpdf/tcpdf.php on line 17864 Deprecated: Array and string offset access syntax with curly braces is deprecated in /customers/f/8/d/ejmart.dk/httpd.www/wp-content/plugins/woocommerce-products-designer/includes/tcpdf/include/tcpdf_images.php on line 310

    and earlier I got a message saying on line 17005: plugins/woocommerce-products-designer/includes/tcpdf/tcpdf.php on line 17005 Deprecated: Array and string offset access syntax with curly braces is deprecated in /customers/f/8/d/ejmart.dk/httpd.www/wp-content/plugins/woocommerce-products-designer/includes/tcpdf/tcpdf.php on line 17008 Warning: “continue” targeting switch is equivalent to “break”. Did you mean to use “continue 2”?

    Could this also be solved by changing braces and if so, where do I find the document to make the changes? I am not familiar with this, so will highly appreciate guidance on not just what to do but also where and how? Hope so much you can help. 😃🙏

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘PHP Deprecated: Array and string offset access syntax with curly braces…’ is closed to new replies.