Zen Cart Logo
Forums / General Questions / Blank page: Yes I followed the FAQ

Blank page: Yes I followed the FAQ

Locked

Views: 1,386

Results 1 to 11 of 11
This thread is locked. New replies are disabled.
20 Feb 2010, 4:45 AM
#1
jasmel avatar

jasmel

Zen Follower

Join Date:
Feb 2008
Location:
Washington State
Posts:
230
Plugin Contributions:
0

Blank page: Yes I followed the FAQ

Hello,

Got one of those pesky Blank Page issues. Occurs after you select payment type (PayPal or Credit Card) and hit continue.

[19-Feb-2010 20:27:26] PHP Parse error:  syntax error, unexpected ';', expecting T_FUNCTION in /home/.xxxx/xxxx/justmymusic.com/store/includes/classes/order.php on line 1033

I have attached the order.php file

line 1033 is the last line. I can't see the issue anywhere.. looks like I need another set of eyes.

20 Feb 2010, 5:12 AM
#2
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Blank page: Yes I followed the FAQ

This appears to be an add on ...

Did you try to download the add on again and compare the files?

20 Feb 2010, 7:27 AM
#3
jasmel avatar

jasmel

Zen Follower

Join Date:
Feb 2008
Location:
Washington State
Posts:
230
Plugin Contributions:
0

Re: Blank page: Yes I followed the FAQ

Ajeh:

This appears to be an add on ...

Did you try to download the add on again and compare the files?

The add on is called "Fast and Easy Checkout for Zen Cart". It seems the mod's author "numinix" is not on today.

Since the "myDEBUG" is leading me to the store/includes/classes/order.php file I figured that maybe another set of eyes and see what I am missing.

I used WinMerge for the files and even tried them "clean" from the mod's package. I have been working on this throughout the day. I screwed it up last night (Thursday). Zero orders via the web today and had to take phone calls of customers wondering if their credit cards were charged.

This is killing me. :cry:

If I remove the add-on or even change the theme to the classic one I get a full blank page on the confirmation page. (don't know if that is a clue or not)

Running zen-cart v1.3.8 with the mods listed in my signature

20 Feb 2010, 1:51 PM
#4
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Blank page: Yes I followed the FAQ

When you get the blank page, do you also get a new error message in the debug file?

20 Feb 2010, 9:20 PM
#5
jasmel avatar

jasmel

Zen Follower

Join Date:
Feb 2008
Location:
Washington State
Posts:
230
Plugin Contributions:
0

Re: Blank page: Yes I followed the FAQ

Ajeh:

When you get the blank page, do you also get a new error message in the debug file?

just this:

[20-Feb-2010 13:15:50] PHP Fatal error: Cannot redeclare class order in /home/.xxxx/xxxx/justmymusic.com/store/includes/classes/order.php on line 1032

but the order.php is from the add on. The odd thing is the the order.php file is only 1033 lines long.

last 10 lines:

1023        $html_msg['EMAIL_TEXT_HEADER'] = nl2br($pmt_details) . $html_msg['EMAIL_TEXT_HEADER'];
1024      }
1025
1026      zen_mail('', SEND_EXTRA_ORDER_EMAILS_TO, SEND_EXTRA_NEW_ORDERS_EMAILS_TO_SUBJECT . ' ' . EMAIL_TEXT_SUBJECT . EMAIL_ORDER_NUMBER_SUBJECT . $zf_insert_id,
1027      $email_order . $extra_info['TEXT'], STORE_NAME, EMAIL_FROM, $html_msg, 'checkout_extra', $this->attachArray);
1028    }
1029    $zco_notifier->notify('NOTIFY_ORDER_AFTER_SEND_ORDER_EMAIL');
1030  }
1031
1032}
1033?>

*no extra spaces after the last line either.

20 Feb 2010, 9:37 PM
#6
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Blank page: Yes I followed the FAQ

Could you go to the Tools ... Developers Tool Kit ... and in the bottom input box enter:
class order

how many files come up with that?

What PayPal payment module are you using?

What Credit Card payment module are you using?

21 Feb 2010, 12:56 AM
#7
jasmel avatar

jasmel

Zen Follower

Join Date:
Feb 2008
Location:
Washington State
Posts:
230
Plugin Contributions:
0

Re: Blank page: Yes I followed the FAQ

Ajeh:

how many files come up with that?
3
.../store/includes/classes/order.php
.../store/includes/classes/order_total.php
.../store/admin/includes/classes/order.php

*of course "admin" is named something else for security.

Ajeh:

What PayPal payment module are you using?
PayPal IPN - Website Payments Standard
PayPal Website Payments Pro
PayPal Express Checkout
Ajeh:

What Credit Card payment module are you using?
PayPal Website Payments Pro

21 Feb 2010, 1:23 AM
#8
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Blank page: Yes I followed the FAQ

Which PayPal Payment module do you actually have installed?

Make sure you only have installed modules you are using ... if you are not using them, do not just disable a module, you want to click on it and click REMOVE ...

21 Feb 2010, 2:08 AM
#9
jasmel avatar

jasmel

Zen Follower

Join Date:
Feb 2008
Location:
Washington State
Posts:
230
Plugin Contributions:
0

Re: Blank page: Yes I followed the FAQ

Ajeh:

Which PayPal Payment module do you actually have installed?

Make sure you only have installed modules you are using ... if you are not using them, do not just disable a module, you want to click on it and click REMOVE ...

I have both "on":
PayPal Website Payments Pro
*PayPal Express Checkout

*Express Checkout must be installed and activated in order to use Website Payments Pro, according to PayPal Terms of Service. - shows up in PayPal Website Payments Pro configuration module.

I hadn't removed the "PayPal IPN - Website Payments Standard" just in case I needed to go back to it. ie. if the Pro didn't work correctly.

21 Feb 2010, 2:56 AM
#10
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Blank page: Yes I followed the FAQ

Save your settings in PayPal IPN and do a REMOVE on it ...

22 Feb 2010, 5:07 PM
#11
jasmel avatar

jasmel

Zen Follower

Join Date:
Feb 2008
Location:
Washington State
Posts:
230
Plugin Contributions:
0

Re: Blank page: Yes I followed the FAQ

I had to go ahead and just restore the site from a previous backup.

The one thing I wanted most from this Fast and Easy Checkout was a button to fresh the coupon code prior to the customer entering in their credit card info.

*This is the number one email we get from customers... is something like "how do I know that the coupon code will work?"

They are scared to input their payment info until they actually see the total that they will paying.

Hopefully this will be something in the next release. (or a simple coupon apply mod)