• Resolved exangel

    (@exangel)


    I have a site that have some plugins, and facebook for woocommerce is loading until it returns a timeout error (504) when I access its page. I can change some constants in wp-config.php, but none of them works when I need to debug a timeout.

    I tried to remove every configuration and file that I found from this plugin and then reinstall it, but the error is still there.

    I tried to deactivate every other plugin, but woocommerce, and the error is still there.

    I looked for some debug plugins, but I only found plugins that change wp-config.php constants and do some logs at files. It is useless, I can do this.

    I tried to put some “die” with messages in plugin’s code, but nothing changed.

    Server log just shows this:

    x.x.x.x - - [10/Nov/2020:08:48:25 -0300] "xxxxx.com" "GET /xx-admin/admin.php?page=wc-facebook HTTP/1.1" 504 160 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:82.0) Gecko/20100101 Firefox/82.0" "-"

    I don’t know what I can to do to debug this timeout, I’ve tried everything I know with the wordpress. Any idea of what it could be or how to debug it?

Viewing 9 replies - 1 through 9 (of 9 total)
  • Hi @exangel,

    Thanks for reaching out about Facebook for WooCommerce! I’ll be happy to help.

    Some hosts have privacy-related controls which can block Facebook. To confirm, has this worked in the past and has since stopped working, or is this a new install? Does it only 504 when accessing the Facebook plugin settings page, or are you also seeing this elsewhere, such as the product edit page?

    Thanks,

    Jennifer

    Thread Starter exangel

    (@exangel)

    Hi, @jenskyverge ! Sorry for the delay.

    It works in other sites I have in same server, but this specific one. But this plugin never worked in this site, only for others.

    It 504 only when acessing Facebook plugin initial page from admin, I didn’t tried other pages from same plugin.

    Hi @exangel,

    Thanks for confirming that for me. Could you please double check that you’re running the current version of the plugin, 2.1.4? If you’re not yet at this version, could you please try running the update and see if that makes a difference?

    Additionally, you mentioned that you tried this with all other plugins disabled – could you please give this a try with a default theme enabled as well, like Twenty Nineteen?

    Thanks,

    Jennifer

    Thread Starter exangel

    (@exangel)

    Hi @jenskyverge ,

    The plugin is updated to 2.1.4 and even with Twenty Twenty theme it returns 504.

    There are any way I can debug it? Do you think it should be in some method or class? Clean some specific configuration from database?

    Hi @exangel,

    I would recommend enabling WP_DEBUG and WP_DEBUG_LOG and trying this out again to see if this will help us get any further details on what’s causing this.

    Could you please try this out and let me know what you see logged in the debug.log log file inside the /wp-content/ directory?

    Thanks,

    Jennifer

    Thread Starter exangel

    (@exangel)

    Hi!

    The file debug.log wasn’t generated, but I found this log in other log file:

    2020-11-19T20:17:25+00:00 CRITICAL Maximum execution time of 300 seconds exceeded, at /var/www/html/x/wp-includes/taxonomy.php, at row 1576

    I am sure this is referent to my try

    Thread Starter exangel

    (@exangel)

    It always stop at the same line.

    Thread Starter exangel

    (@exangel)

    I discovered the problem!!

    Someone created two categories and put each category as ascendent from each other, this causes an infinite loop in this plugin.

    The arguments of this method are always this:

    name, FEMININO, 55, product_cat, raw
    description, , 55, product_cat, raw
    slug, feminino, 55, product_cat, raw
    count, 5, 55, product_cat, raw
    parent, 55, 55, product_cat, raw
    term_group, 0, 55, product_cat, raw
    term_taxonomy_id, 54, 55, product_cat, raw
    term_id, 55, 55, product_cat, raw

    And repeats until 504.

    I just opened wp_term_taxonomy table and removed parent 55 from every row and now it is working again. I will talk to the person who did this to correct the categories later. Thanks!

    • This reply was modified 3 years, 4 months ago by exangel.

    Hi @exangel,

    So glad you were able to get this figured out! This was a strange issue indeed. Thanks for sharing your solution here, as this may be a helpful tip to other users who may run into a similar issue.

    If you do run into any other problems or have any other questions, please don’t hesitate to reach out. We’ll be happy to help. 🙂

    Thanks,

    Jennifer

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Plugin page giving timeout (504)’ is closed to new replies.