PHP files decoded from IonCube Loader don't work

Discussion in 'PHP' started by joliett89, May 3, 2013.

  1. #1
    I have a Wordpress plugin consisting of 12 files, and after decoding them with http://ioncube-decoder.no-ip.org/ most of them don't work; I think that the decoder works fine etc. These are the particular errors that I get after checking the files with
    http://www.meandeviation.com/tutorials/learnphp/php-syntax-check/v4/syntax-check.php

    1) Parse error: syntax error, unexpected ';' in wpt.php on line 569
    569: $state = ; (this is the line and its contents)

    2) Parse error: syntax error, unexpected ';' in wpt_feeds.php on line 512
    512: $wptMessage = ;

    3) Parse error: syntax error, unexpected '[' in wpt_feeds_spec.php on line 259
    259: $seconds = explode( ':', (bool)$videoInfo->duree )[1];

    4) Parse error: syntax error, unexpected ';' in wpt_image.php on line 158
    158: $etag = ;

    5) Parse error: syntax error, unexpected ';' in wpt_rewriter.php on line 27
    27: $wptError = ;

    6) Parse error: syntax error, unexpected ';' in wpt_settings.php on line 26
    26: $wptMessage = ;

    7) Parse error: syntax error, unexpected ';' in wpt_utils.php on line 386
    386: $contentId = ;

    8) Parse error: syntax error, unexpected ';' in wpt_views.php on line 27
    27: $wptError = ;

    Parse error: syntax error, unexpected ';' in wpt_widget.php on line 362
    362: $wptMessage = ;

    Is there any way to figure out whats going on and how to get it to work. Is it possible that the files need to be encoded in order for the plugin to work?

    Thank you.
     
    joliett89, May 3, 2013 IP
  2. gvre

    gvre Member

    Messages:
    35
    Likes Received:
    6
    Best Answers:
    3
    Trophy Points:
    33
    #2
    3) Array dereferencing needs php 5.5. Replace with the following:
    $_ = explode(':', $videoInfo->duree);
    $seconds = isset($_[1]) ? $_[1] : null;

    1-8 (except 3)) You should pass an rvalue to the assignments. e.g. $wptMessage = '';
     
    gvre, May 4, 2013 IP
  3. Code Developer

    Code Developer Active Member

    Messages:
    48
    Likes Received:
    2
    Best Answers:
    2
    Trophy Points:
    58
    #3
    It needs debug.
     
    Code Developer, May 5, 2013 IP