Viewing 15 replies - 1 through 15 (of 17 total)
  • Plugin Contributor Mike Jolley (a11n)

    (@mikejolley)

    Can you get to:

    https://www.xxx.com.br/shop/finalizar-compra/

    You can try removing the ‘shop’ base and doing another order to see if that helps.

    Thread Starter ojaneri

    (@ojaneri)

    Hi Mike,

    Tried https://www.xxx.com.br/finalizar-compra/order-received/720?key=wc_order_56b35ec75c6fb&utm_nooverride=1 without sucess.

    And if I access https://www.xxx.com.br/finalizar-compra/ it will redirect to https://www.xxx.com.br/shop/finalizar-compra/, what I presume it is a correct behavior. Finished the order, and it redirected to the /shop/finalizar-compra/order-received again, with a 404 error.

    Thank you

    Plugin Contributor Mike Jolley (a11n)

    (@mikejolley)

    What is your checkout URL?

    I think you’re gateway may be sending you to the wrong place.

    Thread Starter ojaneri

    (@ojaneri)

    I tried different gateways (woocommerce – boleto and woocommerce-transf) without sucess.

    But, as the endpoint is configured correctly (order-received) and the gateway is sending to a order-received URL, I suppose it is correct.

    Plugin Contributor Mike Jolley (a11n)

    (@mikejolley)

    What is your checkout URL?

    Thread Starter ojaneri

    (@ojaneri)

    Plugin Contributor Mike Jolley (a11n)

    (@mikejolley)

    Thread Starter ojaneri

    (@ojaneri)

    Sorry for not posting it earlier.

    ### WordPress Environment ###
    
    Home URL: https://www.cearamaquinas.com.br
    Site URL: https://www.cearamaquinas.com.br
    WC Version: 2.5.2
    Log Directory Writable: ?  /home/storage/9/22/05/cearamaquinas/public_html/wp-content/uploads/wc-logs/
    WP Version: 4.4.2
    WP Multisite: –
    WP Memory Limit: 256 MB
    WP Debug Mode: –
    Language: pt_BR
    
    ### Server Environment ###
    
    Server Info: Apache
    PHP Version: 5.6.17
    PHP Post Max Size: 8 MB
    PHP Time Limit: 600
    PHP Max Input Vars: 1000
    SUHOSIN Installed: ?
    MySQL Version: 5.6.16
    Max Upload Size: 2 MB
    Default Timezone is UTC: ?
    fsockopen/cURL: ?
    SoapClient: ?
    DOMDocument: ?
    GZip: ?
    Multibyte String: ?
    Post Remoto: ?
    Remote Get: ?
    
    ### Database ###
    
    WC Database Version: 2.5.2
    :
    woocommerce_sessions: ?
    woocommerce_api_keys: ?
    woocommerce_attribute_taxonomies: ?
    woocommerce_termmeta: ?
    woocommerce_downloadable_product_permissions: ?
    woocommerce_order_items: ?
    woocommerce_order_itemmeta: ?
    woocommerce_tax_rates: ?
    woocommerce_tax_rate_locations: ?
    
    ### Active Plugins (21) ###
    
    BePro Listings: por BePro Software Team – 2.2.0015
    BePro Email: por BePro Software Team – 1.0.04
    Formulário de contato 7: por Takayuki Miyoshi – 4.3.1
    Email Return-Path Header Fix: por Abdussamad Abdurrazzaq – 0.1
    EWWW Image Optimizer: por Shane Bishop – 2.5.7
    File Away: por Thom Stark – 3.9.6.1
    MailChimp for WordPress: por ibericode – 3.0.10
    MQ Woocommerce Product's Price Bulk Edit: por Mostafa Qanbari – 1.0
    Slider Revolution: por ThemePunch – 5.1.5
    themesFor.me Google Product Feed for WooCommerce: por Themes For Me – 1.0.7
    Tidio Chat: por Tidio Ltd. – 3.0.1
    Shortcodes by UnitedThemes: por UnitedThemes – 3.3
    WooCommerce Boleto: por Claudio Sanches – 1.5.3
    WooCommerce Correios: por claudiosanches
    rodrigoprior – 2.1.1
    
    WooCommerce Extra Checkout Fields for Brazil: por claudiosanches – 3.2.0
    WooCommerce Google Analytics Integration: por WooThemes – 1.4.0
    WooCommerce PagSeguro: por Claudio Sanches
    Gabriel Reguly – 2.7.1
    
    WooCommerce Parcelas: por Filipe Seabra – 1.2.8.3
    WooCommerce Descontos por Método de Pagamento: por Claudio Sanches – 2.2.1
    WooCommerce: por WooThemes – 2.5.2
    
    ### Settings ###
    
    Force SSL: –
    Currency: BRL (R$)
    Currency Position: left_space
    Thousand Separator: .
    Decimal Separator: ,
    Number of Decimals: 2
    
    ### API ###
    
    API Enabled: ?
    API Version: 3.1.0
    
    ### WC Pages ###
    
    Base da loja: #9 - /shop/
    Carrinho: #93 - /shop/carrinho/
    Finalizar compra: #96 - /shop/finalizar-compra/
    Minha conta: #12 - /shop/my-account/
    
    ### Taxonomies ###
    
    Product Types: external (external)
    grouped (grouped)
    simple (simple)
    variable (variable)
    
    ### Theme ###
    
    Name: Flatsome
    Version: 2.8
    Author URL: https://www.uxthemes.com/
    Child Theme: ? – Caso você esteja modificando uma o WooCommerce em uma tema pai que você n?o desenvolvemos
    recomendamos usar uma tema filho
    Veja: como criar uma tema filho
    
    WooCommerce Support: ?
    
    ### Templates ###
    
    Overrides: flatsome/woocommerce/archive-product.php
    flatsome/woocommerce/cart/cart.php
    flatsome/woocommerce/checkout/form-checkout.php
    flatsome/woocommerce/checkout/thankyou.php
    flatsome/woocommerce/content-product.php
    flatsome/woocommerce/content-product_cat.php vers?o 2.5.0 esta desatualizado. A vers?o do core é 2.5.2
    flatsome/woocommerce/content-single-product.php
    flatsome/woocommerce/global/breadcrumb.php
    flatsome/woocommerce/global/wrapper-end.php
    flatsome/woocommerce/global/wrapper-start.php
    flatsome/woocommerce/loop/loop-end.php
    flatsome/woocommerce/loop/loop-start.php
    flatsome/woocommerce/loop/orderby.php
    flatsome/woocommerce/loop/pagination.php
    flatsome/woocommerce/loop/sale-flash.php
    flatsome/woocommerce/myaccount/form-login.php
    flatsome/woocommerce/notices/error.php
    flatsome/woocommerce/notices/success.php
    flatsome/product-searchform.php
    flatsome/woocommerce/single-product/add-to-cart/grouped.php
    flatsome/woocommerce/single-product/add-to-cart/simple.php
    flatsome/woocommerce/single-product/add-to-cart/variable.php
    flatsome/woocommerce/single-product/add-to-cart/variation-add-to-cart-button.php
    flatsome/woocommerce/single-product/price.php
    flatsome/woocommerce/single-product/product-image.php
    flatsome/woocommerce/single-product/product-thumbnails.php
    flatsome/woocommerce/single-product/related.php
    flatsome/woocommerce/single-product/review.php
    flatsome/woocommerce/single-product/sale-flash.php
    flatsome/woocommerce/single-product/share.php
    flatsome/woocommerce/single-product/short-description.php
    flatsome/woocommerce/single-product/tabs/additional-information.php
    flatsome/woocommerce/single-product/tabs/description.php
    flatsome/woocommerce/single-product/tabs/tabs.php
    flatsome/woocommerce/single-product/title.php
    flatsome/woocommerce/single-product/up-sells.php
    flatsome/woocommerce/single-product-reviews.php
    flatsome/woocommerce/single-product.php
    
    : Aprenda como atualizar templates desatualizados
    Plugin Contributor Mike Jolley (a11n)

    (@mikejolley)

    Could you disable theme, go to settings > permalinks > Save, and try again. Wondering if there is some custom code in there causing a 404.

    It could also be any plugin which adds custom taxonomies/post types since those can add rewrite rules too.

    Thread Starter ojaneri

    (@ojaneri)

    I change to storefront, saved the permalinks, but the 404 error continues.

    You can see it here:

    https://www.cearamaquinas.com.br/shop/finalizar-compra/order-received/720?key=wc_order_56b35ec75c6fb&utm_nooverride=1

    Even tried removing all plugins except Woocommerce

    -bash-3.2$ mv plugins/ plugins.hold
    -bash-3.2$ mkdir plugins
    -bash-3.2$ cd plugins
    -bash-3.2$ cp -r ../plugins.hold/woocommerce
    -bash-3.2$ cp -r ../plugins.hold/woocommerce* .
    -bash-3.2$

    but without success.

    Plugin Contributor Mike Jolley (a11n)

    (@mikejolley)

    After you did that it would be important to do the permalink save again to flush any existing rules.

    Plugin Contributor Claudio Sanches

    (@claudiosanches)

    What you have in your .htaccess file?

    Thread Starter ojaneri

    (@ojaneri)

    -bash-3.2$ cat .htaccess
    AddHandler php56-script .php
    suPHP_ConfigPath /home/cearamaquinas
    
    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>
    
    # END WordPress
    Plugin Contributor Claudio Sanches

    (@claudiosanches)

    @ojaneri I just found the error… As a matter of fact you caused a conflict of rewrite rules.

    Since you selected a base for your products called shop and you have a page called shop… that you use as parent of cart, checkout and my-account:

    https://www.cearamaquinas.com.br/shop/
    https://www.cearamaquinas.com.br/shop/pecas-e-acessorios/oleo-basico-10-1l/
    https://www.cearamaquinas.com.br/shop/carrinho/
    https://www.cearamaquinas.com.br/shop/finalizar-compra/
    https://www.cearamaquinas.com.br/shop/my-account/

    This cause errors in another pages too, for example on “My Account” page:

    https://www.cearamaquinas.com.br/shop/my-account/visualizar-pedido/728
    https://www.cearamaquinas.com.br/shop/my-account/editar-endereco/billing
    https://www.cearamaquinas.com.br/shop/my-account/editar-conta/

    Solutions:

    1. Change your products base, from shop to another thing
    2. Change your catalog slug
    3. Stop use your catalog page as parent from cart, checkout and my-account (my favorite solution for it)

    Now just pick one ??

    Thread Starter ojaneri

    (@ojaneri)

    Thank you Mr Claudio, you nailed it.

    Just changed the shop on permalinks to lojavirtual and it worked.

    Muito obrigado Claudio!

Viewing 15 replies - 1 through 15 (of 17 total)
  • The topic ‘404 Error on woocommerce thank you (Order Received)’ is closed to new replies.