BuddyBoss Home – Web Support Forums Themes Boss. theme theme-functions.php on line 154

Viewing 14 posts - 1 through 14 (of 14 total)
  • Question

    #35950
    @jcolk

    Howdy, I just purchased Boss. and I am attempting to install, but am getting an error relating to

    Parse error: syntax error, unexpected T_FUNCTION in wp-content/themes/boss-2/buddyboss-inc/theme-functions.php on line 154

    Answers

    #35951
    @jcolk

    That line reads $using = array_unique(array_filter($using, function($var){return !is_null($var);} ));

    #35952

    Try re-uploading a fresh, unpacked, copy of the theme’s folder to wp-content/themes using FTP or whatever file management application your host provides. Are you getting this with the parent or child theme activated ?

    #35963
    @jcolk

    this would be the parent…trying this now…after a fresh install, I pretty much get a blank page. The contents are unpacked to /themes/boss/ and I have activated them in the WP Dashboard. Once I do this, the site does not come up:

    http://codezebra.umanon.com as example
    http://codeelephant.umanon.com is another
    Parse error: syntax error, unexpected T_FUNCTION in /home/umanon/public_html/codeelephant/wp-content/themes/boss/buddyboss-inc/theme-functions.php on line 154

    #35965
    @jcolk

    I will eventually install to umanon.com – which codezebra.umanon.com is a clone of. However, I wanted to mess with the settings and colors and plugins first before putting it into a live environment

    #35980
    @jcolk

    Definitely didn’t work with both fresh install and a clone of live environment.

    #35982

    @tjchester See above “Parse error: syntax error, unexpected T_FUNCTION in wp-content/themes/boss-2/buddyboss-inc/theme-functions.php on line 154 “

    #35983
    @style960

    @jcolk TJ can clarify, but I’d check the PHP version your host is using. I don’t see this on 5.3.28. Put this in an empty .php file, save and name as anything you like, upload it, and navigate to it through your browser – page returned will display your hosts current version & environment:

    <?php phpinfo() ?>

    #35984
    @jcolk

    @style960 checking this now

    #35985
    @jcolk

    5.2.17 – so the PHP needs to be upgraded! Thank you, let me contact my host!

    #35986
    @style960

    Worth a try 🙂

    #35988
    @jcolk

    that worked perfectly!

    #35991

    Thanks @style960 i did not even see his php was out of date

    #36000

    Alyssa
    Participant
    @alyssa-buddyboss

    Thanks Paul.


    @jcolk
    it appears we can disregard the email 🙂

Viewing 14 posts - 1 through 14 (of 14 total)
  • The question ‘theme-functions.php on line 154’ is closed to new replies.