Soporte » Plugins y Hacks » WooCommerce » Error fatal al activar Google Listings and Ads
Error fatal al activar Google Listings and Ads
-
Fatal error: Uncaught TypeError: Return value of Automattic\WooCommerce\GoogleListingsAndAds\ActionScheduler\ActionScheduler::schedule_recurring() must be of the type int, null returned in /homepages/wp-content/plugins/google-listings-and-ads/src/ActionScheduler/ActionScheduler.php:78 Stack trace: #0 /homepages/wp-content/plugins/google-listings-and-ads/src/Notes/NoteInitializer.php(103): Automattic\WooCommerce\GoogleListingsAndAds\ActionScheduler\ActionScheduler->schedule_recurring() #1 /homepages/wp-content/plugins/google-listings-and-ads/src/Notes/NoteInitializer.php(85): Automattic\WooCommerce\GoogleListingsAndAds\Notes\NoteInitializer->maybe_add_cron_job() #2 /homepages/wp-content/plugins/google-listings-and-ads/src/Infrastructure/GoogleListingsAndAdsPlugin.php(63): Automattic\WooCommerce\GoogleListingsAndAds\Notes\NoteI in /homepages/wp-content/plugins/google-listings-and-ads/src/ActionScheduler/ActionScheduler.php on line 78
-
¿Qué versión tienes instalada del plugin? Lo pregunto porque ayer salió una actualización.
La acabo de instalar hoy mismo.
Lo primero de todo sería comprobar que cumples con los requisitos:
- WordPress 5.9 o superior
- WooCommerce 6.9 o superior
- PHP version 7.4 or greater
- PHP Architecture 64 bits
- MySQL versión 5.6 o superior
wp-core version: 6.1.1
site_language: es_ES
user_language: es_ES
timezone: +02:00
permalink: /%postname%/
https_status: true
multisite: false
user_registration: 0
blog_public: 1
default_comment_status: closed
environment_type: production
user_count: 11
dotorg_communication: true wp-paths-sizes wordpress_path: /homepages/28/d321932450/htdocs/PRODUCCION/
wordpress_size: loading…
uploads_path: /homepages/28/d321932450/htdocs/PRODUCCION/wp-content/uploads
uploads_size: loading…
themes_path: /homepages/28/d321932450/htdocs/PRODUCCION/wp-content/themes
themes_size: loading…
plugins_path: /homepages/28/d321932450/htdocs/PRODUCCION/wp-content/plugins
plugins_size: loading…
database_size: loading…
total_size: loading… wp-active-theme name: Vantage (vantage)
version: 1.20.8 (latest version: 1.20.10)
author: SiteOrigin
author_website: https://siteorigin.com/
parent_theme: none
theme_features: core-block-patterns, post-thumbnails, automatic-feed-links, siteorigin-panels, menus, post-formats, woocommerce, wc-product-gallery-zoom, wc-product-gallery-lightbox, wc-product-gallery-slider, custom-logo, title-tag, align-wide, infinite-scroll, siteorigin-template-settings, siteorigin-premium-no-attribution, siteorigin-premium-ajax-comments, siteorigin-premium-logo-booster, widgets
theme_path: /homepages/28/d321932450/htdocs/PRODUCCION/wp-content/themes/vantage wp-themes-inactive (2) Twenty Twenty-Three: version: 1.1, author: el equipo de WordPress
Twenty Twenty-Two: version: 1.4, author: El equipo de WordPress wp-mu-plugins (1) 1&1 Product Subdomain: version: 1.1.0, author: 1&1 wp-plugins-active (25) amr shortcode any widget: version: 4.0, author: anmari
Antispam Bee: version: 2.11.3, author: pluginkollektiv
ArtiBot: version: 1.1.6, author: Pure Chat, Inc.
Broken Link Checker: version: 2.0.0, author: WPMU DEV
Contact Form 7: version: 5.7.6, author: Takayuki Miyoshi
Contact Form 7 - Dynamic Text Extension: version: 3.2, author: SevenSpark, AuRise Creative
Jetpack: version: 12.1, author: Automattic
Limit Login Attempts Reloaded: version: 2.25.16, author: Limit Login Attempts Reloaded
MailPoet: version: 4.14.0, author: MailPoet
MailPoet Premium: version: 4.14.0, author: MailPoet
Packlink PRO Shipping: version: 3.2.14, author: Packlink Shipping S.L.
Page Builder by SiteOrigin: version: 2.21.1, author: SiteOrigin
PHP Compatibility Checker: version: 1.6.1, author: WP Engine
Redirection: version: 5.3.10, author: John Godley
SiteOrigin CSS: version: 1.5.6, author: SiteOrigin
SiteOrigin Widgets Bundle: version: 1.49.1, author: SiteOrigin (latest version: 1.49.2)
Smart Slider 3: version: 3.5.1.14, author: Nextend
Timeline Express: version: 1.8.1, author: Code Parrots
User Verification: version: 2.0.11, author: PickPlugins
WooCommerce: version: 7.6.1, author: Automattic
WooCommerce Redsys Gateway Light: version: 5.1.0, author: José Conti
WP Crontrol: version: 1.15.2, author: John Blackbourn & crontributors
WP Menu Cart: version: 2.14.0, author: WP Overnight
WPS Hide Login: version: 1.9.8, author: WPServeur, NicolasKulka, wpformation
Yoast SEO: version: 20.6, author: Team Yoast wp-plugins-inactive (2) Advanced Database Cleaner: version: 3.1.2, author: Younes JFR.
Google Listings and Ads: version: 2.4.4, author: WooCommerce wp-media image_editor: WP_Image_Editor_GD
imagick_module_version: No disponible
imagemagick_version: No disponible
imagick_version: No disponible
file_uploads: File uploads is turned off
post_max_size: 67108864
upload_max_filesize: 67108864
max_effective_size: 64 MB
max_file_uploads: 20
gd_version: 2.2.5
gd_formats: GIF, JPEG, PNG, WebP, BMP, XPM
ghostscript_version: 9.27 wp-server server_architecture: Linux 4.4.302-icpu-092 x86_64
httpd_software: Apache
php_version: 7.4.33 64bit
php_sapi: cgi-fcgi
max_input_variables: 1000
time_limit: 30
memory_limit: 268435456
max_input_time: -1
upload_max_filesize: 67108864
php_post_max_size: 67108864
curl_version: 7.64.0 OpenSSL/1.1.1n
suhosin: false
imagick_availability: false
pretty_permalinks: true
htaccess_extra_rules: false wp-database extension: mysqli
server_version: 5.7.41-log
client_version: mysqlnd 7.4.33
max_allowed_packet: 67108864
max_connections: 3000 wp-constants WP_HOME: undefined
WP_SITEURL: undefined
WP_CONTENT_DIR: /homepages/28/d321932450/htdocs/PRODUCCION/wp-content
WP_PLUGIN_DIR: /homepages/28/d321932450/htdocs/PRODUCCION/wp-content/plugins
WP_MEMORY_LIMIT: 40M
WP_MAX_MEMORY_LIMIT: 256M
WP_DEBUG: false
WP_DEBUG_DISPLAY: false
WP_DEBUG_LOG: false
SCRIPT_DEBUG: false
WP_CACHE: false
CONCATENATE_SCRIPTS: undefined
COMPRESS_SCRIPTS: undefined
COMPRESS_CSS: undefined
WP_ENVIRONMENT_TYPE: Sin definir
DB_CHARSET: utf8
DB_COLLATE: undefined wp-filesystem wordpress: writable
wp-content: writable
uploads: writable
plugins: writable
themes: writable
mu-plugins: writable jetpack site_id: 161797071
ssl_cert: No
time_diff: undefined
version_option: 12.1:1683132771
old_version: 12.0:1683132289
public: Public
master_user: #1
current_user: #1
tokens_set:
blog_token:
user_token:
version: 12.1
jp_plugin_dir: /homepages/28/d321932450/htdocs/PRODUCCION/wp-content/plugins/jetpack/
plan: free
protect_header: {"trusted_header":"REMOTE_ADDR","segments":1,"reverse":false}
full_sync: {"started":"Thu, 01 Jan 1970 00:00:00 +0000","finished":"Thu, 01 Jan 1970 00:00:00 +0000","progress":[],"config":[]}
sync_size: undefined
sync_lag: 0 seconds
full_sync_size: undefined
full_sync_lag: 0 seconds
idc_urls: {"home":"https:\/\/www.xxx.com","siteurl":"https:\/\/www.xxx.com","WP_HOME":"","WP_SITEURL":""}
idc_error_option: false
idc_optin: true
cxn_tests: {"9":{"name":"test__wpcom_connection_test","label":false,"short_description":"xxx is not connected.: 200","long_description":" Una conexi\u00f3n saludable garantiza que se proporcionen los servicios esenciales de Jetpack a tu sitio WordPress, como las estad\u00edsticas y la seguridad del sitio.<\/p> Error<\/span><\/span> xxx is not connected.: 200<\/p> Recomendamos volver a conectar con Jetpack.<\/strong><\/p>","severity":"critical","action":"https:\/\/www.xxx.com\/wp-admin\/admin.php?page=jetpack#\/reconnect","action_label":"Volver a conectar Jetpack ahora","show_in_site_health":true,"pass":false,"group":["default"],"type":"direct"}}El siguiente paso sería desactivar TODOS los plugins y entonces volver a activar Google Listings and Ads
La idea es comprobar si hay alguna incompatibilidad con algún otro plugin.
Desactivando plugins me ha petado woocommerce:
Se ha producido un error del tipo E_ERROR en la línea 44 del archivo /homepages/28/d321932450/htdocs/PRODUCCION/wp-content/plugins/woocommerce/packages/action-scheduler/classes/migration/ActionScheduler_DBStoreMigrator.php. Mensaje de error: Uncaught RuntimeException: Error al guardar la acción: Error al guardar la acción: Error de la base de datos. in /homepages/28/d321932450/htdocs/PRODUCCION/wp-content/plugins/woocommerce/packages/action-scheduler/classes/migration/ActionScheduler_DBStoreMigrator.php:44
Stack trace:0 /homepages/28/d321932450/htdocs/PRODUCCION/wp-content/plugins/woocommerce/packages/action-scheduler/classes/data-stores/ActionScheduler_HybridStore.php(242): ActionScheduler_DBStoreMigrator->save_action()
1 /homepages/28/d321932450/htdocs/PRODUCCION/wp-content/plugins/woocommerce/packages/action-scheduler/classes/ActionScheduler_ActionFactory.php(244): ActionScheduler_HybridStore->save_action()
2 /homepages/28/d321932450/htdocs/PRODUCCION/wp-content/plugins/woocommerce/packages/action-scheduler/classes/ActionScheduler_ActionFactory.php(114): ActionScheduler_ActionFactory->store()
¿Y dejando solo activos Google Listings & Ads y woocommerce?
Al activar Google Listings & Ads me repite el error:
Fatal error: Uncaught TypeError: Return value of Automattic\WooCommerce\GoogleListingsAndAds\ActionScheduler\ActionScheduler::schedule_recurring() must be of the type int, null returned in /homepages/28/d321932450/htdocs/PRODUCCION/wp-content/plugins/google-listings-and-ads/src/ActionScheduler/ActionScheduler.php:78 Stack trace: #0 /homepages/28/d321932450/htdocs/PRODUCCION/wp-content/plugins/google-listings-and-ads/src/Notes/NoteInitializer.php(103): Automattic\WooCommerce\GoogleListingsAndAds\ActionScheduler\ActionScheduler->schedule_recurring() #1 /homepages/28/d321932450/htdocs/PRODUCCION/wp-content/plugins/google-listings-and-ads/src/Notes/NoteInitializer.php(85): Automattic\WooCommerce\GoogleListingsAndAds\Notes\NoteInitializer->maybe_add_cron_job() #2 /homepages/28/d321932450/htdocs/PRODUCCION/wp-content/plugins/google-listings-and-ads/src/Infrastructure/GoogleListingsAndAdsPlugin.php(63): Automattic\WooCommerce\GoogleListingsAndAds\Notes\NoteI in /homepages/28/d321932450/htdocs/PRODUCCION/wp-content/plugins/google-listings-and-ads/src/ActionScheduler/ActionScheduler.php on line 78
Los únicos que podrían ayudarte son los desarrolladores del plugin. Es mejor que acudas a su soporte:
https://wordpress.org/support/plugin/google-listings-and-ads/
Pon aquí el enlace al hilo que abras con ellos y así seguir la pista al problema.
- Debes estar registrado para responder a este debate.