Answers.Body: <p>Using a earlier version of Craft (3.3.3) solved the problem. Updating from there was shaky but eventually worked.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-09-19T11:33:04.283Z
Answers.LastActivityDate: 2019-09-19T11:33:04.283Z
Answers.UserDisplayName: Marcus Scheller
Body: <p>I am just trying to upgrade and get the following error message:</p>
  
  <pre><code>Fatal error: Uncaught TypeError: Argument 1 passed to Dotenv\Dotenv::__construct() must be an instance of Dotenv\Loader, string given called in (…) /html/index.php on line 17 (…)
  </code></pre>
  
  <p>Which is completely new to me. Never happened before and my setup is pretty standard. Is this a hosting Problem? Can’t make anythiong of it.</p>
  
  <p>Craft version seems to be 3.3.4 according to the name of the zip (Craft-3.3.4.1.zip).</p>
  
Tags: <upgrades><environments>
Title: Upgrade C2 to C3 Uncaught TypeError involving Dotenv
ThreadText: # Upgrade C2 to C3 Uncaught TypeError involving Dotenv
  
  (Asked by: username_0 on 2019-09-19)
  
  I am just trying to upgrade and get the following error message:
  
  ```
  Fatal error: Uncaught TypeError: Argument 1 passed to Dotenv\Dotenv::__construct() must be an instance of Dotenv\Loader, string given called in (…) /html/index.php on line 17 (…)
  
  ```
  
  Which is completely new to me. Never happened before and my setup is pretty standard. Is this a hosting Problem? Can’t make anythiong of it.
  
  Craft version seems to be 3.3.4 according to the name of the zip (Craft-3.3.4.1.zip).
  
  **Tags:** upgrades, environments
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_0 on 2019-09-19. Score: 1
  
  Using a earlier version of Craft (3.3.3) solved the problem. Updating from there was shaky but eventually worked.
  
  
  ---
  
  