# I´m new in cakephp, need HELP with something that I cannot solution

**URL:** https://discourse.cakephp.org/t/i-m-new-in-cakephp-need-help-with-something-that-i-cannot-solution/4050
**Category:** Need Help
**Created:** [March 15, 2018, 9:08am UTC](https://discourse.cakephp.org/t/i-m-new-in-cakephp-need-help-with-something-that-i-cannot-solution/4050 "2018-03-15T09:08:58Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![sirdavidvarela](https://avatars.discourse-cdn.com/v4/letter/s/ac8455/32.png) [@sirdavidvarela](https://discourse.cakephp.org/u/sirdavidvarela)
#### Post date: [March 15, 2018, 9:08am UTC](https://discourse.cakephp.org/t/i-m-new-in-cakephp-need-help-with-something-that-i-cannot-solution/4050/1 "2018-03-15T09:08:58Z")

</div>

Good morning, first of all, thanks to everyone for trying to help me in cakephp, I am totally new.  
I was asked to migrate from server a web made in cakephp 1.2.1.8004 version.

The web is installed in a windows 2003 server and I have moved it to an apache server in 1and1.

The web works perfectly for me, minus the links  
/ posts  
/ news  
/ admin

The original website is [wwww.cosnor.com](http://wwww.cosnor.com)  
I have moved it to my server in 1and1 and with apache, not internet information services of windows, in the url cosnor2.idsoft.es

I created the .htaccess in / app / webroot  
  
RewriteEngine On  
RewriteBase /  
RewriteCond% {REQUEST\_FILENAME}! -d  
RewriteCond% {REQUEST\_FILENAME}! -f  
RewriteRule ^ (. \*) Index.php? Url = 1 [QSA, L]  
\</ IfModule\>

If I put debug in core.php i see these errors:

eprecated: Assigning the return value of new by reference is deprecated in /homepages/18/d302240380/htdocs/websclientes/cosnorwebantigua/cake/libs/debugger.php on line 99

Deprecated: Assigning the return value of new by reference is deprecated in /homepages/18/d302240380/htdocs/websclientes/cosnorwebantigua/cake/libs/debugger.php on line 108

Deprecated: Assigning the return value of new by reference is deprecated in /homepages/18/d302240380/htdocs/websclientes/cosnorwebantigua/cake/libs/file.php on line 96

Strict Standards: Non-static method Debugger::invoke() should not be called statically, assuming $this from incompatible context in /homepages/18/d302240380/htdocs/websclientes/cosnorwebantigua/cake/libs/debugger.php on line 574

Strict Standards: Non-static method Debugger::getInstance() should not be called statically, assuming $this from incompatible context in /homepages/18/d302240380/htdocs/websclientes/cosnorwebantigua/cake/libs/debugger.php on line 574

**_Missing Component File_**  
**_Error: The component file was not found._**  
**_Error: Create the class SessionComponent in file: app/controllers/components/session.php_**  
**_\<?php_**  
**_class SessionComponent extends Object {_**  
**_}_**  
**_?\>_**  
Notice: If you want to customize this error message, create app/views/errors/missing\_component\_file.ctp

Everything works OK minus the links to news, posts and admin

I hope someone can help me, I do not give with the problem.

Thank you

---

<div class="post-metadata">

### Author: ![sirdavidvarela](https://avatars.discourse-cdn.com/v4/letter/s/ac8455/32.png) [@sirdavidvarela](https://discourse.cakephp.org/u/sirdavidvarela)
#### Post date: [March 16, 2018, 1:15pm UTC](https://discourse.cakephp.org/t/i-m-new-in-cakephp-need-help-with-something-that-i-cannot-solution/4050/2 "2018-03-16T13:15:47Z")

</div>

Sorry, help, please. Anyone have the same errors?

---

<div class="post-metadata">

### Author: ![ADmad](https://yyz1.discourse-cdn.com/flex029/user_avatar/discourse.cakephp.org/admad/32/20_2.png) [@ADmad](https://discourse.cakephp.org/u/ADmad)
#### Post date: [March 17, 2018, 1:29pm UTC](https://discourse.cakephp.org/t/i-m-new-in-cakephp-need-help-with-something-that-i-cannot-solution/4050/3 "2018-03-17T13:29:09Z")

</div>

CakePHP 1.2 is ancient. It won’t run on newer versions of PHP 5. So first thing to do is configure your 1and1 hosting to use the oldest PHP 5.x (or PHP 4) version available to get rid of those decrecated and strict standards warnings.

---

<div class="post-metadata">

### Author: ![sirdavidvarela](https://avatars.discourse-cdn.com/v4/letter/s/ac8455/32.png) [@sirdavidvarela](https://discourse.cakephp.org/u/sirdavidvarela)
#### Post date: [March 17, 2018, 6:24pm UTC](https://discourse.cakephp.org/t/i-m-new-in-cakephp-need-help-with-something-that-i-cannot-solution/4050/4 "2018-03-17T18:24:08Z")

</div>

Ok, thanks, the old version that I can execute in my server of 1and1 is 5.6.  
I solutioned that error with this link:

> <https://stackoverflow.com/questions/1306643/cakephp-based-project-is-throwing-error-saying-return-value-of-new-by-referenc>

But the error that is now is:  
Missing Component Class

Error: Component class CookieComponent in CakeErrorController was not found.

Error: Create the class CookieComponent in file: app/controllers/components/cookie.php

\<?php class CookieComponent extends Object {
