• Hello community, i’m trying to export one my wordpress website from the server where it is hosted to my computer because i want to check if i can upgrade all my old plugins but i’m having some problems.
    I have downloaded all the principal directory (where is wp-admin) in the htdocs xampp dir, then i have created a new database on phpadmin and i changed “home” and “siteurl” string from <url> to localhost.
    And finally i changed the wp-config with root “” and new database name.

    The problem is that now, after all this steps, if i reload my localhost i see this error but i don’t understand how can i solve it.

    
    Fatal error: Uncaught Error: Call to undefined function create_function() in C:\xampp\htdocs\wp-content\plugins\baw-login-logout-menu\bawllm.php:25 Stack trace: #0 C:\xampp\htdocs\wp-settings.php(305): include_once() #1 C:\xampp\htdocs\wp-config.php(105): require_once('C:\\xampp\\htdocs...') #2 C:\xampp\htdocs\wp-load.php(37): require_once('C:\\xampp\\htdocs...') #3 C:\xampp\htdocs\wp-admin\admin.php(31): require_once('C:\\xampp\\htdocs...') #4 C:\xampp\htdocs\wp-admin\index.php(10): require_once('C:\\xampp\\htdocs...') #5 {main} thrown in C:\xampp\htdocs\wp-content\plugins\baw-login-logout-menu\bawllm.php on line 25

    I tried to disable the bawllm plugin but after this it will get out a lot else problems like this.

    However the website now is working so i think that the problem is in some wrong step and sorry but for privacy i can’t post the link here, btw i don’t think that is necessary because, i repeate, the public website works…

    … thanks for yout help <3

    • This topic was modified 2 years, 9 months ago by Jan Dembowski.
Viewing 3 replies - 1 through 3 (of 3 total)
  • What version of PHP Are you running on your local PC?

    The create_function() function was deprecated in V 7.2, and removed in V 8. So if you’re running V 8 or higher then you’ll see that error as the function doesn’t exist any longer.

    If you want to keep that plugin on your local site, the only option is to use a lower version of PHP. Depending on how you’re running that on your PC it may be easy, or very hard to do.

    Thread Starter aleff01

    (@aleff01)

    @catacaustic i downloaded 7.4 php version and changing the folders apache and php i solved exactly how did you say, but now i’m having an another problem that i think is for some else change of php version, can you help me again?

    Warning: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in C:\xampp\htdocs\wp-content\plugins\jc-importer\app\helpers\form.php on line 585

    That one is to do with the coding of the importer plugin. I’d suggest asking in the support forum for that plugin.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Error exporting website from server to localhost’ is closed to new replies.