Skip to content

Error/Exception using reader since upgrading to 1.15 - "Tou must specify a Formula value for a Named Formula" #1730

@mtindall89

Description

@mtindall89

This is:

- [x ] a bug report
- [ ] a feature request
- [ ] **not** a usage question (ask them on https://stackoverflow.com/questions/tagged/phpspreadsheet or https://gitter.im/PHPOffice/PhpSpreadsheet)

What is the expected behavior?

Loading a spreadsheet via reader

What is the current behavior?

PHP Exception

What are the steps to reproduce?

Since upgrading to v 1.15 from v1.5, the following exception happens when trying to load files:
"Tou must specify a Formula value for a Named Formula"

This is traced to NamedFormula.php lines 20-22.

Very similar to Issue #1723

Please provide a Minimal, Complete, and Verifiable example of code that exhibits the issue without relying on an external Excel file or a web server:

<?php

require __DIR__ . '/vendor/autoload.php';

// Create new Spreadsheet object
$reader = new \PhpOffice\PhpSpreadsheet\Reader\Xlsx();

$reader->setReadDataOnly(true);
$spreadsheet = $reader->load($filePath);

Which versions of PhpSpreadsheet and PHP are affected?

PHPSpreadsheet - 1.15
PHP v 7.4.12

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions