diegpl
Forum Replies Created
-
Currently define( ‘WP_REDIS_SERIALIZER’, Redis::SERIALIZER_IGBINARY ); is in my wp-config.php and object-cache.php is:
if ( defined( 'WP_REDIS_IGBINARY' ) && WP_REDIS_IGBINARY ) {
// Use Redis::SERIALIZER_IGBINARY if constant exists
//error_log('loading SERIALIZER_IGBINARY 0');
if ( defined('Redis::SERIALIZER_IGBINARY') ) {
//error_log('loading SERIALIZER_IGBINARY 1');
$this->redis->setOption(Redis::OPT_SERIALIZER, Redis::SERIALIZER_IGBINARY);
}
trigger_error('TheWP_REDIS_SERIALIZERconfiguration constant has been deprecated in favor ofWP_REDIS_IGBINARY', E_USER_DEPRECATED);
} elseif ( defined( 'WP_REDIS_SERIALIZER' ) ) {
//error_log('loading WP_REDIS_SERIALIZER');
$this->redis->setOption(Redis::OPT_SERIALIZER, WP_REDIS_SERIALIZER);
}But, as u see, the new way is not being used. Thank you! 😉
Forum: Plugins
In reply to: [Pagar.me para WooCommerce] Problema de performance no DBOutra questão que vejo é que este código está carregando tabelas desnecessariamente em todas as páginas do admin, também pesando a performance em lojas mais robustas:
Woocommerce\P\C\WoocommerceDatabaseDecorator->doFetch()
wp-content/plugins/pagarme-payments-for-woocommerce/src/Concrete/WoocommerceDatabaseDecorator.php:85Pagarme\C\K\A\AbstractDatabaseDecorator->fetch()
wp-content/plugins/pagarme-payments-for-woocommerce/vendor/pagarme/ecommerce-module-core/src/Kernel/Abstractions/AbstractDatabaseDecorator.php:39Pagarme\C\K\R\ConfigurationRepository->findByStore()
wp-content/plugins/pagarme-payments-for-woocommerce/vendor/pagarme/ecommerce-module-core/src/Kernel/Repositories/ConfigurationRepository.php:107Pagarme\C\K\A\AbstractModuleCoreSetup::loadSavedConfiguration()
wp-content/plugins/pagarme-payments-for-woocommerce/vendor/pagarme/ecommerce-module-core/src/Kernel/Abstractions/AbstractModuleCoreSetup.php:129Pagarme\C\K\A\AbstractModuleCoreSetup::updateModuleConfiguration()
wp-content/plugins/pagarme-payments-for-woocommerce/vendor/pagarme/ecommerce-module-core/src/Kernel/Abstractions/AbstractModuleCoreSetup.php:90Pagarme\C\K\A\AbstractModuleCoreSetup::bootstrap()
wp-content/plugins/pagarme-payments-for-woocommerce/vendor/pagarme/ecommerce-module-core/src/Kernel/Abstractions/AbstractModuleCoreSetup.php:75Woocommerce\P\C\Charges->__construct()
wp-content/plugins/pagarme-payments-for-woocommerce/src/Controller/Charges.php:27Woocommerce\Pagarme\Core::load_controllers()
wp-content/plugins/pagarme-payments-for-woocommerce/src/Core.php:77Woocommerce\Pagarme\Core::initialize()
wp-content/plugins/pagarme-payments-for-woocommerce/src/Core.php:70Woocommerce\Pagarme\Core->__construct()
wp-content/plugins/pagarme-payments-for-woocommerce/src/Core.php:24Woocommerce\Pagarme\Core::instance()
wp-content/plugins/pagarme-payments-for-woocommerce/src/Core.php:221wcmpLoadInstances()
wp-content/plugins/pagarme-payments-for-woocommerce/woo-pagarme-payments.php:297wcmpPluginsLoadedCheck()
wp-content/plugins/pagarme-payments-for-woocommerce/woo-pagarme-payments.php:320do_action('plugins_loaded')
wp-includes/plugin.php:517
Forum: Plugins
In reply to: [Pagar.me para WooCommerce] Problema de performance no DBTalvez isso funcione para o $billingFields:
static $cachedFields = null;if (is_null($cachedFields)) {$cachedFields = WC()->countries->get_address_fields(WC()->countries->get_base_country());}$billingFields = $cachedFields;O outro código, acho que é coisa já antiga que talvez já possa até ser removido, mas com certeza otimizado, está pesando muito o carregamento. Obrigado! 😉
- This reply was modified 1 year, 5 months ago by diegpl.
Forum: Plugins
In reply to: [Asaas Gateway for WooCommerce] Undefined array key “billing_cellphone”Eu acho que também tem um erro nessa parte:
[06-Sep-2024 13:00:26 UTC] PHP Warning: Undefined array key “asaas_cc_installments” in /wp-content/plugins/woo-asaas/includes/installments/gateway/class-payment-installments.php on line 73Yes, 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…
Forum: Plugins
In reply to: [Pagar.me para WooCommerce] Problema de performance no Migrator.phpEssa 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.
SELECT FOUND_ROWS()WP_User_Query->query()
wp-includes/class-wp-user-query.php:859WP_User_Query->__construct()
wp-includes/class-wp-user-query.php:80Google\S\C\A\Has_Multiple_Admins->get()
wp-content/plugins/google-site-kit/includes/Core/Authentication/Has_Multiple_Admins.php:65Google\S\C\A\Authentication->Google\S\C\A\{closure}()
wp-content/plugins/google-site-kit/includes/Core/Authentication/Authentication.php:1065WP_REST_Server->respond_to_request()
wp-includes/rest-api/class-wp-rest-server.php:1188WP_REST_Server->dispatch()
wp-includes/rest-api/class-wp-rest-server.php:1035rest_do_request()
wp-includes/rest-api.php:545rest_preload_api_request()
wp-includes/rest-api.php:2911array_reduce()
wp-includes/rest-api.php:2911Google\S\C\A\Assets->Google\S\C\A\{closure}()
wp-content/plugins/google-site-kit/includes/Core/Assets/Assets.php:396Google\S\C\A\Script_Data->Google\S\C\A\{closure}()
wp-content/plugins/google-site-kit/includes/Core/Assets/Script_Data.php:51Google\S\C\A\Asset->before_print()
wp-content/plugins/google-site-kit/includes/Core/Assets/Asset.php:129Google\S\C\A\Assets->run_before_print_callbacks()
wp-content/plugins/google-site-kit/includes/Core/Assets/Assets.php:1016Google\S\C\A\Assets->run_before_print_callbacks()
wp-content/plugins/google-site-kit/includes/Core/Assets/Assets.php:1025Google\S\C\A\Assets->run_before_print_callbacks()
wp-content/plugins/google-site-kit/includes/Core/Assets/Assets.php:1025Google\S\C\A\Assets->run_before_print_callbacks()
wp-content/plugins/google-site-kit/includes/Core/Assets/Assets.php:1025Google\S\C\A\Assets->Google\S\C\A\{closure}()
wp-content/plugins/google-site-kit/includes/Core/Assets/Assets.php:155do_action('wp_print_scripts')
wp-includes/plugin.php:517wp_print_head_scripts()
wp-includes/script-loader.php:2177do_action('wp_head')
wp-includes/plugin.php:517wp_head()
wp-includes/general-template.php:3053load_template('wp-content/themes/esites/header.php')
wp-includes/template.php:785locate_template()
wp-includes/template.php:720get_header('shop')
wp-includes/general-template.php:48
That is another one.
Esse é um print da tela, que mostra a função nativa funcionando corretamente 🙂
https://ibb.co/r20GZWVForum: Plugins
In reply to: [Melhor Envio] Erro de php acerca do Optional parameter $packageSe 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.
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’ ) );
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 🙂
Forum: Plugins
In reply to: [Index WP MySQL For Speed] Does this plugin work with wp multisite?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
- wp-content/plugins/index-wp-mysql-for-speed/afp/factory/_common/form/_view/sectionset/AdminPageFramework_Form_View___FieldTitle.php:33
strip_tags()
wp-content/plugins/index-wp-mysql-for-speed/afp/factory/_common/form/_view/sectionset/AdminPageFramework_Form_View___FieldTitle.php:33Imfs_AdminPageFramework_Form_View___FieldTitle->get()
wp-content/plugins/index-wp-mysql-for-speed/afp/factory/_common/form/_view/sectionset/AdminPageFramework_Form_View___FieldsetRow.php:36Imfs_AdminPageFramework_Form_View___FieldsetTableRow->_getFieldByContainer()
wp-content/plugins/index-wp-mysql-for-speed/afp/factory/_common/form/_view/sectionset/AdminPageFramework_Form_View___FieldsetRow.php:29Imfs_AdminPageFramework_Form_View___FieldsetTableRow->get()
wp-content/plugins/index-wp-mysql-for-speed/afp/factory/_common/form/_view/sectionset/AdminPageFramework_Form_View___FieldsetRows.php:40Imfs_AdminPageFramework_Form_View___FieldsetRows->_getFieldsetRow()
wp-content/plugins/index-wp-mysql-for-speed/afp/factory/_common/form/_view/sectionset/AdminPageFramework_Form_View___FieldsetRows.php:34Imfs_AdminPageFramework_Form_View___FieldsetRows->get()
wp-content/plugins/index-wp-mysql-for-speed/afp/factory/_common/form/_view/sectionset/AdminPageFramework_Form_View___Section.php:44Imfs_AdminPageFramework_Form_View___Section->_getSectionContent()
wp-content/plugins/index-wp-mysql-for-speed/afp/factory/_common/form/_view/sectionset/AdminPageFramework_Form_View___Section.php:35Imfs_AdminPageFramework_Form_View___Section->get()
wp-content/plugins/index-wp-mysql-for-speed/afp/factory/_common/form/_view/sectionset/AdminPageFramework_Form_View___Sectionsets.php:113Imfs_AdminPageFramework_Form_View___Sectionsets->_getSectionTableWithTabList()
wp-content/plugins/index-wp-mysql-for-speed/afp/factory/_common/form/_view/sectionset/AdminPageFramework_Form_View___Sectionsets.php:79Imfs_AdminPageFramework_Form_View___Sectionsets->_getSectionsetTable()
wp-content/plugins/index-wp-mysql-for-speed/afp/factory/_common/form/_view/sectionset/AdminPageFramework_Form_View___Sectionsets.php:58Imfs_AdminPageFramework_Form_View___Sectionsets->_getSectionsetsTables()
wp-content/plugins/index-wp-mysql-for-speed/afp/factory/_common/form/_view/sectionset/AdminPageFramework_Form_View___Sectionsets.php:41Imfs_AdminPageFramework_Form_View___Sectionsets->_getFormOutput()
wp-content/plugins/index-wp-mysql-for-speed/afp/factory/_common/form/_view/sectionset/AdminPageFramework_Form_View___Sectionsets.php:27Imfs_AdminPageFramework_Form_View___Sectionsets->get()
wp-content/plugins/index-wp-mysql-for-speed/afp/factory/_common/form/AdminPageFramework_Form.php:257Imfs_AdminPageFramework_Form_View->get()
wp-content/plugins/index-wp-mysql-for-speed/afp/factory/admin_page/_view/AdminPageFramework_View__PageRenderer.php:79Imfs_AdminPageFramework_View__PageRenderer->_getFormOutput()
wp-content/plugins/index-wp-mysql-for-speed/afp/factory/admin_page/_view/AdminPageFramework_View__PageRenderer.php:68Imfs_AdminPageFramework_View__PageRenderer->_printMainPageContent()
wp-content/plugins/index-wp-mysql-for-speed/afp/factory/admin_page/_view/AdminPageFramework_View__PageRenderer.php:31Imfs_AdminPageFramework_View__PageRenderer->render()
wp-content/plugins/index-wp-mysql-for-speed/afp/factory/admin_page/AdminPageFramework.php:466Imfs_AdminPageFramework_View_Page->_renderPage()
wp-content/plugins/index-wp-mysql-for-speed/afp/factory/admin_page/AdminPageFramework.php:462Imfs_AdminPageFramework_View_Page->_replyToRenderPage()
wp-includes/class-wp-hook.php:308do_action('tools_page_imfs_settings')
wp-admin/admin.php:259
explode(): Passing null to parameter #2 ($string) of type string is deprecated
- wp-content/plugins/index-wp-mysql-for-speed/afp/factory/_common/utility/base_utility/AdminPageFramework_Utility.php:570
explode()
wp-content/plugins/index-wp-mysql-for-speed/afp/factory/_common/utility/base_utility/AdminPageFramework_Utility.php:570Imfs_AdminPageFramework_Utility_HTMLAttribute::getStyleAttribute()
wp-content/plugins/index-wp-mysql-for-speed/afp/factory/_common/form/field_type/AdminPageFramework_FieldType_color.php:123Imfs_AdminPageFramework_FieldType_Base->getLabelContainerAttributes()
wp-content/plugins/index-wp-mysql-for-speed/afp/factory/_common/form/field_type/AdminPageFramework_FieldType_default.php:10Imfs_AdminPageFramework_FieldType_default->_replyToGetField()
wp-content/plugins/index-wp-mysql-for-speed/afp/factory/_common/form/_view/fieldset/AdminPageFramework_Form_View___Fieldset.php:145Imfs_AdminPageFramework_Form_View___Fieldset->_getEachFieldOutput()
wp-content/plugins/index-wp-mysql-for-speed/afp/factory/_common/form/_view/fieldset/AdminPageFramework_Form_View___Fieldset.php:134Imfs_AdminPageFramework_Form_View___Fieldset->_getFieldsOutput()
wp-content/plugins/index-wp-mysql-for-speed/afp/factory/_common/form/_view/fieldset/AdminPageFramework_Form_View___Fieldset.php:128Imfs_AdminPageFramework_Form_View___Fieldset->get()
wp-content/plugins/index-wp-mysql-for-speed/afp/factory/_common/form/_view/sectionset/AdminPageFramework_Form_View___CollapsibleSectionTitle.php:25Imfs_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:38Imfs_AdminPageFramework_Form_View___FieldsetTableRow->_getFieldByContainer()
wp-content/plugins/index-wp-mysql-for-speed/afp/factory/_common/form/_view/sectionset/AdminPageFramework_Form_View___FieldsetRow.php:29Imfs_AdminPageFramework_Form_View___FieldsetTableRow->get()
wp-content/plugins/index-wp-mysql-for-speed/afp/factory/_common/form/_view/sectionset/AdminPageFramework_Form_View___FieldsetRows.php:40Imfs_AdminPageFramework_Form_View___FieldsetRows->_getFieldsetRow()
wp-content/plugins/index-wp-mysql-for-speed/afp/factory/_common/form/_view/sectionset/AdminPageFramework_Form_View___FieldsetRows.php:34Imfs_AdminPageFramework_Form_View___FieldsetRows->get()
wp-content/plugins/index-wp-mysql-for-speed/afp/factory/_common/form/_view/sectionset/AdminPageFramework_Form_View___Section.php:44Imfs_AdminPageFramework_Form_View___Section->_getSectionContent()
wp-content/plugins/index-wp-mysql-for-speed/afp/factory/_common/form/_view/sectionset/AdminPageFramework_Form_View___Section.php:35Imfs_AdminPageFramework_Form_View___Section->get()
wp-content/plugins/index-wp-mysql-for-speed/afp/factory/_common/form/_view/sectionset/AdminPageFramework_Form_View___Sectionsets.php:113Imfs_AdminPageFramework_Form_View___Sectionsets->_getSectionTableWithTabList()
wp-content/plugins/index-wp-mysql-for-speed/afp/factory/_common/form/_view/sectionset/AdminPageFramework_Form_View___Sectionsets.php:79Imfs_AdminPageFramework_Form_View___Sectionsets->_getSectionsetTable()
wp-content/plugins/index-wp-mysql-for-speed/afp/factory/_common/form/_view/sectionset/AdminPageFramework_Form_View___Sectionsets.php:58Imfs_AdminPageFramework_Form_View___Sectionsets->_getSectionsetsTables()
wp-content/plugins/index-wp-mysql-for-speed/afp/factory/_common/form/_view/sectionset/AdminPageFramework_Form_View___Sectionsets.php:41Imfs_AdminPageFramework_Form_View___Sectionsets->_getFormOutput()
wp-content/plugins/index-wp-mysql-for-speed/afp/factory/_common/form/_view/sectionset/AdminPageFramework_Form_View___Sectionsets.php:27Imfs_AdminPageFramework_Form_View___Sectionsets->get()
wp-content/plugins/index-wp-mysql-for-speed/afp/factory/_common/form/AdminPageFramework_Form.php:257Imfs_AdminPageFramework_Form_View->get()
wp-content/plugins/index-wp-mysql-for-speed/afp/factory/admin_page/_view/AdminPageFramework_View__PageRenderer.php:79Imfs_AdminPageFramework_View__PageRenderer->_getFormOutput()
wp-content/plugins/index-wp-mysql-for-speed/afp/factory/admin_page/_view/AdminPageFramework_View__PageRenderer.php:68Imfs_AdminPageFramework_View__PageRenderer->_printMainPageContent()
wp-content/plugins/index-wp-mysql-for-speed/afp/factory/admin_page/_view/AdminPageFramework_View__PageRenderer.php:31Imfs_AdminPageFramework_View__PageRenderer->render()
wp-content/plugins/index-wp-mysql-for-speed/afp/factory/admin_page/AdminPageFramework.php:466Imfs_AdminPageFramework_View_Page->_renderPage()
wp-content/plugins/index-wp-mysql-for-speed/afp/factory/admin_page/AdminPageFramework.php:462Imfs_AdminPageFramework_View_Page->_replyToRenderPage()
wp-includes/class-wp-hook.php:308do_action('tools_page_imfs_settings')
wp-admin/admin.php:259
Forum: Plugins
In reply to: [Index WP MySQL For Speed] Does this plugin work with wp multisite?After tried again, I got some slow queries from this function:
ImfsDb->get_results()
wp-content/plugins/index-wp-mysql-for-speed/code/imsfdb.php:114ImfsDb->getTableCounts()
wp-content/plugins/index-wp-mysql-for-speed/code/imsfdb.php:99ImfsDb->init()
wp-content/plugins/index-wp-mysql-for-speed/code/imsfdb.php:52ImfsPage->populate()
wp-content/plugins/index-wp-mysql-for-speed/code/admin.php:998ImfsPage->load_imfs_settings()
wp-content/plugins/index-wp-mysql-for-speed/code/admin.php:977do_action('load_imfs_settings')
wp-includes/plugin.php:517Imfs_AdminPageFramework_WPUtility_Hook::addAndDoAction()
wp-content/plugins/index-wp-mysql-for-speed/afp/factory/_common/utility/wp_utility/AdminPageFramework_WPUtility.php:277Imfs_AdminPageFramework_WPUtility_Hook::addAndDoActions()
wp-content/plugins/index-wp-mysql-for-speed/afp/factory/_common/utility/wp_utility/AdminPageFramework_WPUtility.php:261Imfs_AdminPageFramework_Factory_Router->_load()
wp-content/plugins/index-wp-mysql-for-speed/afp/factory/_common/_abstract/AdminPageFramework_Factory.php:54Imfs_AdminPageFramework_Router->_doPageLoadCall()
wp-content/plugins/index-wp-mysql-for-speed/afp/factory/admin_page/AdminPageFramework.php:68Imfs_AdminPageFramework_Router->__call()
wp-content/plugins/index-wp-mysql-for-speed/afp/factory/admin_page/AdminPageFramework.php:49do_action('current_screen')
wp-includes/plugin.php:517WP_Screen->set_current_screen()
wp-admin/includes/class-wp-screen.php:424set_current_screen()
wp-admin/includes/screen.php:243
Forum: Plugins
In reply to: [Index WP MySQL For Speed] Does this plugin work with wp multisite?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?