WordPress.org

Ready to get started?Download WordPress

Forums

ProPlayer
Can't activate. Get parsing error. (7 posts)

  1. MTPrower
    Member
    Posted 2 years ago #

    When I try to activate this plugin, I get:

    "Parse error: syntax error, unexpected T_STRING, expecting '(' in /home/username/public_html/wp-content/plugins/proplayer/playlist-controller.php on line 2"

    Even if I deactivate the plugins, I get this.

    http://wordpress.org/extend/plugins/proplayer/

  2. Wet T-shirt Blog
    Member
    Posted 2 years ago #

    Me too, please correct this ASAP...
    My blog needs this plugin.

  3. angraf
    Member
    Posted 2 years ago #

    overide line 2 - 6 in playlist-controller.php with this code

    if (file_exists(dirname(dirname(dirname(dirname(__FILE__))))) . "/wp-config.php") {
          require_once dirname(dirname(dirname(dirname(__FILE__)))) . "/wp-config.php";
       } else {
          require_once dirname(dirname(dirname(dirname(dirname(__FILE__))))) . "/wp-config.php";
       }

    the programmer have many bugs in this file

  4. Wet T-shirt Blog
    Member
    Posted 2 years ago #

    SOLVED:
    Edit the playlist-controller.php and change this
    `if file_exists(dirname(dirname(dirname(dirname(__FILE__))))) . "/wp-config.php") {
    require_once dirname(dirname(dirname(dirname(__FILE__)))) . "/wp-config.php";
    } else {
    require_once dirname(dirname(dirname(dirname(dirname(__FILE__))))) . "/wp-config.php"
    }`

    by this
    `if <strong>(</strong>file_exists(dirname(dirname(dirname(dirname(__FILE__))))) . "/wp-config.php") {
    require_once dirname(dirname(dirname(dirname(__FILE__)))) . "/wp-config.php";
    } else {
    require_once dirname(dirname(dirname(dirname(dirname(__FILE__))))) . "/wp-config.php"<strong>;</strong>
    }
    `

  5. Wet T-shirt Blog
    Member
    Posted 2 years ago #

    Thanks angraf we solve the problem at same time.. but your post look better than mine.

  6. isa.goksu
    Member
    Plugin Author

    Posted 2 years ago #

    Sorry folks, I forgot that semicolon there.. Fixed on new version..

  7. MTPrower
    Member
    Posted 2 years ago #

    It works now. Been messing with it this morning.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags