Support » Plugin: BibleGateway VOTD » unexpected T_PAAMAYIM_NEKUDOTAYIM in bible-votd.php on line 225

  • Resolved fabyouless


    I was forced to upgrade from WordPress version 3.8.1 to 4.2.2 due to eroneous introduction of wp_json_encode… I was unable to access anything on the Dashboard. The now upgraded self-hosted WordPress displayed all pages correctly.

    After upgrading the plugin to version 3.3, every page loaded gives the following error:
    Parse error: syntax error, unexpected T_PAAMAYIM_NEKUDOTAYIM in <em>{...}</em>\wp-content\plugins\biblegateway-votd\bible-votd.php on line 225

    Here is line 225 from my currently installed version on our self-hosted site:

    jQuery(document).ready(function(b){var a=<?php echo json_encode( $this::$instances ); ?>;b.each(a,function(d,c){b.getJSON("",{format:"json",version:c},function(f){if("undefined"!=typeof f.error){return true;}var e=f.votd;b("div#biblegateway-votd-"+d).html(e.text+' — <a href="'+e.permalink+'">'+e.reference+"</a>."+("undefined"!=typeof e.audiolink &&""!=e.audiolink?' <a href="'+e.audiolink+'" title="Listen to chapter"><img width="13" height="12" src="" alt="Listen to chapter" /></a>':"")+' <a href="'+e.copyrightlink+'">'+e.copyright.replace(/\.+$/,"")+'</a>. Powered by <a href=""></a>.');});});});

    A quick googling leads me to ask, what’s wrong with $this::$instances in the call to json_encode()?

    Or is somthing else going on that needs to be addressed?

Viewing 1 replies (of 1 total)
  • Plugin Author DZ


    This issue should be resolved with the 3.4 release of the plugin (available May 14, 2015).

    Let me know if any other issue occur.

Viewing 1 replies (of 1 total)
  • The topic ‘unexpected T_PAAMAYIM_NEKUDOTAYIM in bible-votd.php on line 225’ is closed to new replies.