Okay
  Public Ticket #3650634
MEGA error logging
Closed

Comments

  • jelle started the conversation

    Hi there, we have multiple websites on our Litespeed VPS running the B2B king plugin. we activated the plugin on the website shopdetrend.nl and this activated a huge load on the error logging, it's a warning that keeps coming back but at such a pace that it broke our server. it was spitting out so fast, the error log was increasing with 10GB per 2 minutes!!! absolutely nuts. we did upgrade to PHP 8.3.6 before activating the plugin but on another site, floofsandcookies.nl, it's on the same server, we had it running all along without issues and also upgraded to PHP 8.3.6. so not sure if that's it but for now we downgraded both back to 8.1.28. also deactivated the B2B plugin on shopdetrend.nl so I could chat with you to fix the issue before activating it again.. TY

    Attached files:  b2b error log.pdf

  •  2,114
    WebWizards replied

    Hi there,

    I looked into that error and it seems it has to do with some code that gets categories and the parent of categories. It seems like it's not able to get this correctly, maybe something to do with how categories are set up on the site, although I'm not sure exactly.

    I believe the issue can be resolved by adding this PHP code snippet to the site:

    add_filter('b2bking_apply_rules_to_direct_categories_only','__return_true');
    

    This makes it skip that code. Another effect is that if you have dynamic rules that apply to categories, this code will make it so the rule only applies to the category directly, but not to parent/sub categories (not explicitly defined in the dynamic rule).


    Regarding PHP versions, 8.3.* is a bit high as it's still classified under "beta support" (wp still recommends 8.1 or 8.2 https://wordpress.org/news/2023/10/wordpress-6-4s-php-compatibility/ ). Generally we test B2BKing with 8.2. However I ran a few quick tests now with 8.3 but could not see this issue or other errors, so I think most likely it is not related. I believe it has something to do with product categories / taxonomies - I wonder if this site has anything special about the category setup or any other plugins that affect this.


    Kind regards,

    Stefan