Zen Cart 155a
PHP 5.6.23
Apache 2.4.18
MODS -- All Latest Version
Ckeditor
Responsive Color Changes for 155
Clone Template
Display Logs
Edit Orders
Encrypted Master Password
Inventory Report
Monthly Sales & Tax
Mydebug Backtrace
Product Images on Invoice_Email
Quick Status Update
Report All Errors
Scheduled Events
USPS Shipping
Problem: I have added a define page for suggested product usage and guarantee information to be added to the packing slip. Everything is working as expected as far as the printing of the Packing Slip. All the information is there as expected BUT each access of the packing slip creates the following error whether printed or not.
Code:
[08-Aug-2016 14:57:59 America/Chicago] Request URI: /buford/packingslip.php?oID=103, IP address: 216.177.186.199
#1 zen_get_file_directory() called at [/home/russiana/public_html/buford/packingslip.php:211]
[08-Aug-2016 14:57:59 America/Chicago] PHP Warning: Missing argument 2 for zen_get_file_directory(), called in /home/russiana/public_html/buford/packingslip.php on line 211 and defined in /home/russiana/public_html/buford/includes/functions/general.php on line 3187
Below are the listed file locations with added lines either side of the line.
Packing Slip:
Code:
209 <!-- body_text_eof //-->
210 <!--BOF admin editable packing slips *** JET *** -->
211 <?php require '../' . (zen_get_file_directory(DIR_WS_LANGUAGES . $_SESSION['language'] . '/html_includes/define_packing_slips'));?>
212 <!--EOF admin editable packing slips -->
General:
Code:
/**
* find template or default file
*/
function zen_get_file_directory($check_directory, $check_file, $dir_only = 'false') {
global $template_dir;
$zv_filename = $check_file;
if (!strstr($zv_filename, '.php')) $zv_filename .= '.php';
if (file_exists($check_directory . $template_dir . '/' . $zv_filename)) {
$zv_directory = $check_directory . $template_dir . '/';
} else {
$zv_directory = $check_directory;
}
if ($dir_only == 'true') {
return $zv_directory;
} else {
return $zv_directory . $zv_filename;
}
}
/**
Little bit deeper than my expertise. Files are located at the location(s) mentioned in the error log.
THANX
Bookmarks