Jump to content
  • 0
viktormk25

[Gelöst] ContextErrorException in Product.php

Question

Hallo Community, unser Shop hat nach einem Umzug auf einen Cloud Server eine Problem.

Sobald Kategorie, Produktseiten etc. geladen werden, kommt ein Fehler in product.php

  1. in Product.php line ....

Notice: Undefined index: unit_price_ratio

 

Was könnte es sein ? Hat jemand Idee !

Share this post


Link to post
Share on other sites

2 answers to this question

Recommended Posts

  • 0

Problème :

Zitat

(1/1) ContextErrorException

Notice: Undefined index: unit_price_ratio

in Product.php line 4798

 
     


Lösung: In der Datei /classes/Product.php, in Zeile 4798, ersetzen:

$row['unit_price'] = ($row['unit_price_ratio'] != 0  ? $row['price'] / $row['unit_price_ratio'] : 0);

durch:

$row['unit_price'] = ((isset($row['unit_price_ratio']) && $row['unit_price_ratio'] != 0) ? $row['price'] / $row['unit_price_ratio'] : 0);

 

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...

Important Information

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