Zen Cart – FIX for Media Manager *Assign to Products* Not Working

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

No Comments

  1. Charlene Richardson on September 3, 2011 at 10:45 pm

    Thank you.  I have been trying to get this to work for a week.  This fixed my problem!

    • Reid Walley on September 4, 2011 at 12:13 am

      Glad to see it worked out, Charlene.

  2. Anonymous on October 15, 2011 at 12:15 pm

    This did not work for me so I simply just  replaced the admin/includes/init_includes/init_sessions.php file of 1.3.9h with the admin/includes/init_includes/init_sessions.php  file from 1.3.9a

    • Reid Walley on October 15, 2011 at 1:33 pm

      Sorry this didn’t work out for you Matzgmb. But glad to see the older 1.3.9a version of init_sessions.php did the job.

Leave a Comment