V
V
Vladimir Mazepa2015-11-18 15:06:22
PHP
Vladimir Mazepa, 2015-11-18 15:06:22

Who faced the error in opencart Fatal error: Class 'Controllerproductproduct?

Hello, I ran into such a problem - opencart stopped working, and no one did anything with the site, earlier (3-4 months ago) there was the same problem, a friend turned to the person who made this site, they fixed it and now everything repeats again.
The site itself - laminatov.com.ua works, errors appear when we go to the product - laminatov.com.ua/index.php?route=product/product&p...
Error:

Fatal error: Class 'Controllerproductproduct' not found in /var/www/laminatov/data/www/laminatov.com.ua/system/engine/front.php on line 39

What happens in the logs:
- PHP Notice: Undefined index: popup in /var/www/laminatov/data/www/laminatov.com.ua/catalog/view/theme/default/template/product/category.tpl on line 64

- PHP Notice: Undefined index: mini_descriptionn in /var/www/laminatov/data/www/laminatov.com.ua/catalog/view/theme/default/template/product/category.tpl on line 76

A piece of category.tpl with these lines:
<div class="image">
  <a href="<?php echo $product['popup']; ?>" class="zoom" rel="lightbox[<?php echo $product['name']; ?>]" title="<?php echo $product['name']; ?>"></a><a href="<?php echo $product['href']; ?>"><img src="<?php echo $product['thumb']; ?>" alt="<?php echo $product['name']; ?>" /></a>
    <!-- <a class="colorbox image_colorbox" rel="colorbox" href="<?php echo $product['href']; ?>"><img src="<?php echo $product['thumb']; ?>" title="<?php echo $product['name']; ?>" alt="<?php echo $product['name']; ?>" /></a>  -->
    </div>
    <?php } ?>
    <div class="name"><a href="<?php echo $product['href']; ?>"><?php echo $product['name']; ?></a></div>
   <div class="description">
   <p style="white-space: pre-line;"><?php echo $product['mini_descriptionn']; ?><?php //echo $mini_description; ?></p></div>
      <?php if ($product['price']) { ?>

Full category.tpl code:
jsfiddle.net/vovamazepa/grLc394z Front.php
code:
https://jsfiddle.net/vovamazepa/0kgsfecg/
Who will say anything about this? Thank you.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alex Teterin, 2015-11-22
@fantom4ik

on line 39, the Controllerproductproduct class is dynamically called,
but such a class is not available, not connected, or does not exist at all. You need to find such a class and connect it, that's all.
Well, if this is done, <?php echo $product['mini_descriptionn']; ?>then at least check whether such a key exists in the array.

<?php echo !empty($product['mini_descriptionn']) ? $product['mini_descriptionn'] : ' ' ; ?>
And in general, you have a spelling mistake mini_descriptionn is written with one n, f maybe this is the case?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question