It's possible to install Wordpress to a free plan of InfinityFree?

Hi!
It’s possible to install Wordpress to a free plan of InfinityFree?
If it’s possible and I have the web files in an other website, how can I put the files in the new InfinityFree website?
I have to install first Wordpres or I can upload all the website files in the FTP and that’s all?

Thank you!

Yes

If you need to migrate

9 Likes

I update all the files to the htdocs folder but now when I go to the page it appears the message: Error establishing a database connection.
What’s the problem? I have to install Wordpress or is not necessary?

The problem is that WordPress uses a database to store it data, it’s not anywhere in the website folder, and you didn’t upload these to the hosting.

Please read the second guide I gave you above.

6 Likes

The problem is that the migration guide has 4 steps and you only did the first one.

You should NOT “install” WordPress. Installing will give you a new, clean website. If you want to migrate your website, you should not install it.

But you do need to make sure your database is also transferred and configuration updated.

6 Likes

Okay, I’ve followed all the steps and everything seems to be working fine now, but I’m still unable to view the web because It appears a message that says: A critical error has occurred on the website. I don’t know what critical error it is.

5 Likes

I do the first step, but when I write true in WP_DEBUG it doesn’t appears the problem

I’m sorry, but what do you mean by that?

If you enable WP_DEBUG mode correctly, it should show the real PHP error message. If you’re having trouble making sense of that message, then we can try to help, but we need that detailed error message to be able to say something useful.

4 Likes

- Open the file wp-config.php and find the line which contains WP_DEBUG . On that line, replace false with true and save the file.

- Refresh the page on your website and you should now see error messages.

This not works. The error message it not appears on the website.

Please, can you help me?
Thank you!

First, refresh the page multiple times (3 should work)

Then, can you send a screenshot of your site, with debug enabled?

Enabling WP_DEBUG should show you an error message. If it doesn’t work, then I’m not enough of a WordPress expert to tell you why that is.

Perhaps a plugin or theme is forcibly overriding the error handling settings to block error messages? A good plugin or theme shouldn’t do that, but not every plugin and theme follows the best practices completely.

I had a quick look at your website to see if there was a way to get the error. I managed to dump the error by going into the code that renders the error page, which is the function display_default_error_template in the file wp-includes/class-wp-fatal-error-handler.php. By adding some debug lines in there, I was able to find the following error message:

Unparenthesized a ? b : c ? d : e is not supported. Use either (a ? b : c) ? d : e or a ? b : (c ? d : e)

This error originates from the file htdocs/wp-content/themes/ofiz/framework/register-functions.php and line 824.

So it seems like there is a PHP syntax error in your WordPress theme. Is this your own theme? Then please fix the error above. If you got the theme from somewhere, please make sure that the theme is still being updated and you’re using the latest version. And if yes, then please report this issue to the theme developer.

4 Likes

It’s not my theme and this webpage it was active a lot of years in other domain.
I don’t know how to fix the error.
The line 824 says:

$item_output .= array_key_exists( ‘link_before’, $args ) ? $args[‘link_before’] : $args->link_before . $title . array_key_exists( ‘link_after’, $args ) ? $args[‘link_after’] : $args->link_after;

How I can to fix the error with your instructions?

Evidently this is a PHP 7 syntax; PHP 8 requires you to put parentheses around the code:

$item_output .= (array_key_exists( ‘link_before’, $args ) ? $args[‘link_before’] : $args->link_before) . $title . (array_key_exists( ‘link_after’, $args ) ? $args[‘link_after’] : $args->link_after);

But then, please understand that I have no full understanding of the code and I cannot guarantee that this is what the devs were thinking when they wrote down this line.

Besides, I really recommend you to move to a newer theme that supports PHP 8 instead.

7 Likes

Ok, I paste the new line but now the web page does not load. It not appears wordpress page and it’ appears (ERR_CONNECTION_TIMED_OUT) and when it stops loading the browser says the old domain, not the new with you. What could be the problem?

This is a very different error, suggesting that the error happened at the network level instead of at the application level (WordPress).

It can be our servers experiencing an outage, it could be your ISP blocking connections, it can mean many things. But I don’t know what exactly the issue is, unfortunately.

6 Likes

I think the problem is the webpage is redirecting to old domain. How can I change to the new domain?

5 Likes

It not works. Now the problem is: ERR_SSL_PROTOCOL_ERROR
I try to make SSL certificate and it says:
SSL certificate error: The provider was unable to verify your domain name. Please check your DNS settings or try again later.

Error detail: 2 validation attempt(s) succeeded, 4 validation attempt(s) failed. Must have more successful validation attempts than failed.