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
Thank you. I have been trying to get this to work for a week. This fixed my problem!
Glad to see it worked out, Charlene.
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
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.