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
Comment #1
bhosmer commentedCan you try this with the latest 7.x-2.x and report back whether this is still happening?
Comment #2
socialnicheguru commentedthis happens to me also and your solution works - place a check for $preset.
Comment #3
travist commentedThis would be an easy patch if anyone wants another commit to the project. ;)
Comment #4
drakythe commentedHm... 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?
Comment #5
burnleyt commentedNo, 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