Problem/Motivation

The website encountered an unexpected error. Please try again later.
Error: Call to undefined function cloudinary_stream_wrapper_transformation() in cloudinary_preprocess_image_style_preview() (line 89 of modules\contrib\cloudinary\cloudinary.module).

cloudinary_preprocess_image_style_preview(Array, 'image_style_preview', Array) (Line: 287)
Drupal\Core\Theme\ThemeManager->render('image_style_preview', Array) (Line: 431)
Drupal\Core\Render\Renderer->doRender(Array, ) (Line: 200)
Drupal\Core\Render\Renderer->render(Array) (Line: 64)
Drupal\image\Form\ImageStyleEditForm->form(Array, Object) (Line: 149)
Drupal\Core\Entity\EntityForm->buildForm(Array, Object)
call_user_func_array(Array, Array) (Line: 532)
Drupal\Core\Form\FormBuilder->retrieveForm('image_style_edit_form', Object) (Line: 278)
Drupal\Core\Form\FormBuilder->buildForm(Object, Object) (Line: 91)
Drupal\Core\Controller\FormController->getContentResult(Object, Object)
call_user_func_array(Array, Array) (Line: 123)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() (Line: 573)
Drupal\Core\Render\Renderer->executeInRenderContext(Object, Object) (Line: 124)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->wrapControllerExecutionInRenderContext(Array, Array) (Line: 97)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() (Line: 151)
Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object, 1) (Line: 68)
Symfony\Component\HttpKernel\HttpKernel->handle(Object, 1, 1) (Line: 57)
Drupal\Core\StackMiddleware\Session->handle(Object, 1, 1) (Line: 47)
Drupal\Core\StackMiddleware\KernelPreHandle->handle(Object, 1, 1) (Line: 106)
Drupal\page_cache\StackMiddleware\PageCache->pass(Object, 1, 1) (Line: 85)
Drupal\page_cache\StackMiddleware\PageCache->handle(Object, 1, 1) (Line: 47)
Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object, 1, 1) (Line: 52)
Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object, 1, 1) (Line: 23)
Stack\StackedHttpKernel->handle(Object, 1, 1) (Line: 708)
Drupal\Core\DrupalKernel->handle(Object) (Line: 19)

How to use this module? where i have feed the cloud / api code please guide me

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

Comments

ahaomar created an issue. See original summary.

avpaderno’s picture

Title: With Drupal 8 not working. Where is configration? » With Drupal 8, it doesn't work. Where is the configuration?
Version: 8.x-1.0-alpha2 » 8.x-1.x-dev
avpaderno’s picture

The error is caused by cloudinary_preprocess_image_style_preview().

  // Generate image style for provided sample image.
  $data = cloudinary_stream_wrapper_transformation($variables['style_id'], NULL);
  $derivative_width = !empty($data['width']) && ($data['width'] > 0) ? $data['width'] : 160;
  $derivative_height = !empty($data['height']) && ($data['height'] > 0) ? $data['height'] : 160;

In the cloudinary.module file there isn't any cloudinary_stream_wrapper_transformation() function, but the function is in the cloudinary_stream_wrapper.module file (line 533). cloudinary.module defines cloudinary_stream_wrapper.module as its dependency. The first module cannot be installed without the latter, and the function should be found from the first module.

nginex’s picture

Status: Active » Fixed

This should be fixed in the new module release.

nginex’s picture

Version: 8.x-1.x-dev » 2.x-dev

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.