• Resolved Elisa

    (@cursojuanlinares)


    REST API created in WooCommerce does not work in Notazz ?https://app.notazz.com/?? invoice generation program.
    I added the information they sent me from woo to solve the .htaccess problem and it still doesn’t work.

    info de woo:

    ?# BEGIN Line too long fix
    <IfModule mod_substitute.c>
    SubstituteMaxLineLength 10M
    </IfModule>
    # END Line too long fix

    my web is on Godaddy and it’s wordpress
    https://www.juanlinares.com/

    I don’t have any security add-on or firewall enabled on the host.

    It was working until October 18th when the gear stopped working.


    To help, I compiled information from WooCommerce > Status:

    Entorno WordPress

    Dirección de WordPress (URL):https://www.juanlinares.com
    Dirección del sitio (URL):https://www.juanlinares.com
    Versión de WooCommerce:8.3.1
    Paquete de la REST API de WooCommerce: 8.3.1 /var/www/wp-content/plugins/woocommerce/includes
    Paquete WooCommerce Blocks: 11.4.9 /var/www/wp-content/plugins/woocommerce/packages/woocommerce-blocks/
    Paquete del programador de acciones: 3.6.4 /var/www/wp-content/plugins/woocommerce/packages/action-scheduler
    Directorio de registros con permiso de escritura: /var/www/wp-content/uploads/wc-logs/
    Versión de WordPress: 6.3.2 – Hay una versión nueva de WordPress disponible (6.4.1)
    WordPress multisitio:–
    Límite de memoria de WordPress:256 MB
    Modo de depuración de WordPress:–
    Cron de WordPress:
    Idioma:es_ES
    Caché de objeto externo:–

    Entorno del servidor

    Información del servidor:Apache
    Versión de PHP:8.0.30
    PHP post max size:100 MB
    PHP time limit:300
    PHP max input vars:1000
    Versión cURL:8.4.0, OpenSSL/1.1.1w
    SUHOSIN Instalado:–
    Versión de MySQL:8.0.33-25
    Tama?o máximo de subida:100 MB
    Por defecto la zona horaria es GMT:
    fsockopen/cURL:
    SoapClient:
    DOMDocument:
    GZip:
    Cadena multibyte:
    Publicación remota:
    Obtención remota:

    Base de datos

    Versión de la base de datos de WordPress:8.3.1
    Prefijo de la base de datos wp_19par0ajsr_
    Tama?o total de la base de datos 27.01MB
    Tama?o de los datos de la base de datos 23.48MB
    Tama?o del índice de la base de datos 3.53MB
    wp_19par0ajsr_woocommerce_sessions Datos: 1.02MB + índice: 0.02MB + Motor InnoDB
    wp_19par0ajsr_woocommerce_api_keys Datos: 0.02MB + índice: 0.03MB + Motor InnoDB
    wp_19par0ajsr_woocommerce_attribute_taxonomies Datos: 0.02MB + índice: 0.02MB + Motor InnoDB
    wp_19par0ajsr_woocommerce_downloadable_product_permissions Datos: 0.02MB + índice: 0.06MB + Motor InnoDB
    wp_19par0ajsr_woocommerce_order_items Datos: 0.02MB + índice: 0.02MB + Motor InnoDB
    wp_19par0ajsr_woocommerce_order_itemmeta Datos: 0.11MB + índice: 0.14MB + Motor InnoDB
    wp_19par0ajsr_woocommerce_tax_rates Datos: 0.02MB + índice: 0.06MB + Motor InnoDB
    wp_19par0ajsr_woocommerce_tax_rate_locations Datos: 0.02MB + índice: 0.03MB + Motor InnoDB
    wp_19par0ajsr_woocommerce_shipping_zones Datos: 0.02MB + índice: 0.00MB + Motor InnoDB
    wp_19par0ajsr_woocommerce_shipping_zone_locations Datos: 0.02MB + índice: 0.03MB + Motor InnoDB
    wp_19par0ajsr_woocommerce_shipping_zone_methods Datos: 0.02MB + índice: 0.00MB + Motor InnoDB
    wp_19par0ajsr_woocommerce_payment_tokens Datos: 0.02MB + índice: 0.02MB + Motor InnoDB
    wp_19par0ajsr_woocommerce_payment_tokenmeta Datos: 0.02MB + índice: 0.03MB + Motor InnoDB
    wp_19par0ajsr_woocommerce_log Datos: 0.02MB + índice: 0.02MB + Motor InnoDB
    wp_19par0ajsr_actionscheduler_actions Datos: 0.17MB + índice: 0.16MB + Motor InnoDB
    wp_19par0ajsr_actionscheduler_claims Datos: 0.02MB + índice: 0.02MB + Motor InnoDB
    wp_19par0ajsr_actionscheduler_groups Datos: 0.02MB + índice: 0.02MB + Motor InnoDB
    wp_19par0ajsr_actionscheduler_logs Datos: 0.31MB + índice: 0.25MB + Motor InnoDB
    wp_19par0ajsr_cartflows_ca_cart_abandonment Datos: 0.19MB + índice: 0.02MB + Motor InnoDB
    wp_19par0ajsr_cartflows_ca_email_history Datos: 0.02MB + índice: 0.03MB + Motor InnoDB
    wp_19par0ajsr_cartflows_ca_email_templates Datos: 0.02MB + índice: 0.00MB + Motor InnoDB
    wp_19par0ajsr_cartflows_ca_email_templates_meta Datos: 0.02MB + índice: 0.02MB + Motor InnoDB
    wp_19par0ajsr_commentmeta Datos: 0.02MB + índice: 0.03MB + Motor InnoDB
    wp_19par0ajsr_comments Datos: 0.08MB + índice: 0.09MB + Motor InnoDB
    wp_19par0ajsr_e_events Datos: 0.02MB + índice: 0.02MB + Motor InnoDB
    wp_19par0ajsr_gf_draft_submissions Datos: 0.02MB + índice: 0.02MB + Motor InnoDB
    wp_19par0ajsr_gf_entry Datos: 0.02MB + índice: 0.03MB + Motor InnoDB
    wp_19par0ajsr_gf_entry_meta Datos: 0.02MB + índice: 0.05MB + Motor InnoDB
    wp_19par0ajsr_gf_entry_notes Datos: 0.02MB + índice: 0.03MB + Motor InnoDB
    wp_19par0ajsr_gf_form Datos: 0.02MB + índice: 0.00MB + Motor InnoDB
    wp_19par0ajsr_gf_form_meta Datos: 0.02MB + índice: 0.00MB + Motor InnoDB
    wp_19par0ajsr_gf_form_revisions Datos: 0.02MB + índice: 0.03MB + Motor InnoDB
    wp_19par0ajsr_gf_form_view Datos: 0.02MB + índice: 0.03MB + Motor InnoDB
    wp_19par0ajsr_gf_rest_api_keys Datos: 0.02MB + índice: 0.03MB + Motor InnoDB
    wp_19par0ajsr_gla_attribute_mapping_rules Datos: 0.02MB + índice: 0.00MB + Motor InnoDB
    wp_19par0ajsr_gla_budget_recommendations Datos: 0.22MB + índice: 0.14MB + Motor InnoDB
    wp_19par0ajsr_gla_merchant_issues Datos: 0.02MB + índice: 0.00MB + Motor InnoDB
    wp_19par0ajsr_gla_shipping_rates Datos: 0.02MB + índice: 0.03MB + Motor InnoDB
    wp_19par0ajsr_gla_shipping_times Datos: 0.02MB + índice: 0.02MB + Motor InnoDB
    wp_19par0ajsr_jetpack_sync_queue Datos: 0.02MB + índice: 0.06MB + Motor InnoDB
    wp_19par0ajsr_links Datos: 0.02MB + índice: 0.02MB + Motor InnoDB
    wp_19par0ajsr_mailchimp_carts Datos: 0.02MB + índice: 0.00MB + Motor InnoDB
    wp_19par0ajsr_mailchimp_jobs Datos: 0.02MB + índice: 0.00MB + Motor InnoDB
    wp_19par0ajsr_options Datos: 11.41MB + índice: 0.13MB + Motor InnoDB
    wp_19par0ajsr_postmeta Datos: 6.50MB + índice: 0.31MB + Motor InnoDB
    wp_19par0ajsr_posts Datos: 1.52MB + índice: 0.06MB + Motor InnoDB
    wp_19par0ajsr_snippets Datos: 0.02MB + índice: 0.03MB + Motor InnoDB
    wp_19par0ajsr_term_relationships Datos: 0.02MB + índice: 0.02MB + Motor InnoDB
    wp_19par0ajsr_term_taxonomy Datos: 0.02MB + índice: 0.03MB + Motor InnoDB
    wp_19par0ajsr_termmeta Datos: 0.02MB + índice: 0.03MB + Motor InnoDB
    wp_19par0ajsr_terms Datos: 0.02MB + índice: 0.03MB + Motor InnoDB
    wp_19par0ajsr_usermeta Datos: 0.02MB + índice: 0.03MB + Motor InnoDB
    wp_19par0ajsr_users Datos: 0.02MB + índice: 0.05MB + Motor InnoDB
    wp_19par0ajsr_vxc_mailchimp_accounts Datos: 0.02MB + índice: 0.00MB + Motor InnoDB
    wp_19par0ajsr_vxc_mailchimp_log Datos: 0.02MB + índice: 0.02MB + Motor InnoDB
    wp_19par0ajsr_vxcf_leads Datos: 0.02MB + índice: 0.05MB + Motor InnoDB
    wp_19par0ajsr_vxcf_leads_detail Datos: 0.02MB + índice: 0.03MB + Motor InnoDB
    wp_19par0ajsr_vxcf_leads_notes Datos: 0.02MB + índice: 0.02MB + Motor InnoDB
    wp_19par0ajsr_vxcf_mailchimp Datos: 0.02MB + índice: 0.02MB + Motor InnoDB
    wp_19par0ajsr_vxcf_mailchimp_accounts Datos: 0.02MB + índice: 0.00MB + Motor InnoDB
    wp_19par0ajsr_vxcf_mailchimp_log Datos: 0.02MB + índice: 0.02MB + Motor InnoDB
    wp_19par0ajsr_wc_admin_note_actions Datos: 0.08MB + índice: 0.02MB + Motor InnoDB
    wp_19par0ajsr_wc_admin_notes Datos: 0.08MB + índice: 0.00MB + Motor InnoDB
    wp_19par0ajsr_wc_category_lookup Datos: 0.02MB + índice: 0.00MB + Motor InnoDB
    wp_19par0ajsr_wc_comments_subscription Datos: 0.02MB + índice: 0.06MB + Motor InnoDB
    wp_19par0ajsr_wc_customer_lookup Datos: 0.06MB + índice: 0.03MB + Motor InnoDB
    wp_19par0ajsr_wc_download_log Datos: 0.02MB + índice: 0.03MB + Motor InnoDB
    wp_19par0ajsr_wc_feedback_forms Datos: 0.02MB + índice: 0.03MB + Motor InnoDB
    wp_19par0ajsr_wc_follow_users Datos: 0.02MB + índice: 0.13MB + Motor InnoDB
    wp_19par0ajsr_wc_order_addresses Datos: 0.02MB + índice: 0.06MB + Motor InnoDB
    wp_19par0ajsr_wc_order_coupon_lookup Datos: 0.02MB + índice: 0.03MB + Motor InnoDB
    wp_19par0ajsr_wc_order_operational_data Datos: 0.02MB + índice: 0.03MB + Motor InnoDB
    wp_19par0ajsr_wc_order_product_lookup Datos: 0.02MB + índice: 0.06MB + Motor InnoDB
    wp_19par0ajsr_wc_order_stats Datos: 0.09MB + índice: 0.05MB + Motor InnoDB
    wp_19par0ajsr_wc_order_tax_lookup Datos: 0.02MB + índice: 0.03MB + Motor InnoDB
    wp_19par0ajsr_wc_orders Datos: 0.02MB + índice: 0.11MB + Motor InnoDB
    wp_19par0ajsr_wc_orders_meta Datos: 0.02MB + índice: 0.03MB + Motor InnoDB
    wp_19par0ajsr_wc_phrases Datos: 0.02MB + índice: 0.02MB + Motor InnoDB
    wp_19par0ajsr_wc_product_attributes_lookup Datos: 0.02MB + índice: 0.02MB + Motor InnoDB
    wp_19par0ajsr_wc_product_download_directories Datos: 0.02MB + índice: 0.02MB + Motor InnoDB
    wp_19par0ajsr_wc_product_meta_lookup Datos: 0.02MB + índice: 0.09MB + Motor InnoDB
    wp_19par0ajsr_wc_rate_limits Datos: 0.02MB + índice: 0.02MB + Motor InnoDB
    wp_19par0ajsr_wc_reserved_stock Datos: 0.02MB + índice: 0.00MB + Motor InnoDB
    wp_19par0ajsr_wc_tax_rate_classes Datos: 0.02MB + índice: 0.02MB + Motor InnoDB
    wp_19par0ajsr_wc_users_rated Datos: 0.02MB + índice: 0.03MB + Motor InnoDB
    wp_19par0ajsr_wc_users_voted Datos: 0.02MB + índice: 0.08MB + Motor InnoDB
    wp_19par0ajsr_wc_webhooks Datos: 0.02MB + índice: 0.02MB + Motor InnoDB
    wp_19par0ajsr_wpaas_activity_log Datos: 0.16MB + índice: 0.00MB + Motor InnoDB
    wp_19par0ajsr_wpfm_backup Datos: 0.02MB + índice: 0.00MB + Motor InnoDB

    Contador de tipo de contenido

    attachment 167
    custom_css 1
    elementor_library 13
    mc4wp-form 1
    nav_menu_item 1
    oembed_cache 1
    page 12
    post 6
    product 100
    revision 207
    shop_order 981
    shop_order_refund 14
    wp_global_styles 1
    wpcf7_contact_form 1
    wpcode 4
    wpdiscuz_form 1

    _

    WooCommerce > Status > Records
    _

    log-2023-11-21-4a5eb87d182a93f2bd672c0d1dec693a.log

    4+00:00 DEBUG Se llamó a Automattic\WooCommerce\Internal\DataStores\Orders\DataSynchronizer::get_current_orders_pending_sync_count pero no se había registrado ningún tipo de pedido: puede que se haya realizado la llamada demasiado pronto.
    2023-11-21T18:44:04+00:00 DEBUG Se llamó a Automattic\WooCommerce\Internal\DataStores\Orders\DataSynchronizer::get_current_orders_pending_sync_count pero no se había registrado ningún tipo de pedido: puede que se haya realizado la llamada demasiado pronto.

    Thanks for helping me.

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • hrn1995 (woo-hc)

    (@aguinaldodarla)

    Hi @cursojuanlinares

    Based on the error, the function was called before WooCommerce fully initialized.

    To address this issue, I suggest the following steps:

    1. Sometimes, conflicts with other plugins or themes can affect the initialization order. You can temporarily deactivate other plugins and switch to a default WordPress theme (like Twenty Twenty-One) to see if the issue persists. You can find a more detailed explanation of how to do a conflict test here.
    2. If you have any custom code, kindly review functions related to order types or synchronization.
    3. Kindly ensure that the API keys are correct.
    4. Ensure that the API endpoint you are using in Notazz is correct. It should be: https://www.juanlinares.com/wp-json/wc/v3/. For more information, you may check our documentation here: WooCommerce REST API Documentation – WP REST API v3

    I hope this information helps you resolve the issue. If you have any further questions or need additional assistance, please feel free to ask.

    Best regards,

    Thread Starter Elisa

    (@cursojuanlinares)

    Hi Darla,
    Thank you very much for your response, although all the options you indicate have already been implemented and the REST API follows without sending the information to Notazz.

    1 – The topic has been changed to Twent Twenty-One – no response to the conflict.

    2 – I have already uninstalled all the plugins and put them back 1 at a time – I have not had a response – Right now I only have 8 plugins installed.


    3 – APIs are correct – until 1 month ago everything worked fine and I also have another integration with a website https://dibujaahora.com/ and it works perfectly.
    The difference is that https://www.juanlinares.com/ is in Godaddy and the
    https://dibujaahora.com/ (the one that works well, perfect) is on WordPress.com.

    Since October 18, the REST API does not deliver billing information to the outsourced company Notazz with the integration name WooAcademia:

    the website with conflict is https://www.juanlinares.com/

    I need help, because I have already asked for help from Godaddy who sends me to Woocommerce which sends me back to Godaddy. And for 1 month now I’ve been going back and forth without finding a simple solution to my REST API problem.

    Thank you.

    Plugin Support Shameem R. a11n

    (@shameemreza)

    Hi @cursojuanlinares

    The .htaccess fix you’ve applied is correct and should generally solve any issues related to line length. However, since you’re still experiencing problems, there might be a different underlying issue.

    Do you currently use WooCommerce 8.3.1, or are you on an older version? If possible, could you try switching your WooCommerce to version 8.2 and see if that resolves the issue? I’m trying to determine if the problem is related to the legacy REST API issue.

    Also, can you use a tool like Postman to send a GET request to your WooCommerce REST API endpoint and see if it responds correctly?

    Furthermore, what about server error logs? Did you check it? These can often provide more detailed information about the issue. You can usually find these in your hosting control panel or ask your host for help accessing them.

    Let us know how that goes. Looking forward to helping you.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘API REST created in wooCommerce does not work’ is closed to new replies.