I setup a local site but when I goto it I get this error Uncaught SyntaxError: Unexpected token < which brings me to this line of code:
<script type="text/javascript">
pepsiMedia.loadConfig(<?= json_encode($this->config) ?>);
$(document).ready(pepsiMedia.ready);
</script>
I am assuming it has something to do with the json_encode or my PHP version, what can I do to fix this?
I am bit hesitant about showing what $this->config is as it has sensitive information, let me know if you need it and I will try to recreate it without sensitive information.
short_open_tag? Before 5.4.0, the<?= ... ?>shorthand requires it, although it should be enabled by default.<?=is working on your system and the PHP code is actually being executed?