# Cakephp is putting webroot in the url Or appears Blank Plage

**URL:** https://discourse.cakephp.org/t/cakephp-is-putting-webroot-in-the-url-or-appears-blank-plage/217
**Category:** Need Help
**Created:** [April 29, 2016, 11:38am UTC](https://discourse.cakephp.org/t/cakephp-is-putting-webroot-in-the-url-or-appears-blank-plage/217 "2016-04-29T11:38:18Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![tiagosilvestre](https://avatars.discourse-cdn.com/v4/letter/t/ecccb3/32.png) [@tiagosilvestre](https://discourse.cakephp.org/u/tiagosilvestre)
#### Post date: [April 29, 2016, 11:38am UTC](https://discourse.cakephp.org/t/cakephp-is-putting-webroot-in-the-url-or-appears-blank-plage/217/1 "2016-04-29T11:38:18Z")

</div>

Hello, i’ve been tried to create a view with data from database, but iam have 2 sames issues:

-\> The page stay blank with the message:

No Data Received  
ERR\_EMPTY\_RESPONSE

-\> When I make click in the link to controller that i want, cakephp pass in the url the following url:

myDomain/webroot/controller

I dont know why cakephp is puting webroot in the url…

In the apache’s error.log I have this error:

[Thu Apr 28 16:47:23.169213 2016] [core:notice] [pid 1619] AH00052: child pid 4737 exit signal Segmentation fault (11)  
[Thu Apr 28 16:47:23.169217 2016] [core:notice] [pid 1619] AH00052: child pid 4738 exit signal Segmentation fault (11)  
[Thu Apr 28 16:47:23.169222 2016] [core:notice] [pid 1619] AH00052: child pid 4800 exit signal Segmentation fault (11)

The Code is here:

> <https://gist.github.com/TiagoSilvestre/abc00a8e6da0698754d7f9c1d28d3c9d>

I hope someone can help me because this error already appears in 3 differents computers with differents SO(Linux and Windows), but always with apache.  
Thanks

---

<div class="post-metadata">

### Author: ![mo86](https://yyz1.discourse-cdn.com/flex029/user_avatar/discourse.cakephp.org/mo86/32/92_2.png) [@mo86](https://discourse.cakephp.org/u/mo86)
#### Post date: [May 3, 2016, 10:33pm UTC](https://discourse.cakephp.org/t/cakephp-is-putting-webroot-in-the-url-or-appears-blank-plage/217/2 "2016-05-03T22:33:32Z")

</div>

Did you change the baseUrl in config/app.php?

---

<div class="post-metadata">

### Author: ![aavrug](https://yyz1.discourse-cdn.com/flex029/user_avatar/discourse.cakephp.org/aavrug/32/178_2.png) [@aavrug](https://discourse.cakephp.org/u/aavrug)
#### Post date: [May 4, 2016, 3:41am UTC](https://discourse.cakephp.org/t/cakephp-is-putting-webroot-in-the-url-or-appears-blank-plage/217/3 "2016-05-04T03:41:57Z")

</div>

If you are using same model in the controller which it belongs then you do not need to load the model so, you can remove the line 14 code($this-\>loadModel(‘Curriculo’); ). And, as much I can see your model name is “Curriculos” not “Curriculo” so you need to fix that.

---

<div class="post-metadata">

### Author: ![tiagosilvestre](https://avatars.discourse-cdn.com/v4/letter/t/ecccb3/32.png) [@tiagosilvestre](https://discourse.cakephp.org/u/tiagosilvestre)
#### Post date: [May 4, 2016, 11:11am UTC](https://discourse.cakephp.org/t/cakephp-is-putting-webroot-in-the-url-or-appears-blank-plage/217/4 "2016-05-04T11:11:34Z")

</div>

no, I dont change the baseUrl in config/app.php

---

<div class="post-metadata">

### Author: ![tiagosilvestre](https://avatars.discourse-cdn.com/v4/letter/t/ecccb3/32.png) [@tiagosilvestre](https://discourse.cakephp.org/u/tiagosilvestre)
#### Post date: [May 4, 2016, 11:16am UTC](https://discourse.cakephp.org/t/cakephp-is-putting-webroot-in-the-url-or-appears-blank-plage/217/5 "2016-05-04T11:16:02Z")

</div>

I put ($this-\>loadModel(‘Curriculo’); ) to try to load model but it doesnt work, i also try to remove it but it still doesnt work.

Im using cakephp 3, and there is an entity and an table.  
Entity’s name is Curriculo.php  
Table’s name is CurriculosTable.php

When I change the name “curriculos” from any places, this problem is resolved, but i cant understand why…

---

<div class="post-metadata">

### Author: ![aavrug](https://yyz1.discourse-cdn.com/flex029/user_avatar/discourse.cakephp.org/aavrug/32/178_2.png) [@aavrug](https://discourse.cakephp.org/u/aavrug)
#### Post date: [May 4, 2016, 11:18am UTC](https://discourse.cakephp.org/t/cakephp-is-putting-webroot-in-the-url-or-appears-blank-plage/217/6 "2016-05-04T11:18:29Z")

</div>

I think you have to read the docs. You are trying to load the Model that means CurriculosTable.php not the entity. So, the name should be “Curriculos”.
