Results 1 to 5 of 5
  1. #1
    Join Date
    Jul 2010
    Posts
    27
    Plugin Contributions
    0

    Default 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:

    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

  2. #2
    Join Date
    Jul 2010
    Posts
    27
    Plugin Contributions
    0

    Default Re: Blank Confirmation page when switching from PHP4 to PHP5

    Also, forgot to mention, I am using Zen Cart v1.3.9d, never upgraded.

  3. #3
    Join Date
    Aug 2009
    Posts
    210
    Plugin Contributions
    1

    Default 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>

  4. #4
    Join Date
    Jul 2010
    Posts
    27
    Plugin Contributions
    0

    Default Re: Blank Confirmation page when switching from PHP4 to PHP5

    Quote Originally Posted by ksookma View Post
    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.

  5. #5
    Join Date
    Aug 2009
    Posts
    210
    Plugin Contributions
    1

    Default 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. ;)

 

 

Similar Threads

  1. Changed php4 to php5 - blank pages
    By wmorris in forum General Questions
    Replies: 7
    Last Post: 3 Nov 2008, 07:00 AM
  2. Upgrade from php4 to php5 Admin problem
    By miles in forum General Questions
    Replies: 3
    Last Post: 28 May 2008, 09:17 AM
  3. Should I use PHP4 or PHP5 when running PHP as a CGI
    By garthwm in forum Installing on a Linux/Unix Server
    Replies: 1
    Last Post: 28 Mar 2008, 01:16 AM
  4. Migrate from PHP4 to PHP5 while using 1.3.7?
    By rhutchison in forum General Questions
    Replies: 2
    Last Post: 30 Aug 2007, 03:49 AM
  5. Again upgrade from php4 to php5 problems
    By StenCZ in forum General Questions
    Replies: 2
    Last Post: 11 Aug 2007, 03:57 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR