Jump to content

Prestashop Upgrade to 1.7.5 "An error occurred while processing your request" Error


Recommended Posts

Ladies and Gentlemen,

we have upgraded our shop from the 1.7.4 version to the .1.7.5 version. Now we get the following error with the selection of the article variants

An error occurred while processing your request

The bug is supposed to have been fixed with the current version, but unfortunately it occurs with us.

How can we fix it, can you help?

Yours sincerely

Prestashop Upgrade to 1.7.5 An error occurred while processing your request Error.png

Share this post


Link to post
Share on other sites

Good morning, 

I have the same problem with the combinations, but only when the product has other related products.
Does the same thing happen to you?
Has anyone found the solution?

Best regards

Gema

Share this post


Link to post
Share on other sites

  • 1 month later...
  • 2 weeks later...
On 1/28/2019 at 11:46 AM, gema8 said:

Good morning, 

I have the same problem with the combinations, but only when the product has other related products.
Does the same thing happen to you?
Has anyone found the solution?

Best regards

Gema

I have the same problem...only when I use combinations and related products together.
Does anyone find a solution?

Share this post


Link to post
Share on other sites

I found a solution.

Go to themes\YOURTHEMENAME\templates\catalog\_partials\miniatures\product.tpl 

line 52 you will find <div class="product-actions">

comment the <form> below like this:

 <div class="product-actions">
          <!--
                      <form action="{$urls.pages.cart}" method="post" class="add-to-cart-or-refresh">
                        <input type="hidden" name="token" value="{$static_token}">
                        <input type="hidden" name="id_product" value="{$product.id}" class="product_page_product_id">
                        <input type="hidden" name="id_customization" value="0" class="product_customization_id">
                        <button class="btn btn-primary add-to-cart" data-button-action="add-to-cart" type="submit" {if $product.availability == 'unavailable'}disabled{/if}data-toggle="tooltip" title="Add to cart">
                            {l s='' d='Shop.Theme.Actions'}
                            <i class="material-icons">&#xE8CC;</i>
                        </button>
                    </form>
        -->
                </div>

Now everithing works.

Share this post


Link to post
Share on other sites

Thanks for your reply, 

 

Have I to add the form?? In line 52 or in any other line does not appear <div class="product-actions"> 

 

 my product.tpl  shows this:

 

{**
 * 2007-2017 PrestaShop
 
 * that is bundled with this package in the file LICENSE.txt.
 * It is also available through the world-wide-web at this URL:
 * https://opensource.org/licenses/AFL-3.0
 * If you did not receive a copy of the license and are unable to
 * obtain it through the world-wide-web, please send an email
 * to [email protected] so we can send you a copy immediately.
 *
 * DISCLAIMER
 *
 * Do not edit or add to this file if you wish to upgrade PrestaShop to newer
 * versions in the future. If you wish to customize PrestaShop for your
 * needs please refer to http://www.prestashop.com for more information.
 *
 * @author    PrestaShop SA <[email protected]>
 * @copyright 2007-2017 PrestaShop SA
 * @license   https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0)
 * International Registered Trademark & Property of PrestaShop SA
 *}

{block name='product_miniature_item'}   {* $product.images|@debug_print_var nofilter *}
  <article class="product-miniature js-product-miniature" data-id-product="{$product.id_product}" data-id-product-attribute="{$product.id_product_attribute}" itemscope itemtype="http://schema.org/Product">
    <div class="thumbnail-container ">
        <div class="thumbnail-container-image " style="min-height: 250px; min-height: {$product.cover.bySize.home_default.height}px;">
        {block name='product_thumbnail'}   
        {if Module::isEnabled('an_theme')}
            {if Module::getInstanceByName('an_theme')->getParam('product_productImageChange') == 'standart'}
            <a href="{$product.url}" class="thumbnail product-thumbnail">
              <img
                src = "{$product.cover.bySize.home_default.url}"
                alt = "{if !empty($product.cover.legend)}{$product.cover.legend}{else}{$product.name|truncate:80:'...'}{/if}"
                data-full-size-image-url = "{$product.cover.large.url}"
                >
            </a>
            {elseif Module::getInstanceByName('an_theme')->getParam('product_productImageChange') == 'hover'}
              <a href="{$product.url}" class="thumbnail product-thumbnail">
              {foreach from=$product.images item=image name=foo}
                  <img
                    class="img_hover_change {if $image.id_image == $product.cover.id_image} cover {/if} {if $smarty.foreach.foo.total == 1 } only_one {/if}"
                    ata-full-size-image-url="{$image.bySize.large_default.url}"
                    src="{$image.bySize.home_default.url}"
                    alt="{$image.legend}"
                  >
              {/foreach}
              </a>
            {else}
               <div class="slider_product-wrapper  bxslider">
                <a href="{$product.url}" class="thumbnail product-thumbnail">
                  <img
                  class="slider_product cover"
                  src = "{$product.cover.bySize.home_default.url}"
                  alt = "{if !empty($product.cover.legend)}{$product.cover.legend}{else}{$product.name|truncate:80:'...'}{/if}"
                  data-full-size-image-url = "{$product.cover.large.url}"
                  >
                </a>
                {foreach from=$product.images item=image}
                  {if $image.id_image != $product.cover.id_image}
                  <a href="{$product.url}" class="thumbnail product-thumbnail">
                    <img
                      class="slider_product not_cover"
                      ata-full-size-image-url="{$image.bySize.large_default.url}"
                      src="{$image.bySize.home_default.url}"
                      alt="{$image.legend}"
                    >
                   </a>
                   {/if}
                  {/foreach}
              </div>

            {/if}
        {else}
        <a href="{$product.url}" class="thumbnail product-thumbnail">
              <img
            src = "{$product.cover.bySize.home_default.url}"
            alt = "{if !empty($product.cover.legend)}{$product.cover.legend}{else}{$product.name|truncate:80:'...'}{/if}"
            data-full-size-image-url = "{$product.cover.large.url}"
            >
        </a>
        {/if}   
        {/block}
         
          <div class="highlighted-informations{if !$product.main_variants} no-variants{/if} hidden-sm-down">
            {block name='product_variants'}
              {if $product.main_variants}
                {include file='catalog/_partials/variant-links.tpl' variants=$product.main_variants}
              {/if}
            {/block}
            {block name='quick_view'}
              <a class="quick-view btn-primary" href="#" data-link-action="quickview">
                    {l s='Quick view' d='Shop.Theme.Actions'}
              </a>
            {/block}
          </div>
        </div>
       
      <div class="product-description">
        {block name='product_name'}
          <h3 class="h3 product-title" itemprop="name"><a href="{$product.url}">{$product.name|truncate:80:'...'}</a></h3>
        {/block}

        {block name='product_price_and_shipping'}
          {if $product.show_price}
            <div class="product-price-and-shipping">
              {if $product.has_discount}
                {hook h='displayProductPriceBlock' product=$product type="old_price"}

                <span class="sr-only">{l s='Regular price' d='Shop.Theme.Catalog'}</span>
                <span class="regular-price">{$product.regular_price}</span>
              {/if}

              {hook h='displayProductPriceBlock' product=$product type="before_price"}

              <span class="sr-only">{l s='Price' d='Shop.Theme.Catalog'}</span>
              <span itemprop="price" class="price">{$product.price}</span>

              {hook h='displayProductPriceBlock' product=$product type='unit_price'}

              {hook h='displayProductPriceBlock' product=$product type='weight'}
            </div>
          {/if}
        {/block}

        {block name='product_reviews'}
          {hook h='displayProductListReviews' product=$product}
        {/block}
      </div>

      {block name='product_flags'}
      <a href="{$product.url}">
        <ul class="product-flags">
          {foreach from=$product.flags item=flag}
            <li class="product-flag {$flag.type}">{$flag.label}</li>
          {/foreach}
          {if $product.has_discount}
            {if $product.discount_type === 'percentage'}
              <li class="product-flag discount-percentage">{$product.discount_percentage}</li>
             {else}
                <li class="product-flag discount-percentage">
                    {l s='- %amount%' d='Shop.Theme.Catalog' sprintf=['%amount%' => $product.discount_to_display]}
                </li>
              {/if}
          {/if}    


        </ul>
      </a>
      {/block}
    </div>
  </article>
{/block}
 

 

thanks for your help 

Share this post


Link to post
Share on other sites

HI, thanks for your reply:

Sorry for add  "MY" I know what you mean and  where the file is. In fact I did not find  in line 52 or any other  <div class="product-actions"> so I added the form you say and the result is: another button appears from add to cart i FO  but the main problem stills remain. Just the act to add quantities to the cart the error appears " An error occurred while processing your request "

thanks for wanting to help

Share this post


Link to post
Share on other sites

  • 4 weeks later...
  • 2 years later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More