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

Database password that starts with "@" triggers "InvalidArgumentException" #3700

Closed
transopticmedia opened this issue Jan 23, 2019 · 1 comment

Comments

@transopticmedia
Copy link

transopticmedia commented Jan 23, 2019

Description

I updated Craft today to the latest version (3.1.3), and started to get an "internal error" when going to settings->assets or settings->email. The error message in the logs was:

_yii\base\InvalidArgumentException: Invalid path alias: @L)o95Pqw5&=_

( eventually, I realized "@l)o95Pqw5&=" was the DB password set in .env)

The error line was: /vendor/yiisoft/yii2/BaseYii.php:154

It was easy to fix it by changing the password, but it took a while to figure out what was happening. I had the password set to that for several weeks with no issues until the update.

Steps to reproduce

  1. Set your database pw to begin with "@"

Additional info

  • Craft version: 3.1.3
  • PHP version: 7.2
  • Database driver & version:
  • Plugins & versions:
@brandonkelly
Copy link
Member

Thanks for reporting! Fixed for the next release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants