I'm using PHP create_function to make a lamba-style function whose contents are defined by a heredoc style string. Everything was fine until I moved the code to a Hostgator account. Something about the Hostgator environment is causing the function to completely fail.
It LOOKS like the heredoc is working fine, and the create_function seems to be executing. But when the function itself gets called, it dumps a ton of errors claiming every local variable is undefined! I'm baffled! Anyone seen this before? Here's the code:
Notice: Undefined variable: atts in
/home3/ade207/public_html/wp-content/themes/armstrongparent/lib/shortcodes.php
on line 129
Notice: Undefined variable: col_and_gutter in
/home3/ade207/public_html/wp-content/themes/armstrongparent/lib/shortcodes.php
on line 129
Notice: Undefined variable: gutter in
/home3/ade207/public_html/wp-content/themes/armstrongparent/lib/shortcodes.php
on line 129
Notice: Undefined variable: gutter in
/home3/ade207/public_html/wp-content/themes/armstrongparent/lib/shortcodes.php
on line 131
Notice: Undefined variable: gutter in
/home3/ade207/public_html/wp-content/themes/armstrongparent/lib/shortcodes.php
on line 132
Notice: Undefined variable: gutter in
/home3/ade207/public_html/wp-content/themes/armstrongparent/lib/shortcodes.php
on line 133
Notice: Undefined variable: gutter in
/home3/ade207/public_html/wp-content/themes/armstrongparent/lib/shortcodes.php
on line 134
Notice: Undefined variable: gutter in
/home3/ade207/public_html/wp-content/themes/armstrongparent/lib/shortcodes.php
on line 135
Notice: Undefined variable: gutter in
/home3/ade207/public_html/wp-content/themes/armstrongparent/lib/shortcodes.php
on line 136
Notice: Undefined variable: gutter in
/home3/ade207/public_html/wp-content/themes/armstrongparent/lib/shortcodes.php
on line 139
Notice: Undefined variable: id in
/home3/ade207/public_html/wp-content/themes/armstrongparent/lib/shortcodes.php
on line 139
Notice: Undefined variable: id in
/home3/ade207/public_html/wp-content/themes/armstrongparent/lib/shortcodes.php
on line 139
Notice: Undefined variable: id in
/home3/ade207/public_html/wp-content/themes/armstrongparent/lib/shortcodes.php
on line 140
Notice: Undefined variable: style in
/home3/ade207/public_html/wp-content/themes/armstrongparent/lib/shortcodes.php
on line 140
Notice: Undefined variable: style in
/home3/ade207/public_html/wp-content/themes/armstrongparent/lib/shortcodes.php
on line 140
Notice: Undefined variable: style in
/home3/ade207/public_html/wp-content/themes/armstrongparent/lib/shortcodes.php
on line 141
Notice: Undefined variable: returnval in
/home3/ade207/public_html/wp-content/themes/armstrongparent/lib/shortcodes.php
on line 141
Notice: Undefined variable: id in
/home3/ade207/public_html/wp-content/themes/armstrongparent/lib/shortcodes.php
on line 141
Notice: Undefined variable: style in
/home3/ade207/public_html/wp-content/themes/armstrongparent/lib/shortcodes.php
on line 141
Notice: Undefined variable: col_and_gutter in
/home3/ade207/public_html/wp-content/themes/armstrongparent/lib/shortcodes.php
on line 141
Notice: Undefined variable: gutter in
/home3/ade207/public_html/wp-content/themes/armstrongparent/lib/shortcodes.php
on line 141
Notice: Undefined variable: class in
/home3/ade207/public_html/wp-content/themes/armstrongparent/lib/shortcodes.php
on line 142
Notice: Undefined variable: returnval in
/home3/ade207/public_html/wp-content/themes/armstrongparent/lib/shortcodes.php
on line 142
Notice: Undefined variable: content in
/home3/ade207/public_html/wp-content/themes/armstrongparent/lib/shortcodes.php
on line 143
Notice: Undefined variable: returnval in
/home3/ade207/public_html/wp-content/themes/armstrongparent/lib/shortcodes.php
on line 144
Notice: Undefined variable: returnval in
/home3/ade207/public_html/wp-content/themes/armstrongparent/lib/shortcodes.php
on line 145
Parse error: syntax error, unexpected ')' in
/home3/ade207/public_html/wp-content/themes/armstrongparent/lib/shortcodes.php(148)
: runtime-created function on line 1