Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Warning min() Balance sheet and P/L
10-30-2013, 11:17 PM
Post: #1
Star Warning min() Balance sheet and P/L
Hello Buddies,

Thanks for the new versionHeart, how can these warning messages be worked on ? They appear when making a General Ledger Account Inquiry on both P/L and Balance sheet.


Warning: min(): When only one parameter is given, it must be an array in /home/admin/public_html/ptl/GLAccountInquiry.php on line 24

Warning: max(): When only one parameter is given, it must be an array in /home/admin/public_html/ptl/GLAccountInquiry.php on line 25


Thanks a lot for your help.
Find all posts by this user
Quote this message in a reply
11-02-2013, 07:28 AM
Post: #2
RE: Warning min() Balance sheet and P/L
Hi Jo,

Go to the file config.php and look to see that you have a line

Code:
error_reporting (E_ALL & ~E_NOTICE);

towards the bottom - these warnings can be ignored.
I have changed line 19 of GLAccountInquiry.php to

Code:
$SelectedPeriod = array($_GET['Period']);

which should remove the warning

Phil Daintree
webERP Admin
Logic Works Ltd
http://www.logicworks.co.nz
Visit this user's website Find all posts by this user
Quote this message in a reply
11-05-2013, 12:32 AM
Post: #3
RE: Warning min() Balance sheet and P/L
Thanks so much phil, It worked like charm.
For those who can't locate the config.php file its also named as the index.php in your install folderHeart

(11-02-2013 07:28 AM)phil Wrote:  Hi Jo,

Go to the file config.php and look to see that you have a line

Code:
error_reporting (E_ALL & ~E_NOTICE);

towards the bottom - these warnings can be ignored.
I have changed line 19 of GLAccountInquiry.php to

Code:
$SelectedPeriod = array($_GET['Period']);

which should remove the warning
Find all posts by this user
Quote this message in a reply
11-07-2013, 05:39 PM
Post: #4
RE: Warning min() Balance sheet and P/L
Hi Jo,

Code:
For those who can't locate the config.php file its also named as the index.php in your install folder

Actually that is a different file ... for all installations there must be a file config.php in the main root directory.

Phil Daintree
webERP Admin
Logic Works Ltd
http://www.logicworks.co.nz
Visit this user's website Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)