Topic: under customers, cant add deliveries, general, invoices, orders

Hi,
just upgraded from 2.3.16 to 2.3.24

when I add customer all fine, but after adding I need to add
Contacts for customer,
I select or edit customer I typed while recording first time customer,
it gives error everytime

The contact name cannot be empty

Even I type customer name. surname all fields still giving error and not adding contacts section.
obviously becuase I cant add invoices or general to customer, I cant send email to them.

Is that a bug or am I doing something wrong.
this was working perfectly in previous version.

Re: under customers, cant add deliveries, general, invoices, orders

Please set the variable, $go_debug, in config.php to either 1 or 2 to trap errors.

And report back. This is not a known error.

Joe

3 (edited by apmuthu 01/06/2016 08:33:45 pm)

Re: under customers, cant add deliveries, general, invoices, orders

Take the latest snapshot of FA 2.3.24+ from the official GitHub Repo.

Check the config.php for any changes you might need.

You may need to make changes to your database tables (in your Chart of Accounts) and some IDs (like fiscal year), apart from some AUTO_INCREMENT presets.

The patch code for the file differences between the versions 2.3.16 and v2.3.24+ in sql/en_US-new.sql are:

diff --git "a/sql/en_US-new.sql" "b/sql/en_US-new.sql"

--- a/sql/en_US-new.sql
+++ b/sql/en_US-new.sql
@@ -3,7 +3,7 @@
 -- http://www.phpmyadmin.net
 --
 -- Host: localhost
--- Generation Time: May 11, 2010 at 11:37 PM
+-- Generation Time: Sep 26, 2014 at 11:37 AM
 -- Server version: 5.0.51
 -- PHP Version: 5.2.6-1+lenny2
 
@@ -653,7 +653,8 @@ CREATE TABLE IF NOT EXISTS `0_debtor_trans` (
   `payment_terms` int(11) default NULL,
   PRIMARY KEY  (`type`,`trans_no`),
   KEY `debtor_no` (`debtor_no`,`branch_code`),
-  KEY `tran_date` (`tran_date`)
+  KEY `tran_date` (`tran_date`),
+  KEY `order_` (`order_`)
 ) ENGINE=InnoDB;
 
 --
@@ -755,18 +756,14 @@ CREATE TABLE IF NOT EXISTS `0_fiscal_year` (
   PRIMARY KEY  (`id`),
   UNIQUE KEY `begin` (`begin`),
   UNIQUE KEY `end` (`end`)
-) ENGINE=InnoDB  AUTO_INCREMENT=4 ;
+) ENGINE=InnoDB  AUTO_INCREMENT=3 ;
 
 --
 -- Dumping data for table `0_fiscal_year`
 --
 
-INSERT INTO `0_fiscal_year` VALUES(1, '2008-01-01', '2008-12-31', 0);
-INSERT INTO `0_fiscal_year` VALUES(2, '2009-01-01', '2009-12-31', 0);
-INSERT INTO `0_fiscal_year` VALUES(3, '2010-01-01', '2010-12-31', 0);
-INSERT INTO `0_fiscal_year` VALUES(4, '2011-01-01', '2011-12-31', 0);
-INSERT INTO `0_fiscal_year` VALUES(5, '2012-01-01', '2012-12-31', 0);
-INSERT INTO `0_fiscal_year` VALUES(6, '2013-01-01', '2013-12-31', 0);
+INSERT INTO `0_fiscal_year` VALUES(1, '2013-01-01', '2013-12-31', 0);
+INSERT INTO `0_fiscal_year` VALUES(2, '2014-01-01', '2014-12-31', 0);
 
 --
 -- Table structure for table `0_gl_trans`
@@ -955,7 +952,8 @@ CREATE TABLE IF NOT EXISTS `0_item_units` (
 -- Dumping data for table `0_item_units`
 --
 
-INSERT INTO `0_item_units` VALUES('ea.', 'Each', 0, 0);
+INSERT INTO `0_item_units` VALUES('each', 'Each', 0, 0);
+INSERT INTO `0_item_units` VALUES('hr', 'Hours', 0, 0);
 
 -- --------------------------------------------------------
 
@@ -1559,7 +1557,7 @@ CREATE TABLE IF NOT EXISTS `0_stock_category` (
 INSERT INTO `0_stock_category` VALUES(1, 'Components', 1, 'each', 'B', '4010', '5010', '1510', '5040', '1530', 0, 0, 0, 0);
 INSERT INTO `0_stock_category` VALUES(2, 'Charges', 1, 'each', 'D', '4010', '5010', '1510', '5040', '1530', 0, 0, 0, 0);
 INSERT INTO `0_stock_category` VALUES(3, 'Systems', 1, 'each', 'M', '4010', '5010', '1510', '5040', '1530', 0, 0, 0, 0);
-INSERT INTO `0_stock_category` VALUES(4, 'Services', 1, 'hrs', 'D', '4010', '5010', '1510', '5040', '1530', 0, 0, 0, 0);
+INSERT INTO `0_stock_category` VALUES(4, 'Services', 1, 'hr', 'D', '4010', '5010', '1510', '5040', '1530', 0, 0, 0, 0);
 
 -- --------------------------------------------------------
 
@@ -1790,7 +1788,7 @@ INSERT INTO `0_sys_prefs` VALUES('coy_logo', 'setup.company', 'varchar', 100, ''
 INSERT INTO `0_sys_prefs` VALUES('domicile', 'setup.company', 'varchar', 55, '');
 INSERT INTO `0_sys_prefs` VALUES('curr_default', 'setup.company', 'char', 3, 'USD');
 INSERT INTO `0_sys_prefs` VALUES('use_dimension', 'setup.company', 'tinyint', 1, '1');
-INSERT INTO `0_sys_prefs` VALUES('f_year', 'setup.company', 'int', 11, '6');
+INSERT INTO `0_sys_prefs` VALUES('f_year', 'setup.company', 'int', 11, '2');
 INSERT INTO `0_sys_prefs` VALUES('no_item_list', 'setup.company', 'tinyint', 1, '0');
 INSERT INTO `0_sys_prefs` VALUES('no_customer_list', 'setup.company', 'tinyint', 1, '0');
 INSERT INTO `0_sys_prefs` VALUES('no_supplier_list', 'setup.company', 'tinyint', 1, '0');
@@ -2058,10 +2056,10 @@ CREATE TABLE IF NOT EXISTS `0_users` (
   `show_codes` tinyint(1) NOT NULL default '0',
   `show_hints` tinyint(1) NOT NULL default '0',
   `last_visit_date` datetime default NULL,
-  `query_size` tinyint(1) default '10',
+  `query_size` tinyint(1) unsigned NOT NULL default '10',
   `graphic_links` tinyint(1) default '1',
   `pos` smallint(6) default '1',
-  `print_profile` varchar(30) NOT NULL default '1',
+  `print_profile` varchar(30) NOT NULL default '',
   `rep_popup` tinyint(1) default '1',
   `sticky_doc_date` tinyint(1) default '0',
   `startup_tab` varchar(20) NOT NULL default '',

Re: under customers, cant add deliveries, general, invoices, orders

Hi,
I made $go_debug 1
Where can I see debug log from ?

please see the screen shots that might help.
adding contacts customer section.  https://img42.com/wUcQY
error screen shot.  https://img42.com/K0bsQ

Re: under customers, cant add deliveries, general, invoices, orders

correction for the first post.
I installed a new v2.3.24 version under different domain.
older version still exist in another domain 2.3.16 version one

Re: under customers, cant add deliveries, general, invoices, orders

In your FA folder look for a tmp folder and in it check the errors.log file in a text editor like notepad.

Re: under customers, cant add deliveries, general, invoices, orders

error.log file
[06-Jan-2016 08:04:06 America/Chicago] 0:admin:session.inc:401: include_once(./tmp/faillog.php): failed to open stream: No such file or directory
[06-Jan-2016 08:04:06 America/Chicago] 0:admin:session.inc:401: include_once(): Failed opening './tmp/faillog.php' for inclusion (include_path='.:/opt/php54/lib/php')
[06-Jan-2016 08:04:19 America/Chicago] 0:admin:session.inc:401: include_once(./tmp/faillog.php): failed to open stream: No such file or directory
[06-Jan-2016 08:04:19 America/Chicago] 0:admin:session.inc:401: include_once(): Failed opening './tmp/faillog.php' for inclusion (include_path='.:/opt/php54/lib/php')
[06-Jan-2016 08:04:21 America/Chicago] 0:admin:session.inc:401: include_once(./tmp/faillog.php): failed to open stream: No such file or directory
[06-Jan-2016 08:04:21 America/Chicago] 0:admin:session.inc:401: include_once(): Failed opening './tmp/faillog.php' for inclusion (include_path='.:/opt/php54/lib/php')
[06-Jan-2016 08:06:23 America/Chicago] 0:admin:session.inc:401: include_once(./tmp/faillog.php): failed to open stream: No such file or directory
[06-Jan-2016 08:06:23 America/Chicago] 0:admin:session.inc:401: include_once(): Failed opening './tmp/faillog.php' for inclusion (include_path='.:/opt/php54/lib/php')
[06-Jan-2016 08:06:44 America/Chicago] 0::session.inc:401: include_once(./tmp/faillog.php): failed to open stream: No such file or directory
[06-Jan-2016 08:06:44 America/Chicago] 0::session.inc:401: include_once(): Failed opening './tmp/faillog.php' for inclusion (include_path='.:/opt/php54/lib/php')
[06-Jan-2016 08:06:53 America/Chicago] 0::session.inc:401: include_once(./tmp/faillog.php): failed to open stream: No such file or directory
[06-Jan-2016 08:06:53 America/Chicago] 0::session.inc:401: include_once(): Failed opening './tmp/faillog.php' for inclusion (include_path='.:/opt/php54/lib/php')
[06-Jan-2016 09:26:07 America/Chicago] 0:admin:simple_crud_class.inc:116: key() expects parameter 1 to be array, string given
[06-Jan-2016 09:26:51 America/Chicago] 0:admin:simple_crud_class.inc:116: key() expects parameter 1 to be array, string given
[06-Jan-2016 09:27:13 America/Chicago] 0:admin:simple_crud_class.inc:116: key() expects parameter 1 to be array, string given
[06-Jan-2016 09:31:01 America/Chicago] 0:admin:simple_crud_class.inc:116: key() expects parameter 1 to be array, string given
[06-Jan-2016 09:32:01 America/Chicago] 0:admin:simple_crud_class.inc:116: key() expects parameter 1 to be array, string given
[06-Jan-2016 09:50:40 America/Chicago] 0:admin:simple_crud_class.inc:116: key() expects parameter 1 to be array, string given
[06-Jan-2016 09:51:33 America/Chicago] 0:admin:simple_crud_class.inc:116: key() expects parameter 1 to be array, string given
[06-Jan-2016 09:51:51 America/Chicago] 0:admin:simple_crud_class.inc:116: key() expects parameter 1 to be array, string given
[06-Jan-2016 10:26:36 America/Chicago] 0:admin:simple_crud_class.inc:116: key() expects parameter 1 to be array, string given
[06-Jan-2016 10:26:55 America/Chicago] 0:admin:simple_crud_class.inc:116: key() expects parameter 1 to be array, string given

Re: under customers, cant add deliveries, general, invoices, orders

when debug 2 open

under customer contact update tab below erorr messages comes up

The contact name cannot be empty.
/home4/tilegal/public_html/accounting/includes/ui/ui_msgs.inc:14:    trigger_error('The contact name cannot be empty.','256')
/home4/tilegal/public_html/accounting/includes/ui/contacts_view.inc:131:    display_error('The contact name cannot be empty.')
/home4/tilegal/public_html/accounting/includes/ui/simple_crud_class.inc:361:    (contacts Object)->insert_check()
/home4/tilegal/public_html/accounting/includes/ui/simple_crud_class.inc:149:    (simple_crud Object)->update_check()
/home4/tilegal/public_html/accounting/includes/ui/simple_crud_class.inc:297:    (simple_crud Object)->_update('UPDATE')
/home4/tilegal/public_html/accounting/sales/manage/customers.php:361:    (simple_crud Object)->show()

Re: under customers, cant add deliveries, general, invoices, orders

Try to turn off "STRICT" in PHP 5.4