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

3 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
  • 0
On 12/24/2018 at 3:21 PM, Klemart3D said:

Problème :


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);

 

Parfaite , merci pour la réponse

Share this post


Link to post
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...

Important Information

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