Hi
I am currently upgrading our site from 1.5.5e to 1.5.6c. I also have Edit orders installed (which are ocmpatible) However I am getting a broken screen on when I select Order > Edit
The log files displays the following error(s):
[29-Feb-2020 17:02:26 Europe/Berlin] PHP Fatal error: Uncaught Error: Call to undefined function zen_html_quotes() in MyDrive\MyAdmin\includes\classes\observers\Vat4EuAdminObserver.php:305
Stack trace:
#0 MyDrive\includes\classes\class.base.php(103): Vat4EuAdminObserver->update(Object(notifier), 'EDIT_ORDERS_ADD...', Object(order), '', NULL, NULL, NULL, NULL, NULL, NULL, NULL)
#1 MyDrive\MyAdmin\edit_orders.php(968): base->notify('EDIT_ORDERS_ADD...', Object(order), '')
#2 {main}
thrown in MyDrive\MyAdmin\includes\classes\observers\Vat4EuAdminObserver.php on line 305
[29-Feb-2020 17:02:26 Europe/Berlin] Request URI: MyDrive\MyAdmin\edit_orders.php?page=1&oID=4&action=edit, IP address: 127.0.0.1
--> PHP Fatal error: Uncaught Error: Call to undefined function zen_html_quotes() in MyDrive\MyAdmin\includes\classes\observers\Vat4EuAdminObserver.php:305
Stack trace:
#0 MyDrive\includes\classes\class.base.php(103): Vat4EuAdminObserver->update(Object(notifier), 'EDIT_ORDERS_ADD...', Object(order), '', NULL, NULL, NULL, NULL, NULL, NULL, NULL)
#1 MyDrive\MyAdmin\edit_orders.php(968): base->notify('EDIT_ORDERS_ADD...', Object(order), '')
#2 {main}
thrown in MyDrive\MyAdmin\includes\classes\observers\Vat4EuAdminObserver.php on line 305.
MyAdmin\includes\classes\observers\Vat4EuAdminObserver.php on line 305 reads (in red and bold)
$vat_info =
'<tr>' . PHP_EOL .
' <td> </td>' . PHP_EOL .
' <td> </td>' . PHP_EOL .
' <td><strong>' . VAT4EU_ENTRY_VAT_NUMBER . '</strong></td>' . PHP_EOL .
[B] ' <td>' . zen_draw_input_field('vat_number', zen_html_quotes($vat_number), 'size="45"') . $valid_indicator . $hidden_fields . '</td>' . PHP_EOL .[/B]
' <td> </td>' . PHP_EOL .
' <td> </td>' . PHP_EOL .
'</tr>' . PHP_EOL .
'<tr>' . PHP_EOL .
' <td> </td>' . PHP_EOL .
' <td> </td>' . PHP_EOL .
' <td><strong>' . VAT4EU_ENTRY_OVERRIDE_VALIDATION . '</strong></td>' . PHP_EOL .
' <td>' . zen_draw_checkbox_field('vat_number_override', '', ($vat_validated == VatValidation::VAT_ADMIN_OVERRIDE)) . '</td>' . PHP_EOL .
' <td> </td>' . PHP_EOL .
' <td> </td>' . PHP_EOL .
'</tr>' . PHP_EOL;
$p2 .= $vat_info;
break;
// -----
MyDrive\MyAdmin\edit_orders.php(968) Reads
$module_name = (EO_ADDRESSES_DISPLAY_ORDER == 'CBS') ? 'eo_addresses_cbs.php' : 'eo_addresses_csb.php';
require DIR_WS_MODULES . 'edit_orders/' . $module_name;
// -----
// Give a watching observer the chance to inject some additional, per-address-type, information.
//
$additional_rows = '';
[B] $zco_notifier->notify('EDIT_ORDERS_ADDITIONAL_ADDRESS_ROWS', $order, $additional_rows);[/B]
echo $additional_rows;
?>
It loads ok when I turn off the vat 4 eu. Please could anyone shed any light?
Many thanks in advance.