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

  • Resolved fabyouless

    (@fabyouless)



    PREAMBLE
    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.

    ISSUE
    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("http://www.biblegateway.com/votd/get?callback=?",{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="http://www.biblegateway.com/resources/audio/images/sound.gif" alt="Listen to chapter" /></a>':"")+' <a href="'+e.copyrightlink+'">'+e.copyright.replace(/\.+$/,"")+'</a>. Powered by <a href="http://www.biblegateway.com/">BibleGateway.com</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?

    https://wordpress.org/plugins/biblegateway-votd/

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

    (@dzaikos)

    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.