Upgraded from a fully functional WYSIWYG Image upload ver. 2.3 to ver. 2.4. Now when I go to insert the image and and click "browser" tab .. it comes up empty. I have created a test node with sample images. The image insertion works just fine and the node gets created with images inline jsut fine as well, but I don't see any of the images in the "browser" tab, even after saving the node. Please let me know what information do you need in helping to troubleshoot this.

Comments

rnexussix’s picture

Update:
"uploaded image browser" works when logging in as admin, non-admin users come up empty.

eugenmayer’s picture

Category: support » bug

hmm, the new 2.4 is working with a view to show the images in the browser. The view is using a relationship to node and then nodeaccess to determine if the users should have access to the image. Maybe this is somehow broken, not sure.

Marking as bug. Needs testing

eugenmayer’s picture

hmm, the new 2.4 is working with a view to show the images in the browser. The view is using a relationship to node and then nodeaccess to determine if the users should have access to the image. Maybe this is somehow broken, not sure.

Marking as bug. Needs testing

rnexussix’s picture

BTW, I am using Views 6.x-2.11. Was anyone able to recreate this bug ?

slerby’s picture

Yes, I have the same bug (with a new install, not updated) and I confirm #1.

# drush @dolp pm-list | grep -i image

Drupal Wiki WYSIWYG Image upload (wysiwyg_imageupload) Module Enabled 6.x-2.4
Drupal Wiki WYSIWYG Image upload - Lightbox2 integration (wysiwyg_imageupload_lightbox) Module Not installed 6.x-2.4
Drupal Wiki WYSIWYG Image upload Browser (wysiwyg_imageupload_browser) Module Enabled 6.x-2.4
Drupal Wiki WYSIWYG Image upload migration tool (wysiwyg_imageupload_migration) Module Not installed 6.x-2.4
Drupal Wiki Wysiwyg imageupload - Migrates WYSIWYG imageupload 1-x t 2.x (wysiwyg_imageupload_migrate_1_2) Module Not installed 6.x-2.4
ImageCache ImageAPI (imageapi) Module Enabled 6.x-1.9
ImageCache ImageAPI GD2 (imageapi_gd) Module Not installed 6.x-1.9
ImageCache ImageAPI ImageMagick (imageapi_imagemagick) Module Enabled 6.x-1.9
ImageCache ImageCache (imagecache) Module Enabled 6.x-2.0-beta10
ImageCache ImageCache UI (imagecache_ui) Module Not installed 6.x-2.0-beta10

# drush @dolp pm-list | grep -i views

Views Views (views) Module Enabled 6.x-2.11
Views Views exporter (views_export) Module Not installed 6.x-2.11
Views Views UI (views_ui) Module Not installed 6.x-2.11
eugenmayer’s picture

Jap, but confirmed. I will word on this.

eugenmayer’s picture

Status: Active » Postponed (maintainer needs more info)

Ok currently i cant reproduce it. Using a fresh installation, the browser does what it is supposed to: Shows all images of nodes the user has access to.

I need more informations here, there is something else fishy ( there are users in the queue where the browser works fine, so there must be something else )

// Would like to fix this one for 2.5. ASAP, so would be nice to have a quick answer

rnexussix’s picture

Update:
1) I tried "Rebuild Permissions" thinking that this might have something to do with the problem, (admin sees images in the image browser, but other users see nothing). That didn't help, still the same problem.

2) found the "wysiwyg_imageupload_browser" & "wysiwyg_imageupload_by_node" in the Views list, so this is o'k.

3) Switched the theme from Fusion Aciua Slate to Garland (just to make sure that this is not theme related), still the same problem.

Any settings that I should verify ?

eugenmayer’s picture

Hrm so its a permission problem, well i check that.

Patricia_W’s picture

I'm having a related problem.

Although it worked for a while, now, when I attempt to insert an image the popup window comes up and says it is loading but never finishes. I have to close the window/tab eventually. I wonder if the problem is due to a memory limit. When I attempt to use some other views I get the following error: (Fatal error: Out of memory (allocated 31719424) (tried to allocate 3531787 bytes) in /homepages/23/d199252998/htdocs/drupal-canada/includes/common.inc on line 167)

I know that my webhost 1&1) has insufficient memory (30M) and am considering moving to a host without this limit. Perhaps this is the cause of my hanging inserts.

netbear’s picture

Had the same problem - browser is empty. I managed to solve it by adding such strings
$options = parent::option_definition();
parent::options_form($form, $form_state);// HERE IS MY ADDITION
to functions
function option_definition()
and
function options_form()
correspondently
in the views/wysiwyg_imageupload_handler_field_image.inc file of the module.
Now these functions look like:

  function option_definition() {
    $options = parent::option_definition();// HERE IS MY ADDITION
    $options = array();
    $options['preset'] = array('default' => TRUE);
    $options['link_for_browser'] = array('default' => FALSE);
    return $options;
  }
  
  function options_form(&$form, &$form_state) {
    parent::options_form($form, $form_state);// HERE IS MY ADDITION
    $presets = imagecache_presets();
    $styles = array();
    foreach ($presets as $preset) {
      // We can use the presetid here (http://drupal.org/node/694188).
      $styles[$preset['presetname']] = t("!preset", array('!preset' => $preset['presetname']));
    }
    $form['preset'] = array(
      '#type' => 'select',
      '#title' => t('User this imagecache preset'),
      '#default_value' =>  $this->options['preset'],
      '#options' => $styles,
    );
    
    $form['link_for_browser'] = array(
      '#type' => 'checkbox',
      '#title' => t('Links images for browser'),
      '#default_value' =>  $this->options['link_for_browser']
    );    
    return $form;
  } 

Вut now I have some absolet form fields in the view options form, though it can be handled by unsetting them like unset($form['some_field'].
This works, but I don't know why are these strings necessary. May be anyone explain or find better solution?

eugenmayer’s picture

Issue should be fixed in 2.5, fixed several issues.

If you have build any views ontop of the views integration you have to rebuild them, as i changed the option names (namespaced)

The shipped views are already reexported

eugenmayer’s picture

Status: Postponed (maintainer needs more info) » Fixed
eugenmayer’s picture

Status: Fixed » Closed (fixed)