<p>That's a bug in Craft that occurs with the specific configuration of PHP you're running.  Just fixed it for the next release, though.</p>

<p>In the meantime, you can open up craft/app/etc/web/UrlManager.php, find the parseUrl method and change it from:</p>

<pre><code>public function parseUrl(HttpRequestService $request)
</code></pre>

<p>to:</p>

<pre><code>public function parseUrl($request)
</code></pre>

CC BY-SA 3.0
2014-06-26T18:58:16.483Z
2014-06-26T18:58:16.483Z
Brad Bell
<p>I keep getting this error when I go to install Craft: "Declaration of Craft\UrlManager::parseUrl() should be compatible with that of CUrlManager::parseUrl()"  </p>

<p>I am installing on a subdomain.  The database credentials are in place, the permissions are correct and the craft folder is found. </p>

<p>I have devmode enabled and the last stack trace item is pointing to "craft/app/etc/web/UrlManager.php(18)". </p>

CC BY-SA 3.0
2014-06-26T18:07:27.910Z
Maybe some files weren't copied correctly, try re-uploading the /craft/app/ folder.
Victor
<install>
PHP error upon installation
# PHP error upon installation

(Asked by: username_0 on 2014-06-26)

I keep getting this error when I go to install Craft: "Declaration of Craft\UrlManager::parseUrl() should be compatible with that of CUrlManager::parseUrl()"

I am installing on a subdomain. The database credentials are in place, the permissions are correct and the craft folder is found.

I have devmode enabled and the last stack trace item is pointing to "craft/app/etc/web/UrlManager.php(18)".

**Tags:** install
> **Comments:**
> **username_1**: Maybe some files weren't copied correctly, try re-uploading the /craft/app/ folder.  

---

## 1 answers

### Answer by username_2 on 2014-06-26. Score: 3 | Accepted answer

That's a bug in Craft that occurs with the specific configuration of PHP you're running.  Just fixed it for the next release, though.
In the meantime, you can open up craft/app/etc/web/UrlManager.php, find the parseUrl method and change it from:
public function parseUrl(HttpRequestService $request)

to:
public function parseUrl($request)


---

