• Resolved TresOjos

    (@tresojos)


    I made a hosting migration. I have two wp sites and I didn’t have any issue with the first one (nerivela.org), but I just cant’t make it work with the second one (mumo.nerivela.org).

    1. the first problem I get was: Fatal error: Call to undefined function apply_filters() in /../../ public_html/mumo/wp-includes/default-constants.php on line 20,
    so I read the forums, and upload the file (first in the carpet, just the file, upload again everything, upload again from the other backup) but the error still was there.

    2. I read a post in the forums that said to download a new version of wp and replace wp-includes and wp-admin complete, and I got this fatal error:
    Fatal error: Call to undefined function apply_filters() in /../../public_html/mumo/wp-includes/load.php on line 316

    3. So I found in forums that the solution was to do a manual update, and I did it just as the Manual update page says. But the result was as if the installation was completely new, non of the old contents are showed. As if there were not any data base. So I went back to #2 to avoid my client panicking with his wp site!

    What can I do? :,(

    The new hosting is in GoDaddy, database was made in MySql, and installed in PhpMyAdmin.

Viewing 6 replies - 1 through 6 (of 6 total)
  • Moderator James Huff

    (@macmanx)

    Volunteer Moderator

    Double check the database credentials in the wp-config.php file to make sure they’re connecting to the correct database, and especially make sure that the table prefix matches: https://codex.wordpress.org/Editing_wp-config.php#table_prefix

    For example, if the posts are in a table called qwerty_posts, that line in wp-config.php should be:

    $table_prefix = 'qwerty_'

    • This reply was modified 7 years, 4 months ago by James Huff.
    Thread Starter TresOjos

    (@tresojos)

    Hello, thanks for the reply James!

    I did what you recommended, I even deleted the database and made a new one, with a new user, named them as the original database and user name, reimported the data and modify the config.php file with the new changes and I wrote the $table_prefix = 'mu_' line with its prefix, but it didn’t worked. Still I can’t see my old data.

    But, now I can see this is relevant: when we made the first, the original setup, we made it as a “multisite” admin, just because we thought this could be convenient, but we never added another site to this admin. But I can see that this feature makes a difference in how it works with the database, do you think maybe the problem comes from this issue?

    • This reply was modified 7 years, 3 months ago by TresOjos.
    Thread Starter TresOjos

    (@tresojos)

    I debugged the site with define( 'WP_DEBUG', true ); and nothing come, also I checked the database with WP_ALLOW_REPAIR and everything was fine.

    Everything runs just as a healthie, brand new, wp page. I think the problem is the multisite configuration. If I make a new post it is made with the wp_ prefix and not with the mu_ prefix as it should be, it is working as a new site not as the old one. How can I turn off multisite? or how can I make a new site work with the old data?

    Thread Starter TresOjos

    (@tresojos)

    I debugged the site with define( 'WP_DEBUG', true ); and nothing come, also I checked the database with WP_ALLOW_REPAIR and everything was fine.

    Everything runs just as a healthie, brand new, wp page. I think the problem is the multisite configuration. If I make a new post it is made with the wp_ prefix and not with the mu_ prefix as it should be, it is working as a new site not as the old one. How can I turn off multisite? or how can I make a new site work with the old data?

    • This reply was modified 7 years, 3 months ago by TresOjos.
    Moderator James Huff

    (@macmanx)

    Volunteer Moderator

    If it was a Multisite network before, even if it was just one site, it might be easiest to bring it back first as a Multisite network since currently it’s a bit broken. To do that, you’ll need to make sure that Multisite is enabled following all the steps starting at: https://codex.wordpress.org/Create_A_Network#Step_2:_Allow_Multisite

    Alternatively, follow this guide to disable Multisite fully: http://wpmututorials.com/how-to/how-to-disable-multisite/

    If neither of those work for you, I recommend re-posting at https://wordpress.org/support/forum/multisite/ so experts in that field can help you.

    Thread Starter TresOjos

    (@tresojos)

    Dear James, thanks for your help!! It’s done, now everything is correct!!http://mumo.nerivela.org/ I added the line define( 'WP_ALLOW_MULTISITE', true ); and with the line $table_prefix = 'mu_'; and now everything works just fine!

    Thanks a lot for your help and happy new year!

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Not reading old content after installing wp in hosting migration’ is closed to new replies.