Magento saving issues after move to new server and new domain - php

I recently moved my magento store from a server using one domain name to a new host/server with another domain name. DNS has not been changed on the new domain yet so I am using my host file to work on the site.
After the move, I make changes to product descriptions or CMS Page
Click Save and it says that it was saved, however, after saving, changes show on frontend of site immediately but don't show in the admin unless I log out and log back in.
I am unable to delete text in CMS page or product descriptions at all without going into phpMyAdmin and removing the text from the database.
Any ideas what this might be?

Related

Redirect wordpress website to another site

I moved my wordpress website with updraftpluse backup plugin to another domain and now when I open new domain website redircet to Previous domain.
what can I do for fix this problem?
please help m!
Migration to a new domain is a different task from restoring a backup. Doing it correctly requires updating hyperlinks embedded in your site's content, as well as loading the site data onto the new server. It's quite difficult to update all the hyperlinks manually. But if you don't you get the results you mentioned in your question.
Updraft's paid version supports migration and automates the hyperlink update operations. So does Duplicator's free version.

Wordpress cannot find all media

After manually moving wordpress to another hosting, it can't find all the media (e.g. photos). I changed the old url in the database in wp-opitions to the new one and changed wp-config to connect to the new database.
The problem is that some images are showing up, and some wordpress can't find despite being in the same uploads directory.
When migrating, it is not enough only to change the old url to the new one in the opitions table.
You need to change it in the whole database.
The images in the text are often set not by their ID, but simply by a link.
Try to install this plugin Better search and replace and replace the domain in all records through it.
If you have access to the old site and everything works there, try to install this plugin duplicator it will pack the entire site, with pictures and plugins settings and then do all the changes in the database.

hosting an old part of a php site on a subdomain?

This is my first post here, I'm also kinda new to web dev.
I made a new site for a client an changed the hosting of the domain.
But he wants an old part of the side witch is an catalog with sorting functions made with php behind a login. I want to host this on a subsite of the hosting. Can I "copy-paste" this catalog with ftp? i have a copy of the database and the full file of the old website. I know that the php version is out of date and I'm having trouble how to find a way to update this.
When i upload the site i get a permission error trying to visit it.
When I try it locally i get to the login screen and the first page of the catalog, but when i try to select a category I only get a white screen.
I already want to thank you all for the help.

Moved Wordpress site and on login redirects to home page

I meticulously backed up a working WordPress site, files DB tables, the works. I moved it to a new server, got everything working, the site renders, the DB is recognized, etc.
The issue is anytime I try to log-in, after login the site always redirects to the homepage (mysite.com/index.php)
I have scoured every PHP page for text like 'site_url' and 'wp-redirect' 'redirect' looking for the offending code that will not direct me to the admin dashboard.
To be honest, I am not even sure what page the site is supposed to redirect to.
I can always reinstall, but then I'd get stuck with the daunting task of having to manually rebuild all the headers, with the images, embedded flash and the rest of it.
Since the site was working at the previous location, and not a single byte was lost on the move, with all the tables updated to show the correct server name, I am stuck on this issue.
I have looked at all the StackOverflow links related to this issue and none of them addressed my issue specifically.
WordPress never does such redirection. Some security plugin can do. To fix the issue. deactivate all the plugins, you can do this by executing following query
UPDATE `wp_options` SET `option_value` = '' WHERE `option_name` = 'active_plugins';
Once done login and activate the plugins one by one and check which one causing the issue.
I had to re-install WP altogether. Once I did that, I was able to login and see the WP dashboard.
To reinstall, I relocated all the files in the main directory and the wp-admin, wp-content, and wp-includes folder. All the other folders I left alone, because they are not affected by the WP install.
After the install, you will have to open the wp-config.php file to input the new db name, db user, db password and db host. What you will see is the WP install added a fresh set of tables in the db you named in the config file. The only folder you will then have to copy and paste is the theme folder from the old site into the themes folder in your new install.
Now that you can login (yoursite.com/wp-admin), to populate your dashboard, import all the records from the old db table into the new one (the one with the pages and posts you want). If you do that right, all the pages (and blog posts) should populate in the dashboard window.

How to revert wordpress when "settings" in the admin panel have been changed to prepare transfer to a live site?

I'm having a problem with my Wordpress. When I transferred the database to a live site then tried to revert it back to its original state (local server) so I could edit the wordpress site again, the functions in the admin panel were not working normally. Example when I log in to the admin panel only a white space loads. No page was loaded.
Below are the steps I made so I could transfer my Wordpress to a live site. By the way, I am using AMPPS to edit the Wordpress site locally.
1.) Backed up the database in the PHPMYADMIN by exporting a gzipped file.
2.) Went to the Dashboard > Settings > Changed the Wordpress Address (URL) and Site Address (URL):
3.) After I changed the settings, I exported another database file so it will come with the changed settings.
4.) Successfully transferred the live site.
Again, here are the steps I made so I can revert back my Wordpress settings in my local server:
1.) Dropped the database in the "PHPMYADMIN" console.
2.) Imported the back up database.
3.) Successfully imported the back up.
Although it was successfully imported, every time I log-in there is always an error where only a white page loads. Absolutely 0. How can I revert my Wordpress in my local server properly?
I hope someone can help.
Thank you.
Wordpress Address (URL): FROM "127.0.0.1/testsite" TO http://www.testsite.com
Site Address (URL): The same
3.)
Found the solution by doing the following:
1.) Go to phpmyadmin and drop the current tables in the database. (check all > then drop)
2.) In the back-up database, go to WP_OPTIONS table.
3.) In the first page, you will see a website address - change it to the web address of your local server (eg. http://127.0.0.1/mysite)
4.) Go to "Page 2" of the WP_OPTIONS
5.) You will see another URL where it says "http://www.mysite.com" to your local server address - http://127.0.0.1/mysite.
6.) Refresh your browser and all done!

Categories