Problem/Motivation

Using PHP 8.1.8 with both the Charts and Highcharts submodules enabled with a chart field, I encounter an AjaxError when attempting to upload a csv.

Deprecated: auto_detect_line_endings is deprecated in /var/www/docroot/html/modules/contrib/charts/src/Element/ChartDataCollectorTable.php on line 435

Steps to reproduce

  1. Install Charts on a site running PHP 8.1.x (confirmed on 8.1.8).
  2. Add a Chart field to an entity.
  3. Attempt to upload a csv and check the console for the error.

Proposed resolution

Remove `auto_detect_line_endings` per https://php.watch/versions/8.1/auto_detect_line_endings-ini-deprecated.

Comments

jacobsaw created an issue. See original summary.

andileco’s picture

This is perfect timing ... I was just about to issue a new release. Will try to address this quickly.

jacobsaw’s picture

jacobsaw’s picture

Great! Added a patch, thanks for taking care of this.

nikathone’s picture

Status: Active » Reviewed & tested by the community

+1 for removing. Checked and there is no side effect.

  • andileco committed 77288936 on 5.0.x
    Issue #3334641 by jacobsaw, andileco, nikathone: PHP 8.1.8...
andileco’s picture

Status: Reviewed & tested by the community » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.