Community Forums

Discuss, share and get help from our community of friendly WHMCS users

Close
Login to Your Account
Results 1 to 12 of 12
  1. #1
    Join Date
    Feb 2008
    Posts
    11

    Default PHP warning on Payment Gateway Page with OfflineCC Module

    Hi,

    When accessing the payment portals the error occurs.

    -----------
    Oops!
    Something went wrong and we couldn't process your request.
    Please go back to the previous page and try again.
    -----------

    After activating the debug the information appears:

    ===========
    exception 'Whoops\Exception\ErrorException' with message 'call_user_func() expects parameter 1 to be a valid callback, function 'epath_activate' not found or invalid function name' in /home/edvan/www/dev/admin/configgateways.php:0
    Stack trace:
    #0 /home/edvan/www/dev/admin/configgateways.php(0): Whoops\Run->handleError(2, 'call_user_func(...', '/home/edvan/www...', 0, Array)
    #1 {main}
    ===========

    I removed the file epath.php ( /modules/gateways/ ) and the problem persisted but the message was modified.


    ===========
    Oops!
    Something went wrong and we couldn't process your request.
    Please go back to the previous page and try again.

    exception 'Whoops\Exception\ErrorException' with message 'Cannot use a scalar value as an array' in /home/edvan/www/dev/admin/configgateways.php:0
    Stack trace:
    #0 /home/edvan/www/dev/admin/configgateways.php(0): Whoops\Run->handleError(2, 'Cannot use a sc...', '/home/edvan/www...', 0, Array)
    #1 {main}
    ===========

    I noticed that the fault was in the files and exits by removing one by one, until I found the problem in the file offlinecc.php

    I removed the file (offlinecc.php) and the problem was resolved.

  2. #2
    Join Date
    Jul 2013
    Posts
    568

    Default Re: Bug - 7.2 (RC1)

    Hello Edvan,

    Can you confirm what error level you set in general settings? As a general rule we don't recommend displaying warnings unless you are working on custom development in a specific area. I was not able to reproduce the issue you are having. Since you have a ticket open for this, please provide our support team access so we can look to reproduce this and identify if there are things we can improve going forward.

    Have a great day.

    Nate C
    WHMCompleteSolution
    The Complete Client Management, Billing & Support Solution
    www.whmcs.com

  3. #3
    Join Date
    Feb 2008
    Posts
    11

    Default Re: Bug - 7.2 (RC1)

    PHP Error Reporting Level= None http://prntscr.com/f4skzc

  4. #4
    Join Date
    Feb 2008
    Posts
    11

    Default Re: Bug - 7.2 (RC1)


  5. #5
    Join Date
    Jun 2009
    Location
    Sheffield, UK
    Posts
    8,565

    Default Re: Bug - 7.2 (RC1)

    Hi edvancombr,

    Thanks for providing those screenshots. I can only reproduce this behaviour with the error reporting setting at maximum (ie. Errors and Warnings) which is expected.

    Could you please let me know your error_reporting and display_errors values (both local and global) from the Utilities > system > PHPInfo page?
    WHMCompleteSolution
    The Complete Client Management, Billing & Support System
    www.whmcs.com

  6. #6
    Join Date
    Feb 2008
    Posts
    11

    Default Re: Bug - 7.2 (RC1)

    error_reporting 22519 22519
    display_errors Off Off

  7. #7
    Join Date
    Jun 2009
    Location
    Sheffield, UK
    Posts
    8,565

    Default Re: Bug - 7.2 (RC1)

    Hi,
    Thank you for providing that information.

    An error_reporting level of 22519 explains why you're seeing a PHP Warning being displayed - that reporting level would output warnings.
    However with the PHP Error Reporting Level setting at "None" I would expect the value to be 0.

    Do you perhaps have anything in your WHMCS configuration.php file or a local php.ini file which might be changing this PHP configuration value?
    WHMCompleteSolution
    The Complete Client Management, Billing & Support System
    www.whmcs.com

  8. #8
    Join Date
    Feb 2008
    Posts
    11

    Default Re: Bug - 7.2 (RC1)

    Quote Originally Posted by WHMCS John View Post
    Hi,
    Thank you for providing that information.

    An error_reporting level of 22519 explains why you're seeing a PHP Warning being displayed - that reporting level would output warnings.
    However with the PHP Error Reporting Level setting at "None" I would expect the value to be 0.

    Do you perhaps have anything in your WHMCS configuration.php file or a local php.ini file which might be changing this PHP configuration value?
    I passed the wrong information, the value is 0.

    See http://nimb.ws/51Ik2C

  9. #9
    Join Date
    Jul 2013
    Posts
    13

    Default Re: PHP warning on Payment Gateway Page with OfflineCC Module

    same problem here . ticket . #SOR-913935 - error client area after update to 7.2

  10. #10
    Join Date
    Apr 2015
    Posts
    4

    Default Re: PHP warning on Payment Gateway Page with OfflineCC Module

    I'm having exactly the same problem. But he began suddenly, for no apparent reason.

    exception 'Whoops\Exception\ErrorException' with message 'Cannot use a scalar value as an array' in configgateways.php:0
    Stack trace:
    #0 /home/painelhost/public_html/admin/configgateways.php(0): Whoops\Run->handleError(2, 'Cannot use a sc...', '/home/painelhos...', 0, Array)
    #1 {main}

  11. #11
    Join Date
    Apr 2017
    Posts
    1

    Default Re: PHP warning on Payment Gateway Page with OfflineCC Module

    Has anyone found a solution for this problem?

  12. #12
    Join Date
    Apr 2015
    Posts
    4

    Default Re: PHP warning on Payment Gateway Page with OfflineCC Module

    Quote Originally Posted by lynaun View Post
    Has anyone found a solution for this problem?
    I solved by disabling some payment gateways.

Similar Threads

  1. Replies: 4
    Last Post: 10-13-16, 06:12 AM
  2. Replies: 0
    Last Post: 02-23-16, 02:19 PM
  3. Replies: 4
    Last Post: 02-05-10, 01:09 PM
  4. Replies: 3
    Last Post: 04-22-08, 08:40 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •