Created on 13 October 2022, about 2 years ago
Updated 22 June 2023, over 1 year ago

Problem/Motivation

I just run update.php
Fatal error: Array and string offset access syntax with curly braces is no longer supported in /var/www/drupal/sites/all/modules/contrib/views_php/plugins/views/views_php_handler_field.inc on line 228

πŸ› Bug report
Status

Closed: works as designed

Version

2.0

Component

Code

Created by

πŸ‡«πŸ‡·France lazzyvn paris

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • πŸ‡ΊπŸ‡ΈUnited States sgroundwater

    For this error on 7.x-2.x branch:
    "Fatal error: Array and string offset access syntax with curly braces is no longer supported in ... /views_php/plugins/views/views_php_handler_field.inc on line 228"

    / * curly brace syntax with square brackets for array access */
    foreach ($this->view->style_plugin->rendered_fields[$this->view->row_index] as $field => $value) {
    $normalized_row->$field = $value;
    }

    Also related to PHP updates, in case you see this error:
    "Deprecated function: Required parameter $input follows optional parameter $checkbox in include_once() ... "

    views_php.module
    < function views_php_form_element($handler, $checkbox = FALSE, $input, $variables = array()) {
    ---
    >
    > /** See https://git.drupalcode.org/project/views_php/-/commit/3921d99
    > *** function views_php_form_element($handler, $checkbox = FALSE, $input, $variables = array()) {
    > **/
    >
    > function views_php_form_element($handler, $checkbox, $input, $variables = array()) {

Production build 0.71.5 2024