
Originally Posted by
picandnix
I have read through this thread (and used the above post as a reference) but I cannot seem to resolve this error...
//Begin FEC Edit //End FEC Edit
showing on order details page. I am using v3.2, I have FEC installed and working fine, I used the files from the FEC folder WITHIN the Super Orders download as per the installation guide.
Now I'm stumped as to why it is displaying on the page as its a known and 'resolved' issue in this version.
Issue No.2...I get this error log everytime i enter or click within my admin area of Super Orders
can anyone shed any light on this please?
PHP Warning: Invalid CRT parameters detected in MYADMIN\includes\functions\extra_functions\super_orders_functions.php on line 212
PHP Stack trace:
PHP 1. {main}() MYADMIN\super_orders.php:0
PHP 2. zen_datetime_long() MYADMIN\super_orders.php:623
PHP 3. strftime() MYADMIN\includes\functions\extra_functions\super_orders_functions.php:212
PHP Warning: Invalid CRT parameters detected in MYADMIN\includes\functions\extra_functions\super_orders_functions.php on line 212
Many thanks in advance.
OK, an update, issue No.1 is to do with my LOCAL version pf PHP so I will ignore this bug file output.
issue No.2 I've tied it down to the Super_orders.php file in the FEC folder lines 1131 and 1239 the comments are not being commented out for some reasons. Anyone spot anything obvious please?
PHP Code:
<table>
</tr><tr><td align="right"> </td></tr>
<tr>
<td align="right" valign="bottom"><table border="1" bgcolor="#ffff99" rules="none" frame="box" cellspacing="2" cellpadding="2"></td>
<td class="invoiceHeading" align="center"><strong><?php echo TABLE_HEADING_FINAL_STATUS; ?></strong></td>
</tr>
<tr>
<td align="right"><?php echo '<a href="' . zen_href_link(FILENAME_SUPER_ORDERS, 'action=mark_completed&oID=' . $oID) . '">' . zen_image_button('btn_completed.gif', ICON_MARK_COMPLETED) . '</a>'; ?></td>
</tr>
<tr>
<td align="right"><?php echo '<a href="' . zen_href_link(FILENAME_SUPER_ORDERS, 'action=mark_cancelled&oID=' . $oID) . '">' . zen_image_button('btn_cancelled.gif', ICON_MARK_CANCELLED) . '</a>'; ?></td>
</tr>
</table>
</table></td>
</tr>
</table></td>
</tr>
//this here 1131 Begin FEC Edit
<?php
if (MODULE_ORDER_TOTAL_DOUBLEBOX_STATUS == 'true') {
$orders_doublebox = $db->Execute("select orders_products_id
from " . TABLE_ORDERS_DOUBLEBOX . "
where orders_id = '" . zen_db_input($oID) . "' and wrap = 1");
// bof gift wrap
if ($orders_doublebox->RecordCount() > 0) {
?>
<tr>
<td><?php echo zen_draw_separator('pixel_trans.gif', '1', '10'); ?></td>
</tr>
<tr>
<td class="main"><table border="1" cellspacing="0" cellpadding="5">
<tr>
<td class="smallText" align="center"><strong><?php echo DOUBLEBOX_SUMMARY_HEADING; ?></strong></td>
</tr>
<?php
while (!$orders_doublebox->EOF) {
$pos = -1;
for ($i=0, $n=sizeof($order->products); $i<$n; $i++) {
if ($order->products[$i]['orders_products_id'] ==
$orders_doublebox->fields['orders_products_id']) {
$pos = $i;
break;
}
}
$orders_doublebox->MoveNext();
if ($pos == -1) {
continue; // Should never happen
}
$i = $pos;
echo '<tr>';
echo '<td class="accountProductDisplay">' . $order->products[$i]['name'];
if ( (isset($order->products[$i]['attributes'])) && (sizeof($order->products[$i]['attributes']) > 0) ) {
echo '<br><nobr><small>';
for ($j=0, $n2=sizeof($order->products[$i]['attributes']); $j<$n2; $j++) {
echo ' - ' . $order->products[$i]['attributes'][$j]['option'] . ": " . nl2br(zen_output_string_protected($order->products[$i]['attributes'][$j]['value'])) . '<br>';
}
echo '</small></nobr>';
}
echo '</td>';
echo '</tr>';
}
?>
</table></td>
</tr>
<?php
} else {
echo '<tr><td>'. DOUBLEBOX_NO_TEXT . '</td></tr>';
}
}
?>
<?php
if (FEC_GIFT_WRAPPING_SWITCH == 'true') {
$orders_wrapping = $db->Execute("select orders_products_id
from " . TABLE_ORDERS_GIFTWRAP . "
where orders_id = '" . zen_db_input($oID) . "' and wrap = 1");
if ($orders_wrapping->RecordCount() > 0) {
?>
<tr>
<td><?php echo zen_draw_separator('pixel_trans.gif', '1', '10'); ?></td>
</tr>
<tr>
<td class="main"><table border="1" cellspacing="0" cellpadding="5" width="50%">
<tr class="dataTableHeadingRow">
<td class="dataTableHeadingContent"><strong><?php echo GIFT_WRAP_SUMMARY_HEADING; ?></strong></td>
</tr>
<?php
while (!$orders_wrapping->EOF) {
$pos = -1;
for ($i=0, $n=sizeof($order->products); $i<$n; $i++) {
if ($order->products[$i]['orders_products_id'] ==
$orders_wrapping->fields['orders_products_id']) {
$pos = $i;
break;
}
}
$orders_wrapping->MoveNext();
if ($pos == -1) {
continue; // Should never happen
}
$i = $pos;
echo '<tr>';
echo '<td class="accountProductDisplay">' . $order->products[$i]['name'];
if ( (isset($order->products[$i]['attributes'])) && (sizeof($order->products[$i]['attributes']) > 0) ) {
echo '<br><nobr><small>';
for ($j=0, $n2=sizeof($order->products[$i]['attributes']); $j<$n2; $j++) {
echo ' - ' . $order->products[$i]['attributes'][$j]['option'] . ": " . nl2br(zen_output_string_protected($order->products[$i]['attributes'][$j]['value'])) . '<br>';
}
echo '</small></nobr>';
}
echo '</td>';
echo '</tr>';
}
?>
</table></td>
</tr>
<?php
} else {
echo '<tr><td>'. GIFT_WRAP_NO_TEXT . '</td></tr>';
}
}
?>
<!-- eof gift wrap -->
//and 1239 End FEC Edit
<?php
// show downloads
require(DIR_WS_MODULES . 'orders_download.php');
?>
Bookmarks