Support » Plugin: Paytm - Donation Plugin » Prevent fatal error when use separate plugin which also uses PayTM API

  • Resolved Ravinder Kumar

    (@ravinderk)


    Hi,

    can we load library conditionally to prevent fatal error?

    require_once(dirname(__FILE__) . '/encdec_paytm.php');

    change to

    if( ! function_exists( 'sanitizedParam' ) ) {
       require_once(dirname(__FILE__) . '/encdec_paytm.php');;
    }
    
Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi,

    I also got PHP notice when activating the plugin.

    [12-Apr-2018 05:24:53 UTC] PHP Notice:  Undefined index: donation_msg in /app/public/wp-content/plugins/wp-paytm-pay/wp-paytm-pay.php on line 23
    [12-Apr-2018 05:24:53 UTC] PHP Stack trace:
    [12-Apr-2018 05:24:53 UTC] PHP   1. {main}() /app/public/wp-admin/plugins.php:0
    [12-Apr-2018 05:24:53 UTC] PHP   2. require_once() /app/public/wp-admin/plugins.php:10
    [12-Apr-2018 05:24:53 UTC] PHP   3. require_once() /app/public/wp-admin/admin.php:31
    [12-Apr-2018 05:24:53 UTC] PHP   4. require_once() /app/public/wp-load.php:37
    [12-Apr-2018 05:24:53 UTC] PHP   5. require_once() /app/public/wp-config.php:88
    [12-Apr-2018 05:24:53 UTC] PHP   6. include_once() /app/public/wp-settings.php:305
    
    Plugin Author mariaaspen

    (@mariaaspen)

    Hi Ravinder,

    I have check and update as soon as possible

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Prevent fatal error when use separate plugin which also uses PayTM API’ is closed to new replies.