I migrated the site and database manually. Unfortunately I get an error and nothing works.
How could I correct wpconfig. I changed the url in the database.
When entering the site, there are a lot of errors.
If I want to log into the admin panel, I get an error
Internal Server Error. Without Elementor, the site opens, but the admin panel still does not work. Where to look for the error?
An ArgumentCountError does not seem like a migration problem to me, but rather that something got changed in your WordPress code which doesnāt work, or at least doesnāt work on our hosting.
Did you make any changes to the standard WordPress PHP code or .htaccess code?
I have php 8.1.25 on my local computer after the transfer, I changed it to two local urls to mozaik.free.nf
When nothing worked, I blocked htaccess (stophtaccess) but that had no effect. returned it as it was
lf itās not too much troubleā¦ please tell
me what should I do after transferring my wordpress pack to hosting?
I know what needs to change
define( āDB_NAMEā, ādatabase_name_hereā );
/** MySQL database username /
define( āDB_USERā, āusername_hereā );
/* MySQL database password /
define( āDB_PASSWORDā, āpassword_hereā );
/* 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ā, āā );
and change the database url to real ones.
All. I donāt know what to do anymore and Iām waiting for everything to work for me. But unfortunately this does not happen.
How to do it right?
you know, there are people who, when an error occurs, immediately text and call. help me!! Before Iāve texted you, Iāve read, asked chat gpt, checked, and when I had no more ideas, then Iāve asked you for help.
And there are admins who are already pissed off by the first type of people and tell everyone to fuck off.
I specifically asked, during the transfer, what to check, what to change, even the list I provided, which I already did, you just needed to add if Iāve missed something. Instead, you suggest that I read some general non-specific crap. Thank you for such help!
Finally, you looked at the database and it turned out to be not empty, and now you need to find a new charge against me? What instructions are you talking about where we are talking about these two records? I donāt even understand what you highlighted there.
Well, you mixed up two WordPress installations into one database, so in addition to supply the correct credentials, youāll also have to supply the correct $table_prefix value in that wp-config.php file.
As for which is correct, I donāt know, because I donāt know whatās the actual data in those tables, and I donāt know which tables contains your website.
And if youāre still looking for what to enter in the wp-config.php: the database names, username, password, hostname, etc. are all listed on this page.
Please understand the following:
I had a little look at the ArgumentCountError before I wrote my first reply here. I did a little bit of troubleshooting, and the error seemed to originate from the URL parsing logic from WordPress, where it appeared to be missing certain data. I have never seen any errors like that before, so itās definitely not a typical migration error, and could indicate incompatible changes having been made to the WordPress source code. But WordPress is big and I donāt know the entire source code of WordPress by heart, so fully tracing that error would probably take me hours, which is more than I am willing to do for a single website, especially when itās not likely that itās a hosting issue.
I did have a look at your .htaccess file, and I saw custom modifications to the WordPress .htaccess code in it. Notably the additional RewriteBase directives. Given that .htaccess rules affect how URLs are handled, maybe those are related.
Then the next post you wrote here is about database credentials. But this topic is not a database credential issue, itās a URL parsing issue. You had another topic about database migration, but by your last message, that issue seemed resolved. If itās not, then please reply to that topic.
The question āwhich database credentials should I useā is an extremely common question, which has been well covered by multiple guides from both us and WordPress, as well as numerous other topics on this forum. So please understand that we will first point you to the information that we have already written about this, instead of repeating the same information to you what we have repeated many times in the past.
You say you have done your research beforehand, which may be true. But the questions you ask are rather plain, and honestly didnāt give me the idea that you had done your research. And if youāre going to ask a generic question like āwhat should I put hereā with no context, then of course weāre going to point you towards generic information.
If you have already done your research, read the guides and either they are not clear or didnāt work for you, then please make sure to tell us. We donāt know what you know. We donāt know your thought process. We donāt know what you have done so far.
The more of those things you can tell us, the better we can tailor our answers to your situation. And then we wonāt have to send you generic answers to generic questions, but we can actually help you.
Thank you for your response and your time. I thought it would be easier to reinstall everything from scratch, so I did) But this time, I used the All-in-One WP Migration plugin for the transfer, and everything worked for me. However, I messed something up again, and it resulted in mozaik.free.nf/htdocs/htdocs.
WordPress didnāt want to install by default. (I added the htdocs folder) But I realized that it shouldnāt be like that. What surprised me the most was that the site was working, but the List of MySQL Databases was empty. And thatās not all: the values in wp-config.php were neither those present on the local site nor those in my MySQL Connection Details here.
Of course, I deleted this version too because it was driving me crazy. I donāt understand at all what I am doing and how to do it correctly. Please excuse me for bothering you with these basic questions, but I want to learn and figure this out.
The recommended method to migrate a website is to follow the guide you were sent earlier in the topic. Which means:
Manually upload the files from your previous host to our hosting using FTP.
Create a new database, and upload the database backup from your previous host using phpMyAdmin.
Update the wp-config.php file with the database credentials of the database you just created.
In this process, you should not need to add any plugins to your old or your new site, or need to install a new copy of WordPress on our hosting.
Based on what you say here, Iām guessing you installed WordPress with Softaculous, and accidentally installed it to a subfolder.
Please note that in the Softaculous installation wizard, you only need to choose which URL the website should be published on. Donāt think or worry about what directory the website is located in, Softaculous has this information and will find the right location to setup your website.
Softaculous also creates itās own databases and database credentials, which are not the same as your account credentials. Thatās perfectly normal and is just how Softaculous works. The only issue Softaculous tends to have is that the database permissions are not always setup correctly resulting in the database not being visible in the MySQL Databases list. That can be fixed by simply attempting to create a new database with the same name as the name used by Softaculous.
So if you want to go the All-in-one WP Migration route, please keep in mind those two things and you should be able to set it up successfully.