• Resolved zakcadmin

    (@zakcadmin)


    Could really use some help please.

    When I go to export from tool>export I get error 500 when I try to export “all content” or “variables”. Everything else exports fine when I do them individually.

    How would I go about finding and fixing the problem?

    Thanks

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

    Your 500 error is probably caused due to low memory limit I assume.

    You can easily increase the memory by editing your wp_config.php file which is in your root folder and just before the end of the file you will see a line saying

    /* That's all, stop editing! Happy blogging. */

    Right before that paste the following code and try to export again.

    define( 'WP_MEMORY_LIMIT', '256M' );

    If that works you can remove this line again to get your memory limit back to your servers default.

    Best regards,
    Konstantinos

    Thread Starter zakcadmin

    (@zakcadmin)

    Hey,

    Thanks for the reply.

    I tried as you said but unfortunately still got the 500 Server Error message.

    Regards,
    Charlie

    Maybe your host doesn’t allow overriding the memory limit. If that’s the only way to increase it is by asking your host support team.

    There’s no other explanation I believe as you can export them one by one but not all together that means the memory isn’t enough to handle the data given.

    Best regards,
    Konstantinos

    Thread Starter zakcadmin

    (@zakcadmin)

    The memory limit was definitely increased because I had to do it as a requirement to install my theme.

    I get the error message if I try to export “variables” on it’s own so I’m assuming that’s where the problems coming from. I don’t have any clue where I would start looking for the specific cause though.

    Regards,
    Charlie

    The other reason then for a 500 error part from mem limit is either a faulty code in a plugin or the theme or your htaccess.

    Sorry for me being a bit sleepy and brain-numb but… why don’t I have a ‘variables’ setting in there?

    Are you using any plugin that changes the export settings? I only have ‘all content, posts, media, pages’. If you have a plugin of that sort try disabling it so you’ll use the built-in export instead.

    Best regards,
    Konstantinos

    Thread Starter zakcadmin

    (@zakcadmin)

    I tried restoring an old copy of my .htaccess after I saw that suggested elsewhere but that didn’t sort it.

    I just checked and it’s woocommerce that’s giving those options. I guess I could use the built-in export and then find some other way to backup woocommerce separately to work around the error.

    Regards,
    Charlie

    You can always start a debug process to see exactly what is going on and why you are getting a 500 error ( I never mentioned that probably I thought you already did.. ).

    You can edit your /wp-config.php and add these lines before the ‘stop editing’ line.

    define( 'WP_DEBUG', true );
    define( 'WP_DEBUG_LOG', true );

    This will generate a debug.log in your /wp-content/ folder with all the errors that are happening. This should be really helpful if we can get our eyes on it to see what’s going on.

    Best regards,
    Konstantinos

    Thread Starter zakcadmin

    (@zakcadmin)

    Ok so I did that but the debug log didn’t generate. Any ideas?

    Regards,
    Charlie

    Thread Starter zakcadmin

    (@zakcadmin)

    Just to clarify, I entered the code, attempted the download to get the error and then checked in wp-content but nothing new was there.

    Regards,
    Charlie

    The only thing I can imagine being a problem for not getting a debug.log is that your PHP’s error_log() isn’t called for some unknown weird reason that is unknown territory to me. I’m not very much into those technical server side details tbh so I guess I’ll stop my help here and hopefully another fellow could assist you further.

    My last stand would be to talk to your host guys and try to check the servers php logs in case you have the errors in there at least.

    Best regards,
    Konstantinos

    Thread Starter zakcadmin

    (@zakcadmin)

    Ok no worries. Thanks for all the help I really appreciate it ??

    I’ll try get in contact with them and see where that gets me.

    Regards,
    Charlie

    Thread Starter zakcadmin

    (@zakcadmin)

    Just found the solution: I needed to revert Woocommerce to a previous version and that fixed the issue. I’m assuming it must’ve been causing some sort of conflict with my themes current version.

    Awesome, glad you found a workaround after all this back & forth ?? .

    Best regards,
    Konstantinos

    Thread Starter zakcadmin

    (@zakcadmin)

    Me too! Thanks again ??

    Regards,
    Charlie

Viewing 14 replies - 1 through 14 (of 14 total)
  • The topic ‘Error 500 when exporting variables’ is closed to new replies.