WordPress.org

Forums

WP-Invoice - Web Invoice and Billing
Fatal Error with latest PHP 5 (9 posts)

  1. brightthings
    Member
    Posted 3 years ago #

    Plugin won't activate because of PHP 5 changes (?):

    Fatal error: Call-time pass-by-reference has been removed in [..] wp-content\plugins\wp-invoice\core\wpi_invoice.php on line 243

    Could be to do with changes in PHP 5
    For example, use:

    // Right way!
    function myFunc(&$arg) { }
    myFunc($var);
    Rather than:

    // Wrong way!
    function myFunc($arg) { }
    myFunc(&$arg);

    http://wordpress.org/extend/plugins/wp-invoice/

  2. Anton Korotkoff
    WP-Invoice Support
    Plugin Contributor

    Posted 3 years ago #

    What version of PHP 5 do you actually use?

  3. Michael Macliver
    Member
    Posted 2 years ago #

    I have exactly the same error.

    Created a fresh site (WAMP environment) with wp-invoice the only added plugin but got the same error.

    Using PHP 5.4.3

  4. Rich Senior
    Member
    Posted 2 years ago #

    I am getting exactly the same error also.

    PHP 5.4.4 MAMP setup.

  5. kraket3
    Member
    Posted 2 years ago #

    I'm getting the same error. Any fix?

  6. esan
    Member
    Posted 2 years ago #

    i just remove symbol '&' in line 243 and 312.

    the PHP code not valid for PHP 5.

    So its can be activated now.

  7. joym
    Member
    Posted 2 years ago #

    Same error, any fixes?

  8. ntrast
    Member
    Posted 2 years ago #

    The error is still there. Just installed a fresh WP with WP-Invoice only and got "Fatal error: Call-time pass-by-reference has been removed in /var/www/development/htdocs/wp-content/plugins/wp-invoice/core/wpi_invoice.php on line 243" while activating.

    This is a LAMP system with PHP 5.4.11. Please fix your code.

  9. Anton Korotkoff
    WP-Invoice Support
    Plugin Contributor

    Posted 2 years ago #

    That should be fixed in last version. Please try upgrading.

    Thanks.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WP-Invoice - Web Invoice and Billing
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags