Moving Wordpress website from Localhost to Server - wordpress

I have a problem with moving my wordpress website from Localhost to Webserver .. In the server, I have an old website (wordpress to) .. so when i finished uploading the website I edited the wp-options siteurl and wp-posts guid from "Localhost:4455/ruepress" to "mydomain.com/ruepress2" because i have already another website exactly in the public_html directory .. when i enter to my website it loads the page but some pictures doesn't appear .. and when i click on an articles it redirects me to the old website and it shows the coming soon page (because i made the old website on under-construct mode) .. so whats the problem ? i think the problem is in the siteurl but I changed it ?

+1 for:
https://interconnectit.com/products/search-and-replace-for-wordpress-databases/
However, if you do not wish to use that rout for any reason, I can suggest an easier option:
On your local site, install this plug-in:
https://wordpress.org/plugins/duplicator/
Next, generate a Duplicator package (via the plug-in's menu on wp-admin dashboad).
Once the package is generated, download the two package files (installer.php and the archive/zip file) to some folder on your PC. Next, upload these two files to the live site folder where you wish to create the site. Next, open the following link in your browser:
http://{your_domain}/{folder}/installer.php
and follow on-screen instructions. Your site should get created and everything should work fine.

This is a very common issue. You have to change all URLs in the database, not just wp_options, i.e. in post/page content, widgets, theme options. and more.
Try interconnectit.com WordPress Serialized PHP Search Replace Tool. It's specifically made for this. And see Moving WordPress « WordPress Codex, which mentions the same Interconnect script.
Use the developer tools in Firefox (or Firebug) or Chrome or Safari or IE to check the path of the missing images before and after using the script.

Related

I have Jetpack installed on my wordpress, but Jetpack is offline, how can I open Jetpack?

I am new to wordpress, I installed wordpress using xampp, and recently installed Jetpack in wordpress, but Jetpack is offline, I refer to the Internet information, use the notepad++ editor to add more define('JETPACK_DEV_DEBUG' to the wp-config.php file , true ); after this line, re-navigate once, and the result is that Jetpack is offline.
Internet reference sources:
https://zh-tw.jetpack.com/support/development-mode/
https://jetpack.com/support/development-mode/?site=localhost::wordpress
Questions are as follows:
Because there is no plug-in editor installed, is there no response to changing the plug-in code?
My URL is localhost so Jetpack is automatically offline?
To change to another URL, for example: http://xxxxx.com, will Jetpack not be offline?
Jetpack is offline, can it not protect the website?
Jetpack is offline, is there any other way to solve it? How can I open Jetpack?
The photo on the left uses the notepad++ editor, and an extra line of code is added to the picture, and the photo on the right is the execution result.
enter image description here
enter image description here
First of all let's understand why your Jetpack is offline.
As per the documentation here Jetpack goes offline for 2 reasons:
When you add define( 'JETPACK_DEV_DEBUG', true ); to your wp-config.php file.
When it detects no period (.) In the URL. That means on http://localhost it'll not work but on http://localsite.local it'll work. It needs to detect a period/dot (.) In the url.
In your case its both. You have that line in your code as well as the url without period.
Now here are answers to your questions:
You don't need any plugin editor if you're working on local. You can use anything like NPP or VS code etc. Also, you should bever edit jetpack or any plugin directly.
Yes, as i mentioned earlier.
If you change to another URL make sure you add a period (.) to it like http://something.local
No, when its offline it can't.
If you remove that line from wp-config.php and change the url to something with period it'll automatically go online.
Pro Tip: Use local for faster wordpress developments. It'll save ton of your time doing setups and all with xampp and it gives you control of php and mysql config per site. It setups wordpress on local machine in 3 clicks. Pretty easy.
I hope i've solved all of your queries. If you have any other queries let me know.

404 Error on Images Locally with WAMP/phpMyAdmin

I recently set up a WAMP server using phpMyAdmin and am having issues displaying images pulled from my website hosted via Pantheon. I've got everything running fine, but the images will not display.
I've exported my website's database via Pantheon and imported with phpMyadmin and the theme loads correctly, but not any images. It's running on WordPress as well. I've tried to find specific examples of this happening, but I'm not sure what the deal is. Any information would be appreciated.
If i get it right you exported you wp site and imported it at a local machine ?
Have you checked / changed the site url in wp ?
If in wp the site url dont match the real url the links to the files can get broken ..
Look at our site code in browser and there you should find the image link to see what wp realy try to load.
Solved. Had to extract the contents of the .tar file into the "uploads" directory, twice. There was no explanation to do this in any of the documentation I could find, I didn't understand how .tar files work.

wordpress migration broken links

I am experiencing a problem with the wordpress migration.
I held my website on localhost beofre (xampp server in computer). It all worked fine so I decided to move it to a real domain. The website is http://www.cupavortex.ga .
I exported the database from phpMyAdmin in xampp, and imported it in the new database in the wordpress site. wp-config.php is already configured
The only thing working is the homepage and the buttons.
The images are not appearing.
And when I try to click on any link it redirects me to the old addresses (for example, when I try to click on “Desfasurare”, it redirects me to localhost/CupaVortex/desfasurare because that was the old link. I can’t acces wp-admin nor any administrative tools but phpMyAdmin and FileZilla.
Also, the site is hosted at 000webhost.com, and yes, I modified the mysql name to mysql4.000webhost.com from localhost, and replaced utf8mb4 with utf8 in order for everything to work. I just want to find out how to replace the links, I don’t really care about the images.. Theme used is Astrid.
Thanks in advance
Have you updated your database 'home' and 'site' url entries? This is done in wp_options, both need to be the new base url! After that, if thats the issue, you'll probably want to refresh your permalinks in the wp-admin settings section.
Go Back to your old local host website for a sec.
Steps:
Go to Settings->Permalinks and set it to numeric values.
Check if you have not used a custom link inside the website for any images or post or anything. If you do then change it to the new numeric values from it.
Now just export the sql datasheet and website back up from old host to new host.
Make sure you update ALL absolute links to posts, images, files etc.. by running the following plugin: "Velvet Blues Update url's"
What this will accomplish is (according to own personal experience and taken from plugin developer's page is)
FEATURES:
Users can choose to update links embedded in content, excerpts, or custom fields
Users can choose whether to update links for attachments
View how many items were updated
Last edited by Dimitar Coklev on Feb 18, 2018

Moving WordPress from localhost to a live server

Have successfully moved my WordPress website from my localhost to a live server but the images are not showing and some pages as well. Some pages are still showing the localhost URL while another error message am getting is "That page can't be found".
I already changed my siteurl and Home column in my database table (wp_option) to the live server, but still the images are not showing yet. What should I do?
You have to replace all localhost url in your database.
You should follow the steps below to move your database from local to live server:
Export your database to sql file
Use notepad++ open that sql file
Replace all localhost url to your live domain and save the file
Import the saved file to the live database
Note: make sure that you uploaded all the images to the live server
I would definitely recommend to use an automated plugin for the task. The one I use is Duplicator, by LifeInTheGrid. It is free and works perfectly to move a site from development to production and viceversa. Here is the link to it:
https://wordpress.org/plugins/duplicator/
I use it with all my sites and so far it has worked flawlessly.
I finally discovered a wonderful plugin that did it all.
The plugin is called Velvet Blues Update URLs .
Just Download the package. Extract it to the "plugins" folder of your WordPress directory. In the Admin Panel, go to "Plugins" and activate it.
Go to Tools -> Update URLs to use it and then tick all the boxes to replace the old URLs with the new URLs.

problem of wordpress move hosting, broking the link

I use wordpress as a CMS(NOT A BLOG) build a information site. I use wordpress 3.04 + buddypress 1.26 + Exec-PHP(only 2 plungins).
I built my site in my computer, winxp + Apache/2.2.13 + PHP/5.2.11 the path is in e:/www/wordpress. I made a custom buddypress theme in E:\www\wordpress\wp-content\themes\mynewtheme and I store all the Template, css, js, images under this theme path. Then I open settings->Permalink Settings->Custom Structure set a path like http:/localhost/wordpress/index.php (For I am a newbie, I tried this, but pass the test). I add all my new pages through admin dashboard->pages->add new. Then I can test my pages, type a url like localhost/wordpress/computers/apple.
I have already finished my site, so I want move these files to another computer for a last test. The new computer win7 + Apache/2.2.13 + PHP/5.2.11 the path is in c:/www/wordpress, I copied all the page files from first computer e:/www/wordpress to new computer c:/www/wordpress and copied all database through phpmyadmin.
I just copied page files and database, nothing more. But when I type the url http:/localhost/wordpress, the home page just load little, and localhost/wordpress/computers/apple was a broken link. I checked the html source code , find all the css, js, images under my custom theme are all missed. Is it because my first settings->Permalink Settings->Custom Structure setting wrong? Or other mistake caused?
How to solve? I am almost crazy. Waiting for a help. Thanks.
If you first installed WordPress in a WAMP server, there can be problems when migrating server. I know of two options:
While in your WAMP server, before doing the migration, under Settings, enter the domain that you will be moving to your site. It will most likely work once you migrate.
(This is what I use), after performing the migration, you can edit the domain in PHPMyAdmin. Log in to PhpMyAdmin and choose the database that you use for WordPress. Under list, look for wp_options.
Under the field option_name, seek site URL. The site URL should be listed as localhost. Change it to your site's new URL.
Did wordpress installed correctly? Is it a theme issue?

Resources