Site maintenance: Sun 15 Nov, from 20:00 UTC, about 4–6 hours. Details

This cutover relies on some testing that is still incomplete so may be cancelled at short notice

Forums / Upgrading from 1.3.x to 1.3.9 / syntax error, unexpected T_STRING in ipn_main_handler.php

syntax error, unexpected T_STRING in ipn_main_handler.php

Locked

Started by saplanet on 3 Oct 2010, 12:29 AM · Views: 1,553

Results 1 to 6 of 6
This thread is locked. New replies are disabled.
3 Oct 2010, 12:29 AM
#1
saplanet avatar

saplanet

New Zenner

Join Date:
Jun 2008
Location:
Singapore, Australia, America
Posts:
97
Plugin Contributions:
0

syntax error, unexpected T_STRING in ipn_main_handler.php

Error at checkout with paypal express after upgrading to 1.3.9g.

Error:
Parse error: syntax error, unexpected T_STRING in
/home/mydomain/ipn_main_handler.php on line 452

I have checked the 1.3.9g version of the file against the previous version, no difference in line 452 (the last line).

I have to replace with previous version now because customers are waiting to check out. Please advise.

3 Oct 2010, 12:30 AM
#2
saplanet avatar

saplanet

New Zenner

Join Date:
Jun 2008
Location:
Singapore, Australia, America
Posts:
97
Plugin Contributions:
0

Re: syntax error, unexpected T_STRING in ipn_main_handler.php

to add, it worked fine when I replaced with the old file.

3 Oct 2010, 12:35 AM
#3
ajeh avatar

ajeh

Oba-san

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

Re: syntax error, unexpected T_STRING in ipn_main_handler.php

Make sure that you updated all of the PayPal files:
/includes/modules/payment/paypal/tpl_ec_button.php
/includes/modules/payment/paypaldp.php
/ipn_main_handler.php

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

3 Oct 2010, 12:45 AM
#4
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,511
Plugin Contributions:
176

Re: syntax error, unexpected T_STRING in ipn_main_handler.php

That error message is not a result of something wrong with the ipn_main_handler.php file in v1.3.9g.
You must have an incomplete upload of one or more files.

Using the file from the previous version is likely to cause transaction problems.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

3 Oct 2010, 12:46 AM
#5
saplanet avatar

saplanet

New Zenner

Join Date:
Jun 2008
Location:
Singapore, Australia, America
Posts:
97
Plugin Contributions:
0

Re: syntax error, unexpected T_STRING in ipn_main_handler.php

Ajeh:

Make sure that you updated all of the PayPal files:
/includes/modules/payment/paypal/tpl_ec_button.php
/includes/modules/payment/paypaldp.php
/ipn_main_handler.php

Thank you, I left out /includes/modules/payment/paypal/tpl_ec_button.php. It's solved now. :clap:

3 Oct 2010, 12:52 AM
#6
ajeh avatar

ajeh

Oba-san

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

Re: syntax error, unexpected T_STRING in ipn_main_handler.php

Thanks for the update that you were able to fix this by loading the:
/includes/modules/payment/paypal/tpl_ec_button.php

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!