• Resolved LeTouffu

    (@letouffu)


    Using plugin versions : 2.1.6 or 2.1.8 I get the same syntax error on activation under host free.fr.
    Note Free does not allow other install than from zip file. The plugin installs without problem but fails with:

    Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in /mnt/102/sda/7/6/dario.ciprut/MonBlog/wp-content/plugins/wp-clone-by-wp-academy/lib/functions.php on line 506

    on every activation attempt.
    Apparently the functions.php is syntactically correct, since the plugin works on other sites an it fails on an innocuous is_dir($source) check ! Since it is a syntax error, it cannot be dependent on execution time filesystemm data.

    Please help.

    https://www.ads-software.com/plugins/wp-clone-by-wp-academy/

Viewing 1 replies (of 1 total)
  • Thread Starter LeTouffu

    (@letouffu)

    Sorry. It’s not directly related to a WPClone issue. In fact Free PHP level 5.3.1.RC4 apparently has a bug supporting Heredoc and two WPClone backup functions make use of:

    echo >>>EOT

    EOT;

    resulting in syntax error. Changing those lines to individual echo statements temparily resolve the issue. However WPclone is advertised as supporting WP 3.0+ and I did not find a mention of this PHP bug.

    I would have found the problem earlier if line numbers mentioned in tthe PHP error messages would be correct, bu I could not manage to get correct numbers even if deleting blank source lines and useless comments.

Viewing 1 replies (of 1 total)
  • The topic ‘Fatal syntax error on activation’ is closed to new replies.