Jump to content

Problem order.


Recommended Posts

Hi, my website -> sklep.pneumaticon.pl

 

How click "zamów" is error:

Warning: require_once(/homepages/28/d427068959/htdocs/presta/classes/../controllers/OrderController.php) [function.require-once]: failed to open stream: No such file or directory in /homepages/28/d427068959/htdocs/presta/classes/ControllerFactory.php on line 34

Fatal error: require_once() [function.require]: Failed opening required '/homepages/28/d427068959/htdocs/presta/classes/../controllers/OrderController.php' (include_path='.:/usr/lib/php5') in /homepages/28/d427068959/htdocs/presta/classes/ControllerFactory.php on line 34

 

cod: ControllerFactory.php

 

class ControllerFactoryCore
{
    public static function includeController($className)
    {
        if (!class_exists($className, false))
        {    
            require_once
(dirname(__FILE__).'/../controllers/'.$className.'.php'); // linia34
            if (file_exists(dirname(__FILE__).'/../override/controllers/'.$className.'.php'))
                require_once(dirname(__FILE__).'/../override/controllers/'.$className.'.php');
            else
            
{
                $coreClass = new ReflectionClass($className.'Core');
                if ($coreClass->isAbstract())
                    eval('abstract class '.$className.' extends '.$className.'Core {}');
                else
                    eval
('class '.$className.' extends '.$className.'Core {}');
            }
        }
    }

    public static function getController($className, $auth = false, $ssl = false)
    {
        ControllerFactory::includeController($className);
        return new $className($auth, $ssl);
    }
}

 

 

Link to comment
Share on other sites

It seems that, for some reason, you are missing the order controller. Download the same prestashop version you use again from the site, then copy over the whole controllers/ directory and overwrite files (unless you have some reason not to do so!) :)

  • Like 1
Link to comment
Share on other sites

×
×
  • Create New...