WordPress.org

Forums

Quick Paypal Payments
[resolved] Fatal Error (6 posts)

  1. lauramba
    Member
    Posted 2 years ago #

    FATAL ERROR:
    Cannot redeclare current_page_url() (previously declared in /home/yhyeui/public_html/wp-content/themes/kallyas/functions.php:2907) in /home/yhyeui/public_html/wp-content/plugins/quick-paypal-payments/quick-paypal-payments.php on line 127

    I deleted the declaration in line 127 and it worked. I am sure that is not the best approach. Your advice is appreciated.

    http://wordpress.org/extend/plugins/quick-paypal-payments/

  2. aerin
    Member
    Plugin Author

    Posted 2 years ago #

    I can't replicate the error so don't know what to fix. Can you post the URL of your payment page so I can take a look

  3. titanium009
    Member
    Posted 1 year ago #

    Same problem faced. :( I deleted the declaration line on 127. It is activated but will it work perfectly ?

  4. aerin
    Member
    Plugin Author

    Posted 1 year ago #

    I've just realised the problem. The function name is not unique and may be used on other plugins or themes. I fixed it by changing the name to qpp_current_page_url() in the two places it occurs.

    I'll upload an upgrade later today.

  5. titanium009
    Member
    Posted 1 year ago #

    There are two places where urrent_page_url()is used. One time is used in starting point at

    $page_url = current_page_url();

    and next time in the line 127. We have to change to qpp_current_page_url()the both cases right ?

  6. aerin
    Member
    Plugin Author

    Posted 1 year ago #

    That's correct. But if you upgrade to V2.0.4 the bug is fixed

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic