Zen Cart version: 1.3.9h

Problem: Media Manager *Assign to Products* doesn’t work (ie: it doesn’t actually assign the media to the product, you just keep getting sent to the Admin main page).

Solution:

  • Edit your /admin/includes/init_includes/init_sessions.php file
  • On line 40 you’ll see a line that starts like this:
    if (strpos ( $PHP_SELF, FILENAME_PRODUCTS_PRICE_MANAGER ) === FALSE
  • Change it by adding some extra code near the beginning of the line, as highlighted here in red:
    if (strpos($PHP_SELF, FILENAME_MEDIA_MANAGER)===FALSE && strpos ( $PHP_SELF, FILENAME_PRODUCTS_PRICE_MANAGER ) === FALSE

Original post: http://www.zen-cart.com/forum/showthread.php?t=168587&highlight=media+manager