Impossible to add the product to the cart. Prestashop - prestashop

When i try to add cart this happen . enter image description hereafter i disabled the Special block and enabled the top seller this happen. When i try to revert, the problem still the same. Thanks

This error must be generated through some third party module on your store. In order to identify the module you need to observe the ajax request (Sent on 'Add to Cart' click), after enabling error debugging.
FYI, to enable error debugging you can follow the steps below.
open file: config/defines.inc.php (using FTP or hosting control panel)
change false-->true:
define('_PS_MODE_DEV_', false);
define('_PS_MODE_DEV_', true);

Related

Problems in the configuration of the web catalog

The configuration of the web catalog was made to leave as main page, the product page and not the home page.
Follow the steps below:
1) go to Marketing / Web Catalogs
2) click on "Edit Content Tree" for the chosen web catalog
3) And change the default content variant for the root tree node. By default, it's set to
the "System Page" - "Oro Frontend Root". Set the "System Page Route" to "Oro Product
Frontend Prduct Index
but I do not get any result with this change I tried to run the following command, in case it generated some change or delete cache, but I still do not see the change I need.
Please ensure that your message consumers are running. We've checked this case and all works as expected.

Why does my local checkout fails on Spartacus 1.5?

The Error
*polyfills.js:3050 GET https://localhost:9002/rest/v2/powertools/cms/pages?fields=DEFAULT&pageType=ContentPage&pageLabelOrId=/checkout&lang=en&curr=USD 404*
I am not able to perform checkout on both of my local powertools and electronics sites. The Chrome console log complains about the error shown above. Also, I have tried opening the given link in a new tab and it says No content page found matching the provided label or id: /checkout. Checked the WCMS Pages in my local Backoffice, I couldn't find any page with label or id as "checkout".
Could it be that I have to setup my local with the b2c_for_spartacus? (I have setup mine with b2c_b2b_acc_oms recipe instead)
Have you installed your SAP Commerce instance with the Spartacus Sample Data AddOn? The standard Powertools data setup will not include this, but the additions in spartacussampleadataaddon do. Please see links/instructions in https://sap.github.io/cloud-commerce-spartacus-storefront-docs/installing-sap-commerce-cloud/
If installed/setup correctly you should have a content page with UID=Checkout in the powertools-spaContentCatalog content catalog

making errors more generic in october cms

I am new to coding. I am trying to create a project in october cms.
My question is regarding the error handling. The errors seem to be too informative, and telling about the file name.
For example
error example
I just want to show the error and not the file. How can this be achieved. So users won't be able to see the file names.
In order to achieve this you need to set debug inside config/app.php to false. This will render a generic page when either a 404 or 500 is hit.
These templates can then be overridden by creating a /500 (server error) and /404 (page not found) in the CMS.
From the docs:
Debug mode
The debug setting is found in the config/app.php configuration file with the debug parameter and is enabled by default.
When enabled, this setting will show detailed error messages when they occur along with other debugging features. While useful during development, debug mode should always be disabled when used in a live production site. This prevents potentially sensitive information from being displayed to the end-user.
The debug mode uses the following features when enabled:
Detailed error pages are displayed.
Failed user authentication provides a specific reason.
Combined assets are not minified by default.
Safe mode is disabled by default.
Important: Always set the app.debug setting to false for production environments.
Source: https://octobercms.com/docs/setup/configuration#debug-mode

Upon creating project, laragon's generated url leads to wampserver configuration page

(Laragon) Project path: C:/laragon/www/larabook (Laragon) Pretty url: http://larabook.dev (http://larabook.dev)
I got this after quick create, but when I try to access the webpage larabook.dev I get the wampserver configuration page instead of the laravel default page. Does that mean that laravel didn't install correctly? I have version 2.0.4 and I just clicked menu > quick create > laravel.
Thanks Hong, I had the same issue and fixed it.
For those who want to know how to do it:
1. Goto: Control Panel/Administrative Tools/Services and Identify the service that might be another instance of Apache
2. Select "Properties"
3. Select the Startup Type. Use the pulldown in the :Startup type to set the service to Manual or Disabled.
You must stop Wampserver completely. It looks like you are running Laragon and Wampserver the same time and conflict happened.

OpenERP email sending issue

Currently I'm working on email sending functionality of openerp version7.0 application.
Steps followed :
Module 'Email Templates' is installed successfully
Navigated to Settings>>Technical>>Email>>Templates
Created a new template by selecting my module 'latest_base'
Clicked on 'Add context to action button.
Clicked on preview button and no errors reported
Finally navigated to my module and clicked on send email button.
System throws following error.
AttributeError: 'latest_base' object has no attribute 'message_post'
Please add below line in your class.This will take care.
_inherit = ['mail.thread']
It works for me this is how i did it
install fetchmail module
install base_setup (may be this component doesn't exist in your addons)
configure outgoing and incoming server
make sure your mail address pop and smtp are enabled
Good luck with it.