• Hello,
    I have big problems since I have transfered my website from local to online.
    The website appears with all pages and photos, but I can’t edit and modify no page.
    I have an internal error 500. I don’t know where it can come from…
    I see my pages but I have no access.
    And when I try to create a new page it doesn’t work…
    Could you please help me ?

Viewing 14 replies - 1 through 14 (of 14 total)
  • Hi.,

    I highly recommended using duplicator plugin for migration, Its pretty simple

    https://ww.wp.xz.cn/plugins/duplicator/

    Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    Errors like this are logged. Check the error log on your server. If you can’t find the log, please contact your host.

    Meantime, enable wp_debug and wp_debug_log and after an error, look at wp-content/debug.log to see if anything gets logged there. https://codex.ww.wp.xz.cn/Debugging_in_WordPress

    You can also try this: Please attempt to disable all plugins, and use one of the default (Twenty*) themes. If the problem goes away, enable them one by one to identify the source of your troubles.

    If you cannot access wp-admin, there are other ways to deactivate plugins.

    Thread Starter stefpat

    (@stefpat)

    Thank you so much for being there !
    Here is the message of debug.log :

    [12-Feb-2018 21:52:55 UTC] The The “add_to_cart_fragments” hook uses out of date data structures and function is deprecated since version 3.2.5. Replace with woocommerce_add_to_cart_fragments.

    Thread Starter stefpat

    (@stefpat)

    Do you think It’s better to delete the migration and do it again from the beginning ? May be with duplicator ?

    No, This error needs to be fixed. You need to update your code where do you use “add_to_cart_fragments” this hook maybe your plugin or your theme

    Thread Starter stefpat

    (@stefpat)

    I have no idea…
    I have tried to desactivate the plugins and change the theme, but the problem is still there. How can I find where this code is ?

    Check your error log file after deactivate plugins, Have the same error message?

    Thread Starter stefpat

    (@stefpat)

    Done.Still doesn’t work
    Same error, same essage, but also some hour as if it wasn’t updated

    Internal server errors (error 500) are often caused by plugin or theme function conflicts, so if you have access to your admin panel, try deactivating all plugins. If you don’t have access to your admin panel, try manually resetting your plugins (no Dashboard access required). If that resolves the issue, reactivate each one individually until you find the cause.
    If that does not resolve the issue, try switching to the default theme for your version of WordPress to rule-out a theme-specific issue. If you don’t have access to your admin panel, access your server via SFTP or FTP, or a file manager in your hosting account’s control panel, navigate to /wp-content/themes/ and rename the directory of your currently active theme. This will force the default theme to activate and hopefully rule-out a theme-specific issue.
    If that does not resolve the issue, it’s possible that a .htaccess rule could be the source of the problem. To check for this, access your server via SFTP or FTP, or a file manager in your hosting account’s control panel, and rename the .htaccess file. If you can’t find a .htaccess file, make sure that you have set your SFTP or FTP client to view invisible files.
    If you weren’t able to resolve the issue by either resetting your plugins and theme or renaming your .htaccess file, we may be able to help, but we’ll need a more detailed error message. Internal server errors are usually described in more detail in the server error log. If you have access to your server error log, generate the error again, note the date and time, then immediately check your server error log for any errors that occurred during that time period. If you don’t have access to your server error log, ask your hosting provider to look for you.

    if not fixed

    Migrate again using Duplicator plugin

    Thread Starter stefpat

    (@stefpat)

    I tried to compare the original files and the ones copied on my ftp connection and I have some new files such as :
    – package-locks.json
    – phpcs.xml
    Is it normal ?

    No its not issue, One for web pack another one for php code standard xml

    Thread Starter stefpat

    (@stefpat)

    I don’t undertsand very well what you want me to do with htaccess file…

    Thread Starter stefpat

    (@stefpat)

    I will migrate again, but with duplicator…
    Do a delete both database and ftp files ?

    Yes, you need to remove both, Duplicator can create new one

Viewing 14 replies - 1 through 14 (of 14 total)

The topic ‘Problem with migration’ is closed to new replies.