Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: Excel::Import error preg_match(): No ending matching delimiter ')' found #3894

Closed
1 task done
pathros opened this issue Mar 13, 2023 · 2 comments
Closed
1 task done

Comments

@pathros
Copy link

pathros commented Mar 13, 2023

Is the bug applicable and reproducable to the latest version of the package and hasn't it been reported before?

  • Yes, it's still reproducable

What version of Laravel Excel are you using?

3.1.48

What version of Laravel are you using?

9.52.4

What version of PHP are you using?

8.2.3

Describe your issue

This error wasn't happening. I suspect this error showed up after upgrading the Laravel project's dependencies, including the Laravel framework.

ErrorException preg_match(): No ending matching delimiter ')' found
PHP 8.2.3. Laravel 9.52.4

code that is getting the error (which previously was working fine)

<?php
use Maatwebsite\Excel\Facades\Excel;

class Import extends Page implements HasForms
{     
       //...
       Excel::import($import_excel_file, $data['excel_file'],'excel'); //ERROR HERE
       //...
}

Any idea how to fix this?

How can the issue be reproduced?

It might be reproduced by updating to the latest versions of Laravel and this package's.

What should be the expected behaviour?

Let the Excel file data import work.

@pathros pathros added the bug label Mar 13, 2023
@patrickbrouwers
Copy link
Member

Please share the full stacktrace, it's not clear which file throws the error. It sounds like an error in your own code

@stale stale bot added the stale label May 20, 2023
@stale
Copy link

stale bot commented May 21, 2023

This bug report has been automatically closed because it has not had recent activity. If this is still an active bug, please comment to reopen. Thank you for your contributions.

@stale stale bot closed this as completed May 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants