Forum Replies Created

Viewing 15 replies - 1 through 15 (of 395 total)
  • Thread Starter diegpl

    (@diegpl)

    Yes, I know that is while logged, but taking db queries with no reason, slowing down the performance. In every single page these queries are happening…

    Thread Starter diegpl

    (@diegpl)

    Essa função também está correndo em todo lugar sem motivo e pesando bastante a performance do db:

    Woocommerce\P\C\WoocommerceDatabaseDecorator->doFetch()

    Teriam alguma previsão de arrumar isso para eu começar a indicá-los aos meus clientes? Obrigado.

    Thread Starter diegpl

    (@diegpl)

    SELECT FOUND_ROWS()

    1. WP_User_Query->query()
      wp-includes/class-wp-user-query.php:859
    2. WP_User_Query->__construct()
      wp-includes/class-wp-user-query.php:80
    3. Google\S\C\A\Has_Multiple_Admins->get()
      wp-content/plugins/google-site-kit/includes/Core/Authentication/Has_Multiple_Admins.php:65
    4. Google\S\C\A\Authentication->Google\S\C\A\{closure}()
      wp-content/plugins/google-site-kit/includes/Core/Authentication/Authentication.php:1065
    5. WP_REST_Server->respond_to_request()
      wp-includes/rest-api/class-wp-rest-server.php:1188
    6. WP_REST_Server->dispatch()
      wp-includes/rest-api/class-wp-rest-server.php:1035
    7. rest_do_request()
      wp-includes/rest-api.php:545
    8. rest_preload_api_request()
      wp-includes/rest-api.php:2911
    9. array_reduce()
      wp-includes/rest-api.php:2911
    10. Google\S\C\A\Assets->Google\S\C\A\{closure}()
      wp-content/plugins/google-site-kit/includes/Core/Assets/Assets.php:396
    11. Google\S\C\A\Script_Data->Google\S\C\A\{closure}()
      wp-content/plugins/google-site-kit/includes/Core/Assets/Script_Data.php:51
    12. Google\S\C\A\Asset->before_print()
      wp-content/plugins/google-site-kit/includes/Core/Assets/Asset.php:129
    13. Google\S\C\A\Assets->run_before_print_callbacks()
      wp-content/plugins/google-site-kit/includes/Core/Assets/Assets.php:1016
    14. Google\S\C\A\Assets->run_before_print_callbacks()
      wp-content/plugins/google-site-kit/includes/Core/Assets/Assets.php:1025
    15. Google\S\C\A\Assets->run_before_print_callbacks()
      wp-content/plugins/google-site-kit/includes/Core/Assets/Assets.php:1025
    16. Google\S\C\A\Assets->run_before_print_callbacks()
      wp-content/plugins/google-site-kit/includes/Core/Assets/Assets.php:1025
    17. Google\S\C\A\Assets->Google\S\C\A\{closure}()
      wp-content/plugins/google-site-kit/includes/Core/Assets/Assets.php:155
    18. do_action('wp_print_scripts')
      wp-includes/plugin.php:517
    19. wp_print_head_scripts()
      wp-includes/script-loader.php:2177
    20. do_action('wp_head')
      wp-includes/plugin.php:517
    21. wp_head()
      wp-includes/general-template.php:3053
    22. load_template('wp-content/themes/esites/header.php')
      wp-includes/template.php:785
    23. locate_template()
      wp-includes/template.php:720
    24. get_header('shop')
      wp-includes/general-template.php:48

    That is another one.

    Thread Starter diegpl

    (@diegpl)

    Esse é um print da tela, que mostra a função nativa funcionando corretamente 🙂
    https://ibb.co/r20GZWV

    Thread Starter diegpl

    (@diegpl)

    Se faço isso, o plugin se quebra, então, como corrigir o warning, por favor? Obrigado.

    A minha também está assim e depois vai para cancelado e não acho o lugar de configurar o webhoook do dashboard do site do pagar.me. Alguém sabe o que devo fazer? Obrigado.

    Thread Starter diegpl

    (@diegpl)

    Por favor, também remova isso de class-wc-woocommerce-init.php linha 277 ele duplica o aviso, quem também não era para ficar aparecendo para sempre:

    //add_action( ‘woocommerce_settings_checkout’, array( CLASS, ‘mp_show_admin_notices’ ) );

    Thread Starter diegpl

    (@diegpl)

    Vocês não estão prestando suporte ao plugin? Já tem um tempo que apontei coisas simples aqui de serem consertadas, e ainda fica uma viso eterno no site, que não sai nunca, vcs são melhores do que isso 🙂

    Thread Starter diegpl

    (@diegpl)

    There are these two errors showing up in Query Monitor plugin as well:

    strip_tags(): Passing null to parameter #1 ($string) of type string is deprecated

    1. wp-content/plugins/index-wp-mysql-for-speed/afp/factory/_common/form/_view/sectionset/AdminPageFramework_Form_View___FieldTitle.php:33
    2. strip_tags()
      wp-content/plugins/index-wp-mysql-for-speed/afp/factory/_common/form/_view/sectionset/AdminPageFramework_Form_View___FieldTitle.php:33
    3. Imfs_AdminPageFramework_Form_View___FieldTitle->get()
      wp-content/plugins/index-wp-mysql-for-speed/afp/factory/_common/form/_view/sectionset/AdminPageFramework_Form_View___FieldsetRow.php:36
    4. Imfs_AdminPageFramework_Form_View___FieldsetTableRow->_getFieldByContainer()
      wp-content/plugins/index-wp-mysql-for-speed/afp/factory/_common/form/_view/sectionset/AdminPageFramework_Form_View___FieldsetRow.php:29
    5. Imfs_AdminPageFramework_Form_View___FieldsetTableRow->get()
      wp-content/plugins/index-wp-mysql-for-speed/afp/factory/_common/form/_view/sectionset/AdminPageFramework_Form_View___FieldsetRows.php:40
    6. Imfs_AdminPageFramework_Form_View___FieldsetRows->_getFieldsetRow()
      wp-content/plugins/index-wp-mysql-for-speed/afp/factory/_common/form/_view/sectionset/AdminPageFramework_Form_View___FieldsetRows.php:34
    7. Imfs_AdminPageFramework_Form_View___FieldsetRows->get()
      wp-content/plugins/index-wp-mysql-for-speed/afp/factory/_common/form/_view/sectionset/AdminPageFramework_Form_View___Section.php:44
    8. Imfs_AdminPageFramework_Form_View___Section->_getSectionContent()
      wp-content/plugins/index-wp-mysql-for-speed/afp/factory/_common/form/_view/sectionset/AdminPageFramework_Form_View___Section.php:35
    9. Imfs_AdminPageFramework_Form_View___Section->get()
      wp-content/plugins/index-wp-mysql-for-speed/afp/factory/_common/form/_view/sectionset/AdminPageFramework_Form_View___Sectionsets.php:113
    10. Imfs_AdminPageFramework_Form_View___Sectionsets->_getSectionTableWithTabList()
      wp-content/plugins/index-wp-mysql-for-speed/afp/factory/_common/form/_view/sectionset/AdminPageFramework_Form_View___Sectionsets.php:79
    11. Imfs_AdminPageFramework_Form_View___Sectionsets->_getSectionsetTable()
      wp-content/plugins/index-wp-mysql-for-speed/afp/factory/_common/form/_view/sectionset/AdminPageFramework_Form_View___Sectionsets.php:58
    12. Imfs_AdminPageFramework_Form_View___Sectionsets->_getSectionsetsTables()
      wp-content/plugins/index-wp-mysql-for-speed/afp/factory/_common/form/_view/sectionset/AdminPageFramework_Form_View___Sectionsets.php:41
    13. Imfs_AdminPageFramework_Form_View___Sectionsets->_getFormOutput()
      wp-content/plugins/index-wp-mysql-for-speed/afp/factory/_common/form/_view/sectionset/AdminPageFramework_Form_View___Sectionsets.php:27
    14. Imfs_AdminPageFramework_Form_View___Sectionsets->get()
      wp-content/plugins/index-wp-mysql-for-speed/afp/factory/_common/form/AdminPageFramework_Form.php:257
    15. Imfs_AdminPageFramework_Form_View->get()
      wp-content/plugins/index-wp-mysql-for-speed/afp/factory/admin_page/_view/AdminPageFramework_View__PageRenderer.php:79
    16. Imfs_AdminPageFramework_View__PageRenderer->_getFormOutput()
      wp-content/plugins/index-wp-mysql-for-speed/afp/factory/admin_page/_view/AdminPageFramework_View__PageRenderer.php:68
    17. Imfs_AdminPageFramework_View__PageRenderer->_printMainPageContent()
      wp-content/plugins/index-wp-mysql-for-speed/afp/factory/admin_page/_view/AdminPageFramework_View__PageRenderer.php:31
    18. Imfs_AdminPageFramework_View__PageRenderer->render()
      wp-content/plugins/index-wp-mysql-for-speed/afp/factory/admin_page/AdminPageFramework.php:466
    19. Imfs_AdminPageFramework_View_Page->_renderPage()
      wp-content/plugins/index-wp-mysql-for-speed/afp/factory/admin_page/AdminPageFramework.php:462
    20. Imfs_AdminPageFramework_View_Page->_replyToRenderPage()
      wp-includes/class-wp-hook.php:308
    21. do_action('tools_page_imfs_settings')
      wp-admin/admin.php:259

    explode(): Passing null to parameter #2 ($string) of type string is deprecated

    1. wp-content/plugins/index-wp-mysql-for-speed/afp/factory/_common/utility/base_utility/AdminPageFramework_Utility.php:570
    2. explode()
      wp-content/plugins/index-wp-mysql-for-speed/afp/factory/_common/utility/base_utility/AdminPageFramework_Utility.php:570
    3. Imfs_AdminPageFramework_Utility_HTMLAttribute::getStyleAttribute()
      wp-content/plugins/index-wp-mysql-for-speed/afp/factory/_common/form/field_type/AdminPageFramework_FieldType_color.php:123
    4. Imfs_AdminPageFramework_FieldType_Base->getLabelContainerAttributes()
      wp-content/plugins/index-wp-mysql-for-speed/afp/factory/_common/form/field_type/AdminPageFramework_FieldType_default.php:10
    5. Imfs_AdminPageFramework_FieldType_default->_replyToGetField()
      wp-content/plugins/index-wp-mysql-for-speed/afp/factory/_common/form/_view/fieldset/AdminPageFramework_Form_View___Fieldset.php:145
    6. Imfs_AdminPageFramework_Form_View___Fieldset->_getEachFieldOutput()
      wp-content/plugins/index-wp-mysql-for-speed/afp/factory/_common/form/_view/fieldset/AdminPageFramework_Form_View___Fieldset.php:134
    7. Imfs_AdminPageFramework_Form_View___Fieldset->_getFieldsOutput()
      wp-content/plugins/index-wp-mysql-for-speed/afp/factory/_common/form/_view/fieldset/AdminPageFramework_Form_View___Fieldset.php:128
    8. Imfs_AdminPageFramework_Form_View___Fieldset->get()
      wp-content/plugins/index-wp-mysql-for-speed/afp/factory/_common/form/_view/sectionset/AdminPageFramework_Form_View___CollapsibleSectionTitle.php:25
    9. Imfs_AdminPageFramework_Form_View___Section_Base->getFieldsetOutput()
      wp-content/plugins/index-wp-mysql-for-speed/afp/factory/_common/form/_view/sectionset/AdminPageFramework_Form_View___FieldsetRow.php:38
    10. Imfs_AdminPageFramework_Form_View___FieldsetTableRow->_getFieldByContainer()
      wp-content/plugins/index-wp-mysql-for-speed/afp/factory/_common/form/_view/sectionset/AdminPageFramework_Form_View___FieldsetRow.php:29
    11. Imfs_AdminPageFramework_Form_View___FieldsetTableRow->get()
      wp-content/plugins/index-wp-mysql-for-speed/afp/factory/_common/form/_view/sectionset/AdminPageFramework_Form_View___FieldsetRows.php:40
    12. Imfs_AdminPageFramework_Form_View___FieldsetRows->_getFieldsetRow()
      wp-content/plugins/index-wp-mysql-for-speed/afp/factory/_common/form/_view/sectionset/AdminPageFramework_Form_View___FieldsetRows.php:34
    13. Imfs_AdminPageFramework_Form_View___FieldsetRows->get()
      wp-content/plugins/index-wp-mysql-for-speed/afp/factory/_common/form/_view/sectionset/AdminPageFramework_Form_View___Section.php:44
    14. Imfs_AdminPageFramework_Form_View___Section->_getSectionContent()
      wp-content/plugins/index-wp-mysql-for-speed/afp/factory/_common/form/_view/sectionset/AdminPageFramework_Form_View___Section.php:35
    15. Imfs_AdminPageFramework_Form_View___Section->get()
      wp-content/plugins/index-wp-mysql-for-speed/afp/factory/_common/form/_view/sectionset/AdminPageFramework_Form_View___Sectionsets.php:113
    16. Imfs_AdminPageFramework_Form_View___Sectionsets->_getSectionTableWithTabList()
      wp-content/plugins/index-wp-mysql-for-speed/afp/factory/_common/form/_view/sectionset/AdminPageFramework_Form_View___Sectionsets.php:79
    17. Imfs_AdminPageFramework_Form_View___Sectionsets->_getSectionsetTable()
      wp-content/plugins/index-wp-mysql-for-speed/afp/factory/_common/form/_view/sectionset/AdminPageFramework_Form_View___Sectionsets.php:58
    18. Imfs_AdminPageFramework_Form_View___Sectionsets->_getSectionsetsTables()
      wp-content/plugins/index-wp-mysql-for-speed/afp/factory/_common/form/_view/sectionset/AdminPageFramework_Form_View___Sectionsets.php:41
    19. Imfs_AdminPageFramework_Form_View___Sectionsets->_getFormOutput()
      wp-content/plugins/index-wp-mysql-for-speed/afp/factory/_common/form/_view/sectionset/AdminPageFramework_Form_View___Sectionsets.php:27
    20. Imfs_AdminPageFramework_Form_View___Sectionsets->get()
      wp-content/plugins/index-wp-mysql-for-speed/afp/factory/_common/form/AdminPageFramework_Form.php:257
    21. Imfs_AdminPageFramework_Form_View->get()
      wp-content/plugins/index-wp-mysql-for-speed/afp/factory/admin_page/_view/AdminPageFramework_View__PageRenderer.php:79
    22. Imfs_AdminPageFramework_View__PageRenderer->_getFormOutput()
      wp-content/plugins/index-wp-mysql-for-speed/afp/factory/admin_page/_view/AdminPageFramework_View__PageRenderer.php:68
    23. Imfs_AdminPageFramework_View__PageRenderer->_printMainPageContent()
      wp-content/plugins/index-wp-mysql-for-speed/afp/factory/admin_page/_view/AdminPageFramework_View__PageRenderer.php:31
    24. Imfs_AdminPageFramework_View__PageRenderer->render()
      wp-content/plugins/index-wp-mysql-for-speed/afp/factory/admin_page/AdminPageFramework.php:466
    25. Imfs_AdminPageFramework_View_Page->_renderPage()
      wp-content/plugins/index-wp-mysql-for-speed/afp/factory/admin_page/AdminPageFramework.php:462
    26. Imfs_AdminPageFramework_View_Page->_replyToRenderPage()
      wp-includes/class-wp-hook.php:308
    27. do_action('tools_page_imfs_settings')
      wp-admin/admin.php:259
    Thread Starter diegpl

    (@diegpl)

    After tried again, I got some slow queries from this function:

    1. ImfsDb->get_results()
      wp-content/plugins/index-wp-mysql-for-speed/code/imsfdb.php:114
    2. ImfsDb->getTableCounts()
      wp-content/plugins/index-wp-mysql-for-speed/code/imsfdb.php:99
    3. ImfsDb->init()
      wp-content/plugins/index-wp-mysql-for-speed/code/imsfdb.php:52
    4. ImfsPage->populate()
      wp-content/plugins/index-wp-mysql-for-speed/code/admin.php:998
    5. ImfsPage->load_imfs_settings()
      wp-content/plugins/index-wp-mysql-for-speed/code/admin.php:977
    6. do_action('load_imfs_settings')
      wp-includes/plugin.php:517
    7. Imfs_AdminPageFramework_WPUtility_Hook::addAndDoAction()
      wp-content/plugins/index-wp-mysql-for-speed/afp/factory/_common/utility/wp_utility/AdminPageFramework_WPUtility.php:277
    8. Imfs_AdminPageFramework_WPUtility_Hook::addAndDoActions()
      wp-content/plugins/index-wp-mysql-for-speed/afp/factory/_common/utility/wp_utility/AdminPageFramework_WPUtility.php:261
    9. Imfs_AdminPageFramework_Factory_Router->_load()
      wp-content/plugins/index-wp-mysql-for-speed/afp/factory/_common/_abstract/AdminPageFramework_Factory.php:54
    10. Imfs_AdminPageFramework_Router->_doPageLoadCall()
      wp-content/plugins/index-wp-mysql-for-speed/afp/factory/admin_page/AdminPageFramework.php:68
    11. Imfs_AdminPageFramework_Router->__call()
      wp-content/plugins/index-wp-mysql-for-speed/afp/factory/admin_page/AdminPageFramework.php:49
    12. do_action('current_screen')
      wp-includes/plugin.php:517
    13. WP_Screen->set_current_screen()
      wp-admin/includes/class-wp-screen.php:424
    14. set_current_screen()
      wp-admin/includes/screen.php:243
    Thread Starter diegpl

    (@diegpl)

    Cool, tks man! 🙂
    But I tried to activate and check its page in /wp-admin/tools.php?page=imfs_settings and it just loaded forever. Should I try to activate it just through database and avoid checking its settings page?

    Thread Starter diegpl

    (@diegpl)

    I see, but if I set just one key for all websites it will not work then? For sure? Because this would speed things up a lot 🙂

    Thread Starter diegpl

    (@diegpl)

    Please, also fix this one: “Return type of MercadoPago\PP\Sdk\Common\AbstractCollection::getIterator() should either be compatible with IteratorAggregate::getIterator(): Traversable, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice” in wp-content/plugins/woocommerce-mercadopago/packages/sdk/src/Common/AbstractCollection.php:64 changing this:

    public function getIterator()
    {
    return new \ArrayIterator($this->collection);
    }

    for

    public function getIterator(): \Traversable
    {
    return new \ArrayIterator($this->collection);
    }
    Thread Starter diegpl

    (@diegpl)

    stripos(): Passing null to parameter #1 ($haystack) of type string is deprecated

    1. wp-content/plugins/google-site-kit/includes/Core/REST_API/REST_Routes.php:69
    2. stripos()
      wp-content/plugins/google-site-kit/includes/Core/REST_API/REST_Routes.php:69
    3. Google\S\C\R\REST_Routes->Google\S\C\R\{closure}()
      wp-includes/class-wp-hook.php:308
    4. apply_filters('query_vars')
      wp-includes/class-wp.php:299
    5. WP->parse_request()
      wp-includes/class-wp.php:780
    6. WP->main()
      wp-includes/functions.php:1334
    7. wp()
      wp-blog-header.php:16

    Please, change this code:

    $unset_vars = ( $wp->request && stripos( $wp->request, trailingslashit( rest_get_url_prefix() ) . self::REST_ROOT ) !== false ) // Check regular permalinks.
    							|| ( empty( $wp->request ) && stripos( $this->context->input()->filter( INPUT_GET, 'rest_route' ), self::REST_ROOT ) !== false ); // Check plain permalinks.

    For this one as well:

    $unset_vars = ( $wp->request && stripos( (string) $wp->request, trailingslashit( rest_get_url_prefix() ) . self::REST_ROOT ) !== false ) // Check regular permalinks.
        || ( empty( $wp->request ) && stripos( (string) $this->context->input()->filter( INPUT_GET, 'rest_route' ), self::REST_ROOT ) !== false ); // Check plain permalinks.

    Tks! 😉

    Thread Starter diegpl

    (@diegpl)

    We could improve that getting just the meta_key value as _woocommerce_persistent_cart_websiteid, right? 🙂

Viewing 15 replies - 1 through 15 (of 395 total)