Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

undefined function error after installing Paypal IPN


Guest

Recommended Posts

I got this contribution install and everything went ok. The IPN module apprears in my control panel and I can configure it, but I get this error what trying to access my store.

 

 

Fatal error: Call to undefined function: tep_href_link() in /home/content/m/t/m/mtmadmin/html/mtmestore/catalog/includes/languages/english.php on line 317

 

Any help will be greatly appreciated.

 

Mike

Link to comment
Share on other sites

I did a complete re-install from a fresh backup install of my Oscommerce and that seemed to fix the error

 

I tried a test purchase and now I get the following error

 

page not found ---> catalog/FILENAME_CHECKOUT_PAYPALIPN

 

I do not see the file it is looking for in my directory or in the files that are in the contribution I downloaded ?

 

 

I do have a "checkout_paypalipn.php" file. Is there some code that I need to change ?

 

Any help greatly appreciated

 

Mike.

Link to comment
Share on other sites

If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

 

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -

 

"Headers already sent" - The definitive help

 

"Cannot redeclare ..." - How to find/fix it

 

SSL Implementation Help

 

Like this post? "Like" it again over there >

Link to comment
Share on other sites

Ok. I got the code added to the filenames.php files and got a test purchase allmost all the way thru, but after making the paypal payment and clickin on the return button on the paypal invoice I get the following error.

 

Parse error: parse error, unexpected T_STRING in /home/content/m/t/m/mtmadmin/html/mtmestore/catalog/includes/languages/english/checkout_success.php on line 18

 

I think I'm almost there, I hope

 

Any help greatly appreciated.

 

Mike

Link to comment
Share on other sites

Post the first 30 or so lines of:

 

/catalog/includes/languages/english/checkout_success.php

 

Between "CODE" tags would be preferrable.

If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

 

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -

 

"Headers already sent" - The definitive help

 

"Cannot redeclare ..." - How to find/fix it

 

SSL Implementation Help

 

Like this post? "Like" it again over there >

Link to comment
Share on other sites

I got this problem fixed there was a bad charactor in the text code I edited it out and got past that step.

 

I had another person try a test purchase and they got the following error.

 

Warning: main(includes/languages/english/checkout_shipping.php): failed to

open stream: No such file or directory in

/home/content/m/t/m/mtmadmin/html/mtmestore/catalog/checkout_shipping.php on

line 147

 

Fatal error: main(): Failed opening required

'includes/languages/english/checkout_shipping.php'

(include_path='.:/usr/local/lib/php') in

/home/content/m/t/m/mtmadmin/html/mtmestore/catalog/checkout_shipping.php on

line 147

 

I hope after this one that all will be fixed.

 

Any help greatly appreciated.

 

Mike.

Link to comment
Share on other sites

I looked for 'includes/languages/english/checkout_shipping.php' and it does not exist. I looked in the contribution I downloaded and the file is not there either. The only file in the download is "checkout_success.txt".

 

Is there some code that needs to be changed or do I need a file to put there ? I do have a "'catalog/checkout_shipping.php'

Link to comment
Share on other sites

This is what I have for /includes/languages/english/checkout_shipping.php:

<?php
/*
 $Id: checkout_shipping.php,v 1.3 2003/02/06 17:38:16 thomasamoulton Exp $

 osCommerce, Open Source E-Commerce Solutions
 http://www.oscommerce.com

 Copyright (c) 2002 osCommerce

 Released under the GNU General Public License
*/

define('NAVBAR_TITLE_1', 'Checkout');
define('NAVBAR_TITLE_2', 'Shipping Method');

define('HEADING_TITLE', 'Delivery Information');

define('TABLE_HEADING_SHIPPING_ADDRESS', 'Shipping Address');
define('TEXT_CHOOSE_SHIPPING_DESTINATION', 'Please choose from your address book where you would like the items to be delivered to.');
define('TITLE_SHIPPING_ADDRESS', 'Shipping Address:');

define('TABLE_HEADING_SHIPPING_METHOD', 'Shipping Method');
define('TEXT_CHOOSE_SHIPPING_METHOD', 'Please select the preferred shipping method to use on this order.');
define('TITLE_PLEASE_SELECT', 'Please Select');
define('TEXT_ENTER_SHIPPING_INFORMATION', 'This is currently the only shipping method available to use on this order.');

define('TABLE_HEADING_COMMENTS', 'Add Comments About Your Order');

define('TITLE_CONTINUE_CHECKOUT_PROCEDURE', 'Continue Checkout Procedure');
define('TEXT_CONTINUE_CHECKOUT_PROCEDURE', 'to select the preferred payment method.');
?>

It may or may not work for you.

If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

 

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -

 

"Headers already sent" - The definitive help

 

"Cannot redeclare ..." - How to find/fix it

 

SSL Implementation Help

 

Like this post? "Like" it again over there >

Link to comment
Share on other sites

It's a "standard" osC file that should come with your basic install.

If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

 

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -

 

"Headers already sent" - The definitive help

 

"Cannot redeclare ..." - How to find/fix it

 

SSL Implementation Help

 

Like this post? "Like" it again over there >

Link to comment
Share on other sites

I already posted what I have.

 

You can go to Sourceforge.net and download the entire osC package as a ZIP and extract what you need.

 

In the "Tips and Tricks" forum there is a thread entitled "What version is my store?" or something like that. Read that if you don't know what version your shop is.

 

If you can't find the thread, look for a post by Jack_MCS. There is a link in his signature.

 

Then you'll know what version to download at Sourceforge.net

If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

 

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -

 

"Headers already sent" - The definitive help

 

"Cannot redeclare ..." - How to find/fix it

 

SSL Implementation Help

 

Like this post? "Like" it again over there >

Link to comment
Share on other sites

  • 3 weeks later...

I think I got this worked out. I tried a test and once I got thru the paypal payment it never returned to my site. I check out paypal_notify.php and it is blank. Should there be something in this file to complete the checkout process ? Or how does the process end and the payment go thru ?

 

Any help greatly appreciated.

Link to comment
Share on other sites

I downloaded the file paypal_notify.php just to double check and there is data in the file. I will run thru the payment process one more time and describe what happens. I'm do an actual purchase thru the site and will refund later. I'm making the purchase with a credit card not a paypal account.

 

What should happen if the payment goes thru ?

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...