• Resolved titsmaker

    (@titsmaker)


    Hi, while testing Pixel Caffeine in PHP 7.4 I found that your plugin uses curly brackets for arrays which are deprecated now.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter titsmaker

    (@titsmaker)

    E.g.
    Deprecated: Array and string offset access syntax with curly braces is deprecated in .../public_html/wp-content/plugins/pixel-caffeine/includes/product-catalogs/feed/class-xml-writer.php on line 466

    Thread Starter titsmaker

    (@titsmaker)

    Any reaction?

    Plugin Author Antonino Scarfì

    (@antoscarface)

    Hi,

    sorry for the delay with my response!

    Thanks for reporting, very soon I’ll release a new version with the fixes for the PHP 7.4 🙂

    Anyway, that error shouldn’t block the processes. At the very least, I think you can deactivate WP_DEBUG mode in order to have it working (it should be already deactivated in the production environment).

    Otherwise, you may fix yourself making a change in the code of the plugin meanwhile the new version will be released. If you want to, open the file wp-content/plugins/pixel-caffeine/includes/product-catalogs/feed/class-xml-writer.php and find this line (around line 466):

    $current = ord($string{$i});

    Replace that line with this:

    $current = ord($string[$i]);

    After this change, you should fix the issue.

    Plugin Author Antonino Scarfì

    (@antoscarface)

    Hey,

    the new version of this fix is released 🙂

    Please, upgrade in order to remove this annoying warning.
    Thanks for reporting.

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Pixel Caffeine uses syntax deprecated in PHP 7.4’ is closed to new replies.