Link to home
Start Free TrialLog in
Avatar of jonathanduane2010
jonathanduane2010

asked on

problem after migrating site wordpress

Hi,

I am getting the following error after migrating a site

http://bodyfirst.ie/

any ideas?

i have imported database and uploaded files using FTP
Avatar of Anwar Saiah
Anwar Saiah

Ok so mainly  you should check the path /home/bodyfirs/public_html/wp-includes/
for a file called "load.php". Maybe the file wasn't transferred or was moved to a different location.
You can use your ftp client to perform the check!
When you migrated your website - how did you do this?

It sounds like

a) You did not move all files across
b) You moved the files but to a location other than that expected by the WordPress files.
Hopefully you did a checklist of the steps, or even a more formal manifest.  If so please post it so we can see if you missed something.

Cd&
Avatar of jonathanduane2010

ASKER

ok i think i have everything now, but when i load up the site it takes so long, and the css seems to be all screwed?

and when i try to got to http://bodyfirst.ie/wp-admin it brings me to bodyfirstnutrition.ie/wp-admin

how can i change that?

bodyfirstnutrition.ie was the old site
The look identical to me can you explain what you mean it takes you to the old site?
ok, i have migrated from bodyfirst.ie to bodyfirstnutrition.ie when i click on the menu items what can i change so it doesnt go try to go to bodyfirstnutrition.ie
Have you changed your URL in the admin section?

http://codex.wordpress.org/Moving_WordPress
Ok i have tried that i have even put in

define('WP_HOME','http://bodyfirst.ie');
define('WP_SITEURL','http://bodyfirst.ie');

<?php
/** Enable W3 Total Cache */
define('WP_CACHE', true); // Added by W3 Total Cache

/**
 * The base configurations of the WordPress.
 *
 * This file has the following configurations: MySQL settings, Table Prefix,
 * Secret Keys, WordPress Language, and ABSPATH. You can find more information
 * by visiting {@link http://codex.wordpress.org/Editing_wp-config.php Editing
 * wp-config.php} Codex page. You can get the MySQL settings from your web host.
 *
 * This file is used by the wp-config.php creation script during the
 * installation. You don't have to use the web site, you can just copy this file
 * to "wp-config.php" and fill in the values.
 *
 * @package WordPress
 */

// ** MySQL settings - You can get this info from your web host ** //
/** The name of the database for WordPress */
define('DB_NAME', 'database');

/** MySQL database username */
define('DB_USER', 'username');

/** MySQL database password */
define('DB_PASSWORD', '');

/** MySQL hostname */
define('DB_HOST', 'localhost');

/** Database Charset to use in creating database tables. */
define('DB_CHARSET', 'utf8');

/** The Database Collate type. Don't change this if in doubt. */
define('DB_COLLATE', '');

define('WP_MEMORY_LIMIT', '256M');

/**#@+
 * Authentication Unique Keys and Salts.
 *
 * Change these to different unique phrases!
 * You can generate these using the {@link https://api.wordpress.org/secret-key/1.1/salt/ WordPress.org secret-key service}
 * You can change these at any point in time to invalidate all existing cookies. This will force all users to have to log in again.
 *
 * @since 2.6.0
 */
define('AUTH_KEY',         '@j?ipQ1nR,yuuCW@Ubodyfirstnutrition.ieAS-{%gQEpSr_+<dyb+>:Yd#nWbetyh~4rmMUap4Q6rZEcZy');
define('SECURE_AUTH_KEY',  '+hOIBXnJ~C;ftmT([CA|]_wDSbodyfirstnutrition.ieG<K?#S8{H>//EaLy7]h:jhRfj.K=Usg#g&$9+ox');
define('LOGGED_IN_KEY',    'c8K?-u_wU{BZ2yHK_sbOo1@?!bodyfirstnutrition.ie}H<`PM%7^l6VJTY,~DSOJ,zCtVI@Ym$WZi1@5x5');
define('NONCE_KEY',        's5,9YV+%:+HFX#l~ %RE`AZ/pbodyfirstnutrition.ieUzn<&<R%71t-|[H-L+}AtN9/thH&dMcVM8WN|Q}');
define('AUTH_SALT',        'KUEIq@~d.Tk+~t>1:HS9$8G_*bodyfirstnutrition.iezG,jcuq2l=7l#KE[-1c)QW3a{LwGi-kwhRVP&]g');
define('SECURE_AUTH_SALT', ';0GoKVCGWIZh:YOa*h[]-T&Dibodyfirstnutrition.ienp=:iQ;z$>OkEYNi2@Y`|5-c|n:Jb #}97E?LX7');
define('LOGGED_IN_SALT',   'we3RP{hVolwbVh-((L%LEcHKlbodyfirstnutrition.ie[IaA9<bDvi`h/M:3U7xK8S]A|.Q,2$|*jcOqWNB');
define('NONCE_SALT',       '~<MckLITBiGaIV)497^JDbe-)bodyfirstnutrition.ieG:*}/Prup?HeQMLNLz2kG~d/306X7Noin@gGh7+');

/**#@-*/

/**
 * WordPress Database Table prefix.
 *
 * You can have multiple installations in one database if you give each a unique
 * prefix. Only numbers, letters, and underscores please!
 */
$table_prefix  = 'trt_';

/**
 * WordPress Localized Language, defaults to English.
 *
 * Change this to localize WordPress. A corresponding MO file for the chosen
 * language must be installed to wp-content/languages. For example, install
 * de_DE.mo to wp-content/languages and set WPLANG to 'de_DE' to enable German
 * language support.
 */
define('WPLANG', '');

/**
 * For developers: WordPress debugging mode.
 *
 * Change this to true to enable the display of notices during development.
 * It is strongly recommended that plugin and theme developers use WP_DEBUG
 * in their development environments.
 */
define('WP_DEBUG', false);

/* That's all, stop editing! Happy blogging. */

/** Absolute path to the WordPress directory. */
if ( !defined('ABSPATH') )
	define('ABSPATH', dirname(__FILE__) . '/');

/** Sets up WordPress vars and included files. */
require_once(ABSPATH . 'wp-settings.php');
define('WP_HOME','http://bodyfirst.ie');
define('WP_SITEURL','http://bodyfirst.ie');

Open in new window

You can manually alter the code files change all text bodyfirst.ie to dyfirstnutrition.ie
that should do it
Somewhere there is a setting you have missed.

An intersting points is that your navigation has some anomolies

If you hover over a menu item that has a sub-menu you will see the link it points to is bodyfirst.ie.
If you hover over a link that does not have a sub-menu the link is bodyfirstnutrition

The exception is the about menu.

Looking at your code - menu items are showing either a relative path or a full path to bodynutrition

For example
About
<a href="http://bodyfirstnutrition.ie/about">About</a>

Shop by Category
<a href="/shop">SHOP BY CATEGORY</a>

I would look at your nav and see why that is happening - you want all your links to be generating relative paths - which should fix your problem.
Thanks Julian,

where do i change my nav?

within wordpress?
Are yo using the default WordPress navigation or have you added a plugin
Just the default?

thanks
Were any customisations done to the code of your site?
ASKER CERTIFIED SOLUTION
Avatar of Marcellino Santoso
Marcellino Santoso
Flag of Netherlands image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial