PHP 7 Support
-
The plugin works if I use the shortcode but when I use this code
<?php/* Template Name: Custom Redirect */ $userInfo = geoip_detect2_get_info_from_current_ip(); var_dump(get_object_vars($userInfo)); if ($userInfo->country->isoCode == 'de') echo 'Hallo! Sch?n dass Sie hier sind!'; endif;
in my php template file I receive the following output
country->isoCode == ‘de’) echo ‘Hallo! Sch?n dass Sie hier sind!’; endif;
Apparently the php tag is getting closed after parsing “->”. Also no output of the variable dump any idea what could be wrong. I am using PHP 7 and nginx server. I suspect that could be the problem but then the shortcode works fine. Any help appreciated thanks
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘PHP 7 Support’ is closed to new replies.