I think this problem is best illustrated by a screenshot (attached).

I think I've hunted it down to the fact that the playerPath is pointing to the images in CSS via:
"/sites/all/modules/mediafront/players/osmplayer/player/jquery-ui/css/smoothness/images/ui-icons_222222_256x240.png"

And when converted to a full path, it points to "http://domain/*above path*" and unless my site is being accessed through the domain (say, if it's accessed via http://domain/site/here), it won't work (i.e. if I'm working on a dev server such as using XAMPP on Localhost, it will point to the wrong place).

CommentFileSizeAuthor
mediafront_player_bug.png453.76 KBTahitiPetey

Comments

tinarey’s picture

+1 same here. Couldn't find the file that defines the path yet...

travist’s picture

Go to your preset, and resave the preset. I changed the way the images are found and the way to correct is to either resave your preset, or simply run the update script.

Please let me know if this fixes your issue.

travist’s picture

Actually, you must run the update script after updating. This should correct all image path issues.

Thanks,

Travis.

tinarey’s picture

Didn't work for me... I always run update.php directly after updating a module and I resaved my preset after that (and after putting my ThemeRoller themes back in, but it didn't make a difference since the included themes don't work either). I've also tried reinstalling via Devel and resaving the preset – didn't work either.
Would I have a chance with manually deinstalling Mediafront (including db) and reinstalling? (Just don't have the time to try atm)

travist’s picture

Try creating a new preset and see if that works first. Please let me know if you create a new preset, if the images still refuse to show... if so, then I may need to debug this with a similar environment you are on.

tinarey’s picture

New preset didn't work either... (I'm on localhost and the path is missing the subfolder as stated above).
Let me know if I can help you with debugging somehow.

hatsch’s picture

i have the same issue.
mediafront seems to use full filesystem paths instead of relatives to the drupal dir.

greetings
ste

travist’s picture

So, is everyone who is having issues on XAMPP? I cannot reproduce this issue on any of my environments.

pixelsweatshop’s picture

Having same issue on a dev server and not local.

tinarey’s picture

I'm on OSX using Mamp. If I find some time, I'll try upgrading with some fresh installations and/or in the Acquia environment.

TJM’s picture

I am having the same problem on my Wamp 2.1 server with Drupal 7. The icons are missing. It all works OK, if I click where the icons should be located. It does not seem to be just the Xampp server.

hatsch’s picture

i am using a LAMP stack with PHP 5.2
and i am on drupal 6. so it happens when upgrading vom 6.x-1.1 to 6.x-1.2

my sites directory is a symlink to another dir ( maybe that has something to do)

it's a very similar bug i've encounterd with beta3
https://drupal.org/node/843310#comment-3162724

nitebreed’s picture

Having the same error when upgrading from 6.x-1.1 to 6.x-1.2

travist’s picture

What browser is everyone seeing this in?

pixelsweatshop’s picture

FF, Chrome, Safari and IE

See http://216.172.182.60/~lifering/videos for a live view of an affected site.

travist’s picture

Ok, so I think I see a common trend here.... does everyone have their Drupal install in a subdirectory from webroot? If so, then I think I know what may be causing this problem.

tinarey’s picture

For me, yes subdirectory.

travist’s picture

Status: Active » Needs review

Alright... so I think I have a fix for this. It is certainly due to the drupal install being within a subdirectory, which luckily is not a high use case. Regardless, this is fixed in the latest DEV version, which should be built tomorrow. Please give it a try tomorrow and let me know if it works. If so, then I will do a new release shortly.

Thanks,

Travis.

rayvan’s picture

Please correct this on 6.x version too. I'm also using on subdir and its buggy.

sailoog’s picture

same issue fixed (drupal in subdirectory) in 6.x with dev version,
but now do not load the playlist.

I have a preset with

Default Playlist: http://xxx.cat/drupal/playlist.xml

and a block with:

print mediafront_get_player('graella');
print mediafront_get_player('graella_playlist');

worked fine before

travist’s picture

sailoog,

Are you saying that after you upgraded to the 6.x-dev version, that your player broke? I really would like to get to the bottom of that if so.

Thanks,

Travis.

sailoog’s picture

(sorry my english is not very good)
Yes, my steps were:

- Mediafront working perfectly in a drupal 6 in subdirectory. In home i have a player "graella" and a separate playlist "graella_playlist" with Default Playlist: http://xxx.cat/drupal/playlist.xml
- Upsate to 6.x-1.2 (2011-Sep-17) and icons and images disappear
- Update to 6.x-1.x-dev (2011-set-22) and 6.x-1.x-dev (2011-set-26) and icons appear but don't load the playlist.
Cache deleted and presets re-saved

acarpio’s picture

I'm having same issue on dev 7.x after set. 25 updates (including sept 26).:
- Buttons appear now, but the playlist is not loaded anymore (that's on a view and using a drupal installation in subdirectory). If I go back to media front previous to sept. 25 updates, then the playlist is loaded but -of course- no buttons.

Let me know if there is any other information I could provide.

travist’s picture

Sorry for the delay on getting to this, but I am pretty certain I found the cause for this and it is now fixed. I just updated the DEV versions for both 6.x and 7.x, which should be available tomorrow.

Please test, and if all is well, I will release a new stable version soon.

Thanks guys.

Travis.

acarpio’s picture

Last Sept. 28 7.x dev fixes both issues: now buttons appear and so do playlist. As far as I have checked everything works as expected.

Great work Travis, thanks so much.

TahitiPetey’s picture

I have updated to the 7.x-1 Dev and I'm not seeing the fixes for the buttons at all. I've cleared the cache, ran updates.php, but nothing. Do I have to delete & recreate presets for the problem to be fixed?

sailoog’s picture

subscribe

Last Sept. 28 6.x dev fixes both issues: now buttons appear and so do playlist. As far as I have checked everything works as expected.

Great work Travis, thanks so much.

sailoog’s picture

only re-save presets

tinarey’s picture

works for me, thanks a ton!

travist’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

Anonymous’s picture

Issue summary: View changes

Fixing some spelling + expanding explanation a bit.