Zen Cart Logo
If this is your first visit, check our documentation. To post, register or login.
Forums / Code Matters / Bug Reports / [Duplicate] Media Manager Assign to Products no longer working, part II

[Duplicate] Media Manager Assign to Products no longer working, part II

Locked

Started by emmanuhell on 4 Jan 2011, 9:41 AM · Views: 1,756

Results 1 to 3 of 3
This thread is locked. New replies are disabled.
4 Jan 2011, 9:41 AM
#1
emmanuhell avatar

emmanuhell

New Zenner

Join Date:
Jan 2011
Posts:
10
Plugin Contributions:
0

Post #1 by emmanuhell

Hello everybody,
I have the exact same problem decribe by Thirdiphoto in this post:
http://www.zen-cart.com/forum/showthread.php?t=168587&highlight=media+manager

I create my media collection using the tools provided in ZC admin panel.
I upload the .mp3 file to the specified collection (I did specify mp3 as a Media Type before)
I assign the collection to a Music Product Item.
When I click on "add", I get redirected to my ZC admin main page.
When I go back to my media manager, the collection is visible but no product linked......

My settings:
New zen cart, latest version. 1.3.9.h
No major modifications, no templates, no add-ons.
Auto installed by simple scripts on bluehost servers

php editor: Dreamweaver cs5

After reading the solution given by Dr Byte, I opened my init_sessions.php (located in mysite\public_htlm\includes\init_includes)

On line 40, I do not have the same string of code as mentionned by Dr Byte, instead, I have:

$domainPrefix = (!defined('SESSION_ADD_PERIOD_PREFIX') || SESSION_ADD_PERIOD_PREFIX == 'True') ? '.' : '';

I looked around but I was not able able to locate the following code in order to change it:

if (strpos ( $PHP_SELF, FILENAME_PRODUCTS_PRICE_MANAGER ) === FALSE

I looked all over the forums to try to find a solution but I was not successful.
If anyone has a clue to solve our problem, we would really appreciate the help as we are definitely noobs :lookaroun

I use this first post to say a big thank you to all the contributors in this forum: It was really helpful and we were able to put our website online really fast with all the good advices!!:clap:

10 Jan 2011, 10:16 AM
#2
emmanuhell avatar

emmanuhell

New Zenner

Join Date:
Jan 2011
Posts:
10
Plugin Contributions:
0

Post #2 by emmanuhell

Hum...I'm not getting anu answers so far so I'm going to try to be more precise, maybe it will help to trigger some solutions...

A I mention before, we are unable to assign a media collection via the media manager in the admin panel.

I check the size of my demo file to make sure it was below the maximum default size (Configuration/Maximum Values/Maximum size upload file), I even changed it to 512000 to make sure it would take 2048000 mp3 demos...
I checked to make sute the media folder had the right authorizations...
I tried creating different collections and assign them to different Music product with no luck.

I always end up with the following results:
On the admin side: the media collection is created but I cannot link it to the product. As described in first post, when I assign a media collection to a music product, the media manager tells me that the collection is not linked to any product. No matter how many times I try or wich collection/product link I create.
On the User end: In the Music product where I assigned a medi collection via the admin panel/medi manager, : there is a "white rectangle" at the bottom of the page, but it's empty. When I check the property of the box , it's a media manager box... But no collection is linked to it .

I left I product with the rectangle if anyone wants to see by itself: The white rectange is located between the "Select File Type" and "write a review"
http://www.nabi-records.com/index.php?main_page=product_music_info&cPath=3&products_id=4

I'm really a poor noob when it comes to php. I checked as much as I can why the media manager would not link my collection to my products without any success( forums, faq...you name it). I believe the problems is because in the process of assigning a media collection to a product, there is a file somewhere that should be modify by the admin panel manager. I just can seem to find which part of the media manager is not writing/saving correctly the info :frusty:

We really are looking for a solution to this problem :frusty:. If anyone as a clue, we would really appreciate. Sorry for pushing it back on top of the list with this reply but I believed the extra info can be usefull.

Peace

Emmanuhell

PS: Looking in the forum, It seems I'm not the only one encountering this problem... So is this a bug or am I just a sad noob?
http://www.zen-cart.com/forum/showthread.php?t=133333&highlight=media+manager

18 Feb 2011, 10:37 AM
#3
emmanuhell avatar

emmanuhell

New Zenner

Join Date:
Jan 2011
Posts:
10
Plugin Contributions:
0

Post #3 by emmanuhell

Ok: I'm a sad noob :blush:...I did fix my problem by editing my init_sessions.php (located in mysite\public_htlm\includes\init_includes) as mentionned by Dr Byte.:clap:
Before I did not open the right file, that's why I was not able to find the exact match. And yes, it's a bug, so I'm in the right section, that's the only positive point I guess.
Anyways, after editing the code, the media manager did assign the media collection to the products I wanted but when I checked the result it was just terrible :yuck:
The media box layout is just a mess with bad alignement, weird spacings and lag... :frusty:
So, as I need to play demos, can anyone advice me on how to add a simple media player to my product page in order to play a maximum of 10 demos per article.
I'm looking for an alternative solution to a basic flash player as flash is not reccognize on Apple's devices (Another great policy from the Big Apple :lamo:)
Thanks in advance.