I decided to setup a new site to play in and I added the latest dev however as soon as I activiated the module I started getting a:

Notice: Undefined variable: mediafront in mediafront_token_info() (line 736 of /htdocs/sites/all/modules/mediafront/mediafront.module).

As soon as I created a preset the notice went away. I am thinking a simple check to see if presets exist is in order and if no presets exist exit the function is the cleanest way to deal with this but I didn't want to make a patch in case someone had a better idea.

What does everyone think?

Comments

bhosmer’s picture

Status: Active » Postponed

Can you try this with the latest 7.x-2.x and report back whether this is still happening?

socialnicheguru’s picture

this happens to me also and your solution works - place a check for $preset.

travist’s picture

This would be an easy patch if anyone wants another commit to the project. ;)

drakythe’s picture

Hm... I just spun up a new site on my development VM, installed the dev of MediaFront and I get no errors.

I also tried the git repo, again, no errors. Was this fixed between december and now?

burnleyt’s picture

No, it is not fixed yet. I just got the same error. But different file structure mine was line 736 of sites/all/modules/mediafront/mediafront.module