Closed GothicBezimienny closed 7 years ago
What db driver do you use? SF version? Please, provide environment and bundles versions info.
My sf its 2.8.
I suppose you should turn off sql_mode=only_full_group_by
Oh thanks, so much i spand on this so much time.
If think ins't closed i wanna as for other problem if i can. I sorry if i shoudl use new issue thema for new ask. As an user when i want click on procut and show details i have this error:
Controller "Application\Sonata\ProductBundle\Controller\ProductController::viewAction()"
requires that you provide a value for the "$product" argument (because there is no
default value or because there is a non optional argument after this one).
`
my controler is extend BaseProductControler nad viewAction looks that:
/**
* @param $product
*
* @throws NotFoundHttpException
*
* @return Response
*/
public function viewAction($product)
{
var_dump($product);
if (!is_object($product)) {
throw new NotFoundHttpException('invalid product instance');
}
$provider = $this->get('sonata.product.pool')->getProvider($product);
$formBuilder = $this->get('form.factory')->createNamedBuilder('add_basket', 'form', null, array('data_class' => $this->container->getParameter('sonata.basket.basket_element.class'), 'csrf_protection' => false));
$provider->defineAddBasketForm($product, $formBuilder);
$form = $formBuilder->getForm()->createView();
$currency = $this->get('sonata.price.currency.detector')->getCurrency();
// Add twitter/FB metadata
$this->updateSeoMeta($product, $currency);
return $this->render(
sprintf('%s:view.html.twig', $provider->getBaseControllerName()),
array(
'provider' => $provider,
'product' => $product,
'cheapest_variation' => $provider->getCheapestEnabledVariation($product),
'currency' => $currency,
'form' => $form,
)
);
}
and view:
{% extends 'SonataProductBundle:Product:view.html.twig' %}
{% block product_title %}{{ product.name }}{% endblock %}
{% block product_description %}
{{ product.description|raw }}
{% endblock %}
{% block product_gallery %}Product gallery{% endblock %}
Please, create a separate issue (and close this), because this is definitely a bug (I can confirm it). I'll give you a temporary solution there.
Hello i have problem, installed sonata with all bundles for e-commerce, and now try configur to working smooth. But, when i open page /shop/catalog/ have this issue :