Blank Confirmation page when switching from PHP4 to PHP5
I am currently running my site on PHP4 from my host, but switched it to PHP5 because of some addons (mainly Edit Orders) that require PHP5 to run.
Everything seems to work fine on my site after switching, except that I receive a blank confirmation screen. When looking at the error logs, there is only one error:
PHP Parse error: syntax error, unexpected ';' in /home/iuneedsc/public_html/includes/templates/freetemplate1/templates/tpl_checkout_confirmation_default.php on line 97
I know very little currently about editing code, but have tried removing the ';' within that block of code, and still have the error.
The code around line 97 is:
Quote:
95 <?php // BEGIN Order Delivery Date ?>
96 <br />
97 <h3><?php echo; ?></h3>
98 <h4><?php echo zen_date_long($order->info['order_delivery_date']); ?></h4><br />
99 </div>
100 <?php // END Order Delivery Date ?>
A little background, which may play into this (I believe that may be what the Order Delivery Date is):
I use this site as a local convenience store-type delivery service. We are open 7 PM-5AM, and during those hours, the customer, when checking out, may choose a delivery time, but it is not required. If they do not choose a specific time, it notes their order 'Next in Queue'. When we are closed, it requires them to choose a delivery time within our operating hours, and notes that time on their order.
I have already looked at the blank page tutorial
and at a thread similar to mine here, to no avail.
Any help would be appreciated, if you need any more information, please don't hesitate to ask.
Thank you
Re: Blank Confirmation page when switching from PHP4 to PHP5
Also, forgot to mention, I am using Zen Cart v1.3.9d, never upgraded.
Re: Blank Confirmation page when switching from PHP4 to PHP5
It looks like line 97 was calling in a header title but that code was removed at some point. Try changing it to <h3><?php echo""; ?></h3>
Re: Blank Confirmation page when switching from PHP4 to PHP5
Quote:
Originally Posted by
ksookma
It looks like line 97 was calling in a header title but that code was removed at some point. Try changing it to <h3><?php echo""; ?></h3>
MMMMMMWWAHHHHHH! Thank you so much! This worked!
Just wondering, in general, is it is advisable to switch from PHP4 to PHP5 like I am doing? Will I potentially run into more problems like this? Was there a change from PHP4 to PHP5 that allowed it to work as it previously was in 4, but not in 5?
Thank you again, this was a major hangup in me implementing addons.
Re: Blank Confirmation page when switching from PHP4 to PHP5
no problem, It's best to be on the upgraded server. There are a lot of mods that use PHP5. You may run in to more issues but likely not that many since you already got to your order_confirmation page. ;)