From Moving Server to Error 404 (not found)

pcalia / 2013-08-26 13:58:10   

Hi,
First of all thanks to the indexhibit team for your great work.
I have been using your Template for a long time now, I always tried to manage my installations issues by myself, though I have no knowledge in encoding whatsoever, but this time I am absolutely stuck.

Basically I have tried moving my website from my Freehostia hosting account to my Godaddy one. Now my homepage opens properly but i cannot access any of the portfolios :
philippecalia.com/

------
In order to do this, I have followed this thread :
indexhibit.org/forum/thread/5912/

I first got stuck in the 'import the DB to new server' (2.2) part but godaddy finally did it manually on their end. However they had asked me to export a DB where the < CREATE TABLE options > was unselected. Which is the .sql file they uploaded.

Then unlike what is described in the thread, I was not able to "create a new database user" (2.3) but I just continued and followed the other steps...

I faced some problems during the installation process then and had to add the line : "error_reporting(E_ALL ^ E_DEPRECATED);"
to the index.php / install.php in the ndxz-studio folder, so that I could carry on.

I could then finish the installation, but the website finally opened with the following message :
"Deprecated: Function set_magic_quotes_runtime() is deprecated in /home/content/42/10542442/html/philippecalia/ndxz-studio/defaults.php on line 16"

Which I made disappear by adding
"ini_set('error_reporting', 4096);"
to defaut.php
------

I know this sounds and looks really messy but I really hope I can still use this website ! (especially since everything seems in place in the website editor section :)

Please let me know if I can do anything.

Best,

Philippe

arsondpi / 2013-08-26 14:14:42   

Generally Deprecated errors are because your server is using an updated version of php.
You can either suppress them (like you did) or update to version 2 at some point...

pcalia / 2013-08-26 14:28:16   

Thanks for your help arsondpi.
Do you think the website will work again if I update to version 2 ? I thought I would just make things more complicated. If it solves the deprecated error + error 404 issues, then I m willing to upgrade right now !

pcalia / 2013-08-26 15:32:53   

Does someone know if upgrading to version 2 will help ?

arsondpi / 2013-08-26 16:04:29   

Verify with your host which php version is your site running.
Version 2 works with php5.
You can leave things like they are if everything works well.

pcalia / 2013-08-26 21:26:50   

The php version is 5.3. Can this be the reason for this error (404) ? philippecalia.com/work/post/

The webhost said the problem had to do with encoding, which is why I was asking on the forum.

thanks

arsondpi / 2013-08-26 22:32:23   

Sorry I was confused - initially I thought that deprecated errors was the issue.

When clicking links in your site, it seems that you enabled clean urls.
Is htaccess renamed to .htaccess?
Also did you see this thread: indexhibit.org/forum/thread/18685/
?

pcalia / 2013-08-28 22:30:17   

Thanks Arsondpi. So I renamed the file .htaccess + I added the two lines mentioned in the thread. The error 404 then became an error 500.
I wrote to godaddy about the issue and here s what they answered :

"I understand that you are writing in about your site resolving to a 500 Internal Server Error when resolving (philippecalia.com/contact/). If you disable the .htaccess file for the site this will disable rules for your site that tell it how to act when resolving /contact. As this is not an actual location on the hosting account you will need to diagnose your .htaccess file and locate the issue causing the errors for the site as opposed to disabling the file. We have enabled error logs for your to review the isolate the issue. "

Now I just checked the error log and here is what I got :

[Wed Aug 28 15:23:05 2013] [10542442] [core:error] [client 92.163.31.200:61941] AH00124: Request exceeded the limit of 10 internal redirects due to probable configuration error. Use 'LimitInternalRecursion' to increase the limit if necessary. Use 'LogLevel debug' to get a backtrace.

I have no idea what to do now :(

Vaska A / 2013-08-29 00:27:46   

What is the problem here in one sentence please?

pcalia / 2013-08-29 07:51:27   

I tried to migrate my website from one host to another and I am now getting a 500 internal error message on all my website except the homepage.
philippecalia.com/contact/

Vaska A / 2013-08-29 08:21:33   

You need to update your database config file to the new database: /ndxz-studio/config/config.php

pcalia / 2013-08-29 08:39:19   

Thanks Vaska. Do you know how I can do this ? Is it possible to do it from PhpMyAdmin ?

arsondpi / 2013-08-29 11:52:33   

Download the config.php life from your server with your ftp application, open and edit it with a code editor, and then re-upload it to your server.

pcalia / 2013-08-30 15:46:03   

Thanks Arsondpi. But it is already updated with the new database details :

pcalia / 2013-08-30 15:47:43   

Except if it is the first line which I have to change ?

pcalia / 2013-08-30 15:47:57   

pcalia / 2013-08-30 15:49:17   

"

pcalia / 2013-08-30 15:50:25   

Except if it is the first line which i have to change :
>>>>> ..... (!defined('SITE')) exit('No direct script access allowed');

or the sql part ? otherwise the hostname, username etc. are the ones of the new DB

This thread has been closed, thank you.