Migrate a website without plugins

Website URL

http://mozaik.free.nf/?i=1/

Error Message

Fatal error: Uncaught ArgumentCountError:

Other Information

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?

2 Likes

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?

Did you read?

Make sure you do this as well

2 Likes

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!

Admin had already pointed out that you did not follow instructions

and you think those instructions are crap. Well, I rest my case.
Those who had put in effort will deserve my help

1 Like

Since then, I have already manually uploaded the site 2 times along with the database to your hosting. What empty bases are we talking about?


You should at least look at the name of the topic
I donā€™t think the database is empty.
Your answer perfectly reflects what I wrote about.

If you did read the instructions carefully, then these mistakes would not occur.

Since you are so smart and full of yourself, I am sure you can figure it out.

Good luck!

1 Like

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.

2 Likes

The screenshot shows a database with data. But when I check your account, there is no database to begin with:

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.

2 Likes

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:

  1. Manually upload the files from your previous host to our hosting using FTP.
  2. Create a new database, and upload the database backup from your previous host using phpMyAdmin.
  3. 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.

2 Likes

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.