Post by WattBesparen.nl » Wed Feb 01, 2012 12:29 am

I messed up my shop because I deleted the fax field.

Now I am getting this error (logfile):

2012-01-31 16:25:01 - PHP Notice: Undefined index: fax in /var/www/vhosts/wattbesparen.nl/httpdocs/catalog/model/checkout/order.php on line 4

I don't know which files I need to change...I already changed back all the .php files I guess.
Which .tpl files should I change?


Posts

Joined
Fri Nov 25, 2011 1:39 am

Post by straightlight » Wed Feb 01, 2012 2:42 am

If you deleted the fax field from the orders, you'd need to go back to PHPMyAdmin and re-add the field with the following command from your OpenCart database under the SQL tab text area:

Code: Select all

ALTER TABLE oc_order ADD `fax` varchar(32) COLLATE utf8_bin NOT NULL DEFAULT '',
Note: Rename oc_ prefix to your real prefix name if incorrect.

If you did re-put the codes back into PHP for the fax validation, then you should no longer see this error message again.

The most generated errors being found on Opencart forum originates from contributed programming. The increased post counters are caused by redundancies of the same solutions that were already provided prior.


Regards,
Straightlight
Opencart.com Administrator / Quality Assurance Analyst / Programmer


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON
Who is online

Users browsing this forum: No registered users and 63 guests