Jump to content

api webservice Orders


DanyWay

Recommended Posts

Bonjour,

dans l'api orders lors de la création j'ai ce message d'erreur en retour

errors =     (
                {
            code = 5;
            message = "

 Trying to get property of non-object (/var/www/html/classes/ImageManager.php, line 101)";
        }
    );

La commande est bien créée mais cependant je voudrais corriger cela

Voici la partie du code qui pose pblem

    /**
     * @param $cacheImage
     * @param $disableCache
     * @return string
     */
    public static function getThumbnailPath($cacheImage, $disableCache)
    {
        $cacheParam = $disableCache ? '?time='.time() : '';

        if (Context::getContext()->controller->controller_type == 'admin') {
            return '../img/tmp/'.$cacheImage.$cacheParam;
        }

        return _PS_TMP_IMG_.$cacheImage.$cacheParam;
    }
 

Merci

Danyway

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...