Problems when migrating Cakephp site between servers

Asked

Viewed 195 times

2

I’m trying to migrate the site between servers, but to validate the functioning of the site, downloaded and I’m trying to install on Wamp. I have no experience with the framework Cake.

I already deleted the files in the cache folder and says the database.php configuration of the subdirectory Config de App, but the site is not loading Layout, Java scripts etc.

Where it is necessary to change within the Cake to make this possible? If not in Cake, it must be some configuration of htacess. But there are several of them, in which way would it be? I’m not sure if the problem is being given by error 404 in assets (javascript, css). But I think it might be because I’m not getting to call others controllers.

Console log in Browser:

Failed to load resource: the server responded with a status of 404 (Not Found)
http://localhost/site/js/application.js Failed to load resource: the server responded with a status of 404 (Not Found)
http://localhost/images/logo-250x86.png Failed to load resource: the server responded with a status of 404 (Not Found)
http://localhost/images/facebook-32x32.png Failed to load resource: the server responded with a status of 404 (Not Found)
http://localhost/images/linhas/buttons/lancamentos.jpg Failed to load resource: the server responded with a status of 404 (Not Found)
http://localhost/images/linhas/buttons/bacias.jpg Failed to load resource: the server responded with a status of 404 (Not Found)
http://localhost/images/linhas/buttons/baldes.jpg Failed to load resource: the server responded with a status of 404 (Not Found)
http://localhost/site/css/linhas/baldes.css Failed to load resource: the server responded with a status of 404 (Not Found)
http://localhost/images/linhas/buttons/banheiro.jpg Failed to load resource: the server responded with a status of 404 (Not Found)
http://localhost/images/linhas/buttons/cabides-e-prendedores.jpg Failed to load resource: the server responded with a status of 404 (Not Found)
http://localhost/images/linhas/buttons/cozinha.jpg Failed to load resource: the server responded with a status of 404 (Not Found)
http://localhost/images/linhas/buttons/jardim.jpg Failed to load resource: the server responded with a status of 404 (Not Found)
http://localhost/images/linhas/buttons/maletas.jpg Failed to load resource: the server responded with a status of 404 (Not Found)
http://localhost/images/linhas/buttons/moveis.jpg Failed to load resource: the server responded with a status of 404 (Not Found)
http://localhost/images/linhas/buttons/cestos.jpg Failed to load resource: the server responded with a status of 404 (Not Found)
http://localhost/images/linhas/buttons/organizadores.jpg Failed to load resource: the server responded with a status of 404 (Not Found)
http://localhost/images/linhas/buttons/pallets.jpg Failed to load resource: the server responded with a status of 404 (Not Found)
http://localhost/images/linhas/buttons/porta-isca.jpg Failed to load resource: the server responded with a status of 404 (Not Found)
http://localhost/images/linhas/buttons/seletivas.jpg Failed to load resource: the server responded with a status of 404 (Not Found)
http://localhost/images/green-seal.png Failed to load resource: the server responded with a status of 404 (Not Found)
http://localhost/images/linhas/buttons/telados.jpg Failed to load resource: the server responded with a status of 404 (Not Found)
http://localhost/images/linhas/newMenu/lancamentos.jpg Failed to load resource: the server responded with a status of 404 (Not Found)
http://localhost/images/linhas/newMenu/bacias.jpg Failed to load resource: the server responded with a status of 404 (Not Found)
http://localhost/images/linhas/newMenu/baldes.jpg Failed to load resource: the server responded with a status of 404 (Not Found)
http://localhost/images/linhas/newMenu/banheiro.jpg Failed to load resource: the server responded with a status of 404 (Not Found)
http://localhost/images/linhas/newMenu/cestos.jpg Failed to load resource: the server responded with a status of 404 (Not Found)
http://localhost/images/linhas/newMenu/cabides-e-prendedores.jpg Failed to load resource: the server responded with a status of 404 (Not Found)
http://localhost/images/linhas/newMenu/cozinha.jpg Failed to load resource: the server responded with a status of 404 (Not Found)
http://localhost/images/linhas/newMenu/jardim.jpg Failed to load resource: the server responded with a status of 404 (Not Found)
http://localhost/images/linhas/newMenu/maletas.jpg Failed to load resource: the server responded with a status of 404 (Not Found)
http://localhost/images/linhas/newMenu/moveis.jpg Failed to load resource: the server responded with a status of 404 (Not Found)
http://localhost/images/linhas/newMenu/organizadores.jpg Failed to load resource: the server responded with a status of 404 (Not Found)
http://localhost/images/linhas/newMenu/pallets.jpg Failed to load resource: the server responded with a status of 404 (Not Found)
http://localhost/images/linhas/newMenu/porta-isca.jpg Failed to load resource: the server responded with a status of 404 (Not Found)
http://localhost/images/linhas/newMenu/seletivas.jpg Failed to load resource: the server responded with a status of 404 (Not Found)
http://localhost/images/linhas/newMenu/telados.jpg Failed to load resource: the server responded with a status of 404 (Not Found)
http://localhost/images/home/giardino.jpg Failed to load resource: the server responded with a status of 404 (Not Found)
http://localhost/images/home/cestos.jpg Failed to load resource: the server responded with a status of 404 (Not Found)
http://localhost/images/home/seletivas.jpg Failed to load resource: the server responded with a status of 404 (Not Found)
http://localhost/images/home/banners/MAISALEGRIA-CestosCidades.png Failed to load resource: the server responded with a status of 404 (Not Found)
http://localhost/images/home/banners/MAISEMOCAO-ConjuntosMesasCadeiras.png Failed to load resource: the server responded with a status of 404 (Not Found)
http://localhost/images/home/banners/MAISNOVIDADE-ContaineresCidades.png Failed to load resource: the server responded with a status of 404 (Not Found)
http://localhost/images/home/banners/Banner-100Porcento.png Failed to load resource: the server responded with a status of 404 (Not Found)
http://localhost/images/home/banners/Banner-Dia.png Failed to load resource: the server responded with a status of 404 (Not Found)
http://localhost/images/home/banners/Banner-Reciclar.png Failed to load resource: the server responded with a status of 404 (Not Found)
http://localhost/files/noticia/imagem/60/normal.jpg Failed to load resource: the server responded with a status of 404 (Not Found)
http://localhost/files/noticia/imagem/59/normal.jpg Failed to load resource: the server responded with a status of 404 (Not Found)
http://localhost/files/noticia/imagem/58/normal.jpg Failed to load resource: the server responded with a status of 404 (Not Found)
http://localhost/images/novo.png Failed to load resource: the server responded with a status of 404 (Not Found)
http://localhost/files/produtos/179/main-211.jpg Failed to load resource: the server responded with a status of 404 (Not Found)
http://localhost/images/grey-cart.png Failed to load resource: the server responded with a status of 404 (Not Found)
http://localhost/files/produtos/161/main-211.jpg Failed to load resource: the server responded with a status of 404 (Not Found)
http://localhost/files/produtos/155/main-211.jpg Failed to load resource: the server responded with a status of 404 (Not Found)
http://localhost/files/produtos/168/main-211.jpg Failed to load resource: the server responded with a status of 404 (Not Found)
http://localhost/images/reciclar-garantir-vida.png Failed to load resource: the server responded with a status of 404 (Not Found)
http://localhost/images/amandaduz-sign-01.png Failed to load resource: the server responded with a status of 404 (Not Found)
http://localhost/images/crazy-btn.png Failed to load resource: the server responded with a status of 404 (Not Found)
http://localhost/images/cart.png Failed to load resource: the server responded with a status of 404 (Not Found)
http://localhost/images/logo-250x86.png Failed to load resource: the server responded with a status of 404 (Not Found)
http://localhost/site/js/application.js Failed to load resource: the server responded with a status of 404 (Not Found)
localhost/:1177 Uncaught ReferenceError: $ is not defined
http://localhost/images/facebook-32x32.png Failed to load resource: the server responded with a status of 404 (Not Found)
http://localhost/images/linhas/buttons/lancamentos.jpg Failed to load resource: the server responded with a status of 404 (Not Found)
http://localhost/images/linhas/buttons/bacias.jpg Failed to load resource: the server responded with a status of 404 (Not Found)
http://localhost/images/linhas/buttons/baldes.jpg Failed to load resource: the server responded with a status of 404 (Not Found)
https://www.facebook.com/connect/ping?client_id=1389913131244089&domain=loc…6%26relation%3Dparent&response_type=token%2Csigned_request%2Ccode&sdk=joey Failed to load resource: net::ERR_CONNECTION_TIMED_OUT
https://www.facebook.com/plugins/like.php?action=like&app_id=13899131312440…ut=button_count&locale=pt_BR&sdk=joey&send=false&show_faces=false&width=70 Failed to load resource: net::ERR_CONNECTION_TIMED_OUT
https://www.facebook.com/impression.php/f1d3e442c15f1a4/?api_key=1389913131244089&lid=115&payload=%7B%22source%22%3A%22jssdk%22%7D Failed to load resource: net::ERR_CONNECTION_TIMED_OUT
http://localhost/site/css/application.css Failed to load resource: the server responded with a status of 404 (Not Found)
http://localhost/site/css/linhas/baldes.css Failed to load resource: the server responded with a status of 404 (Not Found)
  • Open the browser console I copied all errors that appear when opening the page, edit the question, paste the log and wait.

  • Thus above?

  • In app/Config/core.php change the debug to 2 -> Configure::write('debug', 2);

  • 1

    post htaccess and also see if there’s anything relevant in the apache error log

  • 1

    I am a Cake developer, and despite the errors mentioned this only shows the problem, I recommend you copy and paste htacess here, but since it already worked on the other, and should only work on the new server, I will ask you to report which version of cake, if 3 is required to install Composer and make some initial settings, cake3 already uses psr-4 so it needs to create some settings. remember the requirements for running cake, mbstring, Curl, Intl, and the rewrite mode must be active.

  • Post the contents of . htaccess to analyze. I speak from experience, in most cases the problem is in rewrite mode is not active.

  • It may be some permission problem of this files too.

Show 2 more comments
No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.