3

I am new to wordpress so please assist.

I know there have been some questions regarding this already there but it did not work hence asking for assistance

I have cloned a live repo and saved it in my WAMP www folder which I normally use for other php sites and refer it using localhost/project/ but now when I am trying this it is redirecting to https://localhost/project/

I performed following steps

1) Set up my db connection in wp-config.php

2) added these 2 lines in wp-config

define('WP_HOME','localhost/project');
define('WP_SITEURL','localhost/project');

3) turned WP_CACHE to false in wp-config.php

I don't know what else to do so please assist.

Furkan Yavuz
  • 1,858
  • 5
  • 30
  • 51
Dhaval Chheda
  • 4,637
  • 5
  • 24
  • 44

3 Answers3

1

If it does not work, you can try using php built-in server. Go to your project root directory and execute the below command in console.

php -S localhost:8000

0

I can mention some basic steps without having much knowledge about your installation,

  1. Go to phpmyadmin, option wp_options, change WP_HOME and WP_SITEURL values, no need to define on wp-config.php

  2. Rename your plugins folder to something like "plugins1" and access admin, if you can access then go straight to update your Permalink.

  3. After updating permalinks rename plugins folder back to plugins then access plugin section on wp-admin.

UPDATE

After migration you are advised to replace all urls through out data base with old url. Please checkout the following plugin, it will surely help you out.

https://interconnectit.com/products/search-and-replace-for-wordpress-databases/

Let me know if still finding issue.

dipak_pusti
  • 1,645
  • 2
  • 23
  • 42
0

Its because of plugins that redirect like you may use some security plugin, Please deactivate all plugins ( to deactivate all plugins from database please check this link https://www.templatemonster.com/help/wordpress-disable-plugins-via-database-manual-removal.html )and delete cache folder and change base url from database no need to change config file

You can check base url for database here . url (http://www.inmotionhosting.com/support/website/wordpress/wordpress-changing-the-site-url-and-home-settings) Let me know if it helps

Last this you can try edit config file to show error reporting so that if any error related to custom it will display(Wp-config.php file change this define('WP_DEBUG', true); true to show errors). Thanks

Raman
  • 1
  • 1
  • 3
  • Theme file is giving an error if I deactivate plugins – Dhaval Chheda Dec 13 '17 at 03:36
  • Send me error what divi file gives – Raman Dec 13 '17 at 04:19
  • Fatal error: Uncaught Error: Call to undefined function bp_is_active() in C:\wamp64\www\adsmoi\wp-content\themes\project-divi\functions.php on line 1165 – Dhaval Chheda Dec 13 '17 at 10:23
  • Activate only single plugin that is related to bp_is_active seems its buddypress please activate that plugin only – Raman Dec 13 '17 at 11:32
  • how to activate this as I am not able to open the wordpress dashboard on my localhost? – Dhaval Chheda Dec 13 '17 at 11:39
  • You can follow here https://www.ostraining.com/blog/wordpress/disable-a-wordpress-plugin/ https://wordpress.stackexchange.com/questions/199798/activate-a-plugin-through-phpmyadmin-or-ftp here change a and like they did, let me know if any doubt – Raman Dec 13 '17 at 12:08
  • In wp_options table try to search active_plugins then one row will be shown , Then please edit it for example a:10:{ i:0;s:49:"1and1-wordpress-wizard/1and1-wordpress-wizard.php"; } a:10 -- count of activate plugin in our case it should be 1 i:0 ---- 0 for deactivate and 1 for actiavte viceversa you may check this .. Please update this and let me know if it works – Raman Dec 13 '17 at 12:16
  • did not follow the last part of how to deactivate the plugin – Dhaval Chheda Dec 13 '17 at 12:47
  • goto databse and wp_options table may be you have different prefix , so goto _options table first and let me know – Raman Dec 13 '17 at 12:48
  • a:27:{i:0;s:65:"BuddyPress-User-Account-Type/buddypress-user-account-type-pro.php";i:1;s:36:"acf-field-video-master/acf-video.php";i:2;s:33:"adsmoi-manager/adsmoi-manager.php";i:3;s:17:"adsmoi/adsmoi.php"; – Dhaval Chheda Dec 13 '17 at 12:54
  • here like i have omnly one plugin activate a:1:{i:0;s:9:"hello.php";} – Raman Dec 13 '17 at 13:02
  • a total and rest take onyl list of activate plugin remove rest – Raman Dec 13 '17 at 13:02
  • so like this a:1:{i:0;s:65:"BuddyPress-User-Account-Type/buddypress-user‌​-account-type-pro.ph‌​p";} ? – Dhaval Chheda Dec 13 '17 at 13:06
  • yes right please do this, enable all plugins related to buddy press, Create list with all buddypress plugin with count a – Raman Dec 14 '17 at 04:00