• Tony

    (@tmalonemktg)


    I just updated wp-invoice from version 3.09.6 to 3.10.0. As soon as the update completed, the entire website crashed showing the error message:

    Parse error: syntax error, unexpected T_STRING in /home/content/59/5800659/html/wp-content/plugins/wp-invoice/wp-invoice.php on line 161

    Please assist.

    https://www.ads-software.com/plugins/wp-invoice/

Viewing 11 replies - 1 through 11 (of 11 total)
  • I have the same issue on my server running PHP 5.4.38. My localhost works fine running PHP 5.5.20.

    Thread Starter Tony

    (@tmalonemktg)

    Yeah fetchdesigns,

    I just re-installed 3.09.6 and everything went back to normal.

    Same problem here. Upgrading to PHP 5.5 didn’t help.
    Parse error: syntax error, unexpected T_STRING in /home/… …/wp-content/plugins/wp-invoice/wp-invoice.php on line 161

    And this is lines 160 and 161:

    //** Preload WPLT */
          new \UsabilityDynamics\WPLT\Bootstrap();

    Also, anyone having the same problem and needing an older version (as I did) can find them here:
    https://github.com/wp-plugins/wp-invoice/releases

    Plugin Contributor Anton Korotkoff

    (@anton-korotkoff)

    Try changing to

    $wplt = new \UsabilityDynamics\WPLT\Bootstrap();

    Thanks Anton, but that didn’t fix it for me.
    Does that slash syntax conflict with older versions of PHP?

    Plugin Contributor Anton Korotkoff

    (@anton-korotkoff)

    This code should work since php 5.3. I think there is some setting in your setup that is not compatible with namespaces feature we started to use. Please make sure your php supports namespaces. We are trying to figure out why some people get this error.

    Plugin Contributor Anton Korotkoff

    (@anton-korotkoff)

    Ok, I bet you are using PHP lower than 5.3

    PHP 5.3 is a minimum for WP-Invoice >= 3.10.0

    I’m running PHP Version 5.4. I tried Anton’s recommendation to change line 161 to $wplt = new \UsabilityDynamics\WPLT\Bootstrap(); and, like jimmerd, it didn’t work for me.

    So, I downloaded WP-Invoice version 3.9 and uploaded it to my website. That worked! So, I deleted 3.10.

    If you need a copy of 3.9, you can get it here:
    https://github.com/wp-plugins/wp-invoice/releases

    Plugin Contributor MariaKravchenko

    (@mariakravchenko)

    @ricksamara Please read this article. It can be that you didn’t update version of php – https://github.com/cakephp/debug_kit/issues/142

    Thanks Maria, but that looks a bit too technical for me! Plus, I’m effectively using the older 3.9 version now. In fact, I just created two invoices earlier this evening. This plugin is simply fantastic!!! I’m sure the development team will find and fix the bugs in WP-Invoice. Thanks so much for all that you do!

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘Update to 3.10.0 crashed my website’ is closed to new replies.