Jump to content

Unable to update settings in product page prestashop 1.7


mmtoyworld

Recommended Posts

  • 5 months later...
  • 2 months later...
16 hours ago, Joolivus said:

Shop version 1.7.2.4
debug mode is activated, same error message.

pressing F12 on Mozillla, checking debugger and after hit the [Learn more]:
error_photoshop_debug.thumb.jpg.ff0a2e70391fe5d831d8aa4f5eb8c93c.jpg
"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Errors/JSON_bad_parse"

Unexpected character at line one is typical for when you have debug mode enabled and you make an Ajax call that creates a PHP error. Instead of the expected data the call returns then the error message and that has "unexpected" content. To see the content of the error message see this post:

 

Link to comment
Share on other sites

Many thanks for your reply. Trying to follow your request and all i got is this from debug (pretty much the same i previously shared here).
The store is actually all damaged, Stock management not working, no New order creation, can not edit any order, no product update, Prestabay module is not working seems like nothing works.
All this started after user deletion couple days ago. Under GDPR compliance law one customer demanded to be removed from database (first time we ever had to).
User got deleted following instructions inside the Official GDPR compliance v1.2.1 - by PrestaShop. I lack technical knowledge, i don't even know where to start actually.
Appreciate your help and time.

 

Edited by Joolivus (see edit history)
Link to comment
Share on other sites

1 hour ago, PrestaServicePro said:

Need to debug it and if possible pm me your shop access then I can check it for you.
if you have a doubt about security then clone your shop and send me access to the cloned shop and will work over it.

pm sent. cheers

  • Thanks 1
Link to comment
Share on other sites

Hello,

I create products and their prices and quantities changes randomly. When I try to update these products I see "unable to update products" in product page.

Can you Help me please? thank you. @PrestaServicePro

Link to comment
Share on other sites

  • 3 weeks later...

I created three different virtual products. I can create, but after some time their price are changed randomly(not by me).

When I try to change these products price, type, name etc.  I click save button I see these messages .

"Unable to update settings." red error message on right top. Also, in console:

POSThttps://xyz1.com/admin745mdikw1/index.php/sell/catalog/products/67548?_token=_tQU_JZhp4qHtq-aRQoIcgabPV4I7neIljw-qRbes4M

jQuery.Deferred exception: this.getProductType is not a function checkAccessVariations@https://xyz1.com/admin745mdikw1/themes/default/js/bundle/product/form.js?1.7.7.0:234:34

Uncaught Error: No Dropzone found for given element. This is probably because you're trying to access it before Dropzone had the time to initialize. Use the `init` option to setup any additional observers on your Dropzone.
    forElement https://xyz1.com/admin745mdikw1/themes/new-theme/public/main.bundle.js:277
    default https://xyz1.com/admin745mdikw1/themes/new-theme/public/product_page.bundle.js?1.7.7.0:12
    u https://xyz1.com/admin745mdikw1/themes/new-theme/public/main.bundle.js:277
    d https://xyz1.com/admin745mdikw1/themes/new-theme/public/main.bundle.js:277
    setTimeout handler*r/< https://xyz1.com/admin745mdikw1/themes/new-theme/public/main.bundle.js:277
    u https://xyz1.com/admin745mdikw1/themes/new-theme/public/main.bundle.js:277
    add https://xyz1.com/admin745mdikw1/themes/new-theme/public/main.bundle.js:277
    then https://xyz1.com/admin745mdikw1/themes/new-theme/public/main.bundle.js:277
    Deferred https://xyz1.com/admin745mdikw1/themes/new-theme/public/main.bundle.js:277
    then https://xyz1.com/admin745mdikw1/themes/new-theme/public/main.bundle.js:277
    ready https://xyz1.com/admin745mdikw1/themes/new-theme/public/main.bundle.js:277
    default https://xyz1.com/admin745mdikw1/themes/new-theme/public/product_page.bundle.js?1.7.7.0:12
    540 https://xyz1.com/admin745mdikw1/themes/new-theme/public/product_page.bundle.js?1.7.7.0:36
    u https://xyz1.com/admin745mdikw1/themes/new-theme/public/main.bundle.js:277
    d https://xyz1.com/admin745mdikw1/themes/new-theme/public/main.bundle.js:277
    setTimeout handler*r/< https://xyz1.com/admin745mdikw1/themes/new-theme/public/main.bundle.js:277
    u https://xyz1.com/admin745mdikw1/themes/new-theme/public/main.bundle.js:277
    fireWith https://xyz1.com/admin745mdikw1/themes/new-theme/public/main.bundle.js:277
    fire https://xyz1.com/admin745mdikw1/themes/new-theme/public/main.bundle.js:277
    u https://xyz1.com/admin745mdikw1/themes/new-theme/public/main.bundle.js:277
    fireWith https://xyz1.com/admin745mdikw1/themes/new-theme/public/main.bundle.js:277

 

Plus, viewing invoices, creating product, checking orders are loading so slowly..

Link to comment
Share on other sites

  • 2 months later...

Hi !

 

I'm facing actually the same problem, i can't update or save modification on product page everytime i get this message : "Unable to update settings"

Can anyone please tell me how to fix that ?

- PrestaShop : 1.7.7.1

- Version de PHP : 7.3.28

Screenshot of error

 

https://take.ms/ytkui

 

Thank you in advance

 

Edited by haitam.chtiba@gmail. (see edit history)
Link to comment
Share on other sites

  • 3 weeks later...

PrestaServicePro you are a star!! You found the solution on my problem. I was going mad for the last 2 days, I couldn't find what was causing this problem. Finally it was a conflict of a module that I bought and installed.
I will definitely have you in mind in the future if I want to buy any service or product from you.
Thank you very much again.
You saved me !

 

  • Like 1
Link to comment
Share on other sites

  • 3 weeks later...
11 minutes ago, haitam.chtiba@gmail. said:

Can you please screenshot what happens in console log message exactly the moment you are updating a product !

 

As you can see, the product combinations does not load. I am able to save changes untill they load and most of the time it takes like forever.

image.thumb.png.30e7c9f77f966802f6d7e97575d7e661.png

Link to comment
Share on other sites

On 8/15/2021 at 9:16 PM, haitam.chtiba@gmail. said:

Go to Network and check which files are not loading ! if these files are related to a module look which module is then disable it and try if updating product work 

I have the same issue on a client's shop when updating quantity (multistore 1.7.7.4)

I cannot see that the error is caused by a module, the error shows:

 

billede.thumb.png.3448934be3b612bfddefd2d92e7e92e3.png

Any ideas what is causing this? There is no "new-theme" when I check via file manager.

Link to comment
Share on other sites

  • 5 months later...
  • 3 months later...

I have the same problem when product save without any combination, it's work but when go with the combination, it throw an error. All starts after user deletion couple days ago use module Official GDPR compliance  by PrestaShop. please help

Link to comment
Share on other sites

Hi, 

 

I don't think the module has any relation to that. What I could imagine that the Official Prestashop GDPR module uses the same override which some other combination related module, and once the GDPR module has been activate it deleted the other modules override part, which is causing the error. 

can you provide the error seen? 

Also, can you check if you have any combination  related module(one that adds any combination feature etc) 

Kind Regards, 

LEo 

 

Link to comment
Share on other sites

18 minutes ago, saladynsan said:

I have the same problem when product save without any combination, it's work but when go with the combination, it throw an error. All starts after user deletion couple days ago use module Official GDPR compliance  by PrestaShop. please help

Only way to do this

1- check combination's quantity, price. Make sure every combination have quantity and price

2: disable the debug mode from performance 

Link to comment
Share on other sites

Hi,

you should enable the debug mode right before saving the product, and check in the browser's developer tools-> network tab, the 500 error's response tab , where the error/exception will be displayed/explained.

From there it can be seen what module or override is causing the 500 error at saving.

Have a nice day, Leo.

Link to comment
Share on other sites

  • 2 months later...

Absolutely awesome and at the same time, absolutely awful. Such a simple question and so much of an headache...

 

Worked like a charm.

 

On 3/19/2020 at 9:59 AM, Mag-WebDesign said:

Hello,
already faced a little similar issue coming from formatted text in products description that broke the listing theme.

If that can helps, and as said Jetx :
-
try to remove all html formated tags (no <strong>, no link <a href="">, no italic <i>, etc..) by cliking on the "<>" (code source) while editing the description on products page.
- Don't copy/paste texts (from another text editor for example) in description or verify it doesn't copy formatted html tags.
- For the SEO part, maybe try to "save and go back to catalog" a first time, then try again to fill fields.
- for videos : make sure you enabled in Shop Parameters > General > "Allow iframes on HTML fields"

Link to comment
Share on other sites

  • 7 months later...
  • 2 weeks later...

Here is my solution.  in src\PrestaShopBundle\Controller\Admin\ProductController.php around line 604 there's a catch block. 

Replace the following code in the catch block and you can get err msg in network tab of your browser.

if ($request->isXmlHttpRequest()) {

                $error_msg = "In ".$e->getFile()." at line ".$e->getLine()." ".$e->getMessage();

                return $this->returnErrorJsonResponse(

                    ['msg'=>$error_msg],

                    Response::HTTP_INTERNAL_SERVER_ERROR

                );

            }



            throw $e;

 

Link to comment
Share on other sites

  • 3 months later...

Shop Version: Prestashop -  1.7.5.0

Issue: When I try to add a new product or edit the existing product. - I get the error - CSRF Token is invalid. Unable to update settings in product page.

I tried to downgrade the php version to 7.2 and also cleared the cache but it doesnt help. 

Please help. (Attach the screenshot for your reference)

 

 

Screenshot 2023-08-04 at 0.24.35.png

Screenshot 2023-08-04 at 0.22.31.png

Screenshot 2023-08-03 at 9.13.32.png

Screenshot 2023-08-03 at 23.34.49.png

Link to comment
Share on other sites

3 hours ago, praveenmadhava said:

Shop Version: Prestashop -  1.7.5.0

Issue: When I try to add a new product or edit the existing product. - I get the error - CSRF Token is invalid. Unable to update settings in product page.

I tried to downgrade the php version to 7.2 and also cleared the cache but it doesnt help. 

Please help. (Attach the screenshot for your reference

It has something to do with Twig. See https://stackoverflow.com/questions/23455780/the-csrf-token-is-invalid-please-try-to-resubmit-the-form

Your first image is not very helpful. When there are several error messages the first one is usually the most interesting and the following ones are just followup errors that are a logical consequence of the first one. But you show only the last ones.

Link to comment
Share on other sites

Thanks a lot. The issue is resolved. It appears that the site under the /toor subfolder utilizes functions that have been depracated in PHP 7.4 and is incompatible with later versions. Custom PHP Handler of PHP 7.3 applied only for the subfolder site and now the editor looks properly and the issue resolved.

Link to comment
Share on other sites

  • 5 months later...

I had this similar issue and solved it by making sure all PHP extensions were turned on. If you have access to your WHM, you can do it in EasyApache 4 or request your hosting provider to do it for you.  

Link to comment
Share on other sites

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
×
×
  • Create New...