deployer icon indicating copy to clipboard operation
deployer copied to clipboard

preg_match: compilation failed error

Open skeeith opened this issue 4 years ago • 1 comments

Before submitting your issue, please make sure that you've checked all of the checkboxes below.

  • [x] You're running the latest release version of Deployer.
  • [x] Ensure that you're running at least PHP 7.0.8, you can check this by running php -v
  • [x] You've ran composer install --no-dev from the root of your installation.
  • [x] You've ran npm install --production from the root of your installation.
  • [x] You've ran rm -rf bootstrap/cache/* from the root of your installation.
  • [ x You have restarted the queue listener and node socket server.

Describe the bug

I tried creating a new project and the network tab on developer console is saying this error

preg_match(): Compilation failed: invalid range in character class at offset 1825

Expected behaviour

It will properly create the new project

Actual behaviour

the /project api responded this error preg_match(): Compilation failed: invalid range in character class at offset 1825

Steps to reproduce

fresh AWS server install latest PHP 7.1 install latest MySQL 5.7 install latest NGINX 1.16

Screenshots

If applicable, add screenshots to help explain your problem.

Environment info

Visit /admin/sysinfo on your install and click the "Get System Report" button. Paste the report here, if you can't please provide the following instead.

  • Operating System: Ubuntu 18.04.3 LTS
  • PHP Version: 7.1.13
  • Node Version: 12.8.0
  • Database System: MySQL
  • Database Version: 5.7

Logs (see storage/logs/) or other output that would be helpful

(If logs are large, please upload as attachment).

[2019-08-12 22:06:12] local.ERROR: ErrorException: preg_match(): Compilation failed: invalid range in character class at offset 1825 in /var/www/deployer/vendor/laravel/framework/src/Illuminate/Validation/Concerns/ValidatesAttributes.php:1356 Stack trace:

skeeith avatar Aug 12 '19 17:08 skeeith

This happened to me while running PHP 7.3. Downgrading to PHP 7.2 seems to workaround this issue for now.

emielmolenaar avatar Jan 31 '20 08:01 emielmolenaar