Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Unknown column 'defaultshipper' in 'field list'
12-17-2018, 09:00 AM, (This post was last modified: 12-17-2018, 09:02 AM by rjonesbsink.)
#1
Unknown column 'defaultshipper' in 'field list'
when trying to add a new supplier I get database error 1054 Unknown column 'defaultshipper' in 'field list' and

Database SQL Failure : The SQL that was used to insert the supplier but failed was
INSERT INTO suppliers (supplierid, suppname, address1, address2, address3, address4, address5, address6, telephone, fax, email, url, supptype, currcode, suppliersince, paymentterms, bankpartics, bankref, bankact, remittance, taxgroupid, factorcompanyid, lat, lng, taxref, defaultshipper, defaultgl) VALUES ('3', 'ifixit', '', '', '', '', '', '', '', '', '', '', '1', 'USD', '2018-12-16', '20', '', '0', '', '0', '1', '0', '0', '0', '', '1', '1' )..

this also affects the purchase module when trying to click new purchase order..

Database Error 1054 : The supplier record of the supplier selected: cannot be retrieved because
Unknown column 'suppliers.defaultshipper' in 'field list'


Database SQL Failure : The SQL used to retrieve the supplier details and failed was
SELECT suppliers.suppname, suppliers.currcode, currencies.decimalplaces, suppliers.paymentterms, suppliers.address1, suppliers.address2, suppliers.address3, suppliers.address4, suppliers.address5, suppliers.address6, suppliers.telephone, suppliers.port, suppliers.defaultshipper FROM suppliers INNER JOIN currencies ON suppliers.currcode=currencies.currabrev WHERE supplierid=''


the version of weberp is from GitHub. is this a simple fix
Reply
12-17-2018, 07:30 PM,
#2
RE: Unknown column 'defaultshipper' in 'field list'
Sorry I should have mentioned if you start from the Github version you need to run the latest sql update script. In this case it is at
sql/mysql/upgrade4.15-4.15.1.sql

Tim
Reply
12-18-2018, 03:49 AM,
#3
RE: Unknown column 'defaultshipper' in 'field list'
Thank you for the info. Would that be the only upgrade I will have to run
Reply
12-18-2018, 05:20 AM,
#4
RE: Unknown column 'defaultshipper' in 'field list'
Yes it will
Reply
12-18-2018, 06:10 AM,
#5
RE: Unknown column 'defaultshipper' in 'field list'
(12-18-2018, 05:20 AM)falkoner Wrote: Yes it will

thanks, i will try this when i get home tonite
Reply
12-18-2018, 10:10 AM, (This post was last modified: 12-18-2018, 10:36 AM by rjonesbsink.)
#6
RE: Unknown column 'defaultshipper' in 'field list'
(12-17-2018, 07:30 PM)falkoner Wrote: Sorry I should have mentioned if you start from the Github version you need to run the latest sql update script. In this case it is at
sql/mysql/upgrade4.15-4.15.1.sql

Tim

I tried to do it throught phpmyadmin and got this error

SQL query:

ALTER TABLE
`suppliers` ADD COLUMN `defaultgl` VARCHAR(20) NOT NULL DEFAULT '1' AFTER `url`

MySQL said:
#1060 - Duplicate column name 'defaultgl'


and it did not complete
(12-18-2018, 05:20 AM)falkoner Wrote: Yes it will

disregard the last message
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)