Results 1 to 6 of 6
  1. #1
    Join Date
    Aug 2006
    Posts
    4
    Plugin Contributions
    0

    Issues with include in Payment Module

    I am developing a payment module that needs to send XML to a socket, and I am using phppal's XMLParser[1] with slight modifications. The way it is supposed to work is ZenCart builds the XML file from the order, sends the request to the socket on localhost:5000, waits for the XML response back and parses the response.


    The problems I am having are on my site, when I go to administer the module I get
    Warning: main(parser_php4.php): failed to open stream: No such file or directory in /home/.neapolis/parcelbrat/store.devillecomputers.com/includes/modules/payment/stxpay.php on line 12

    Warning: main(): Failed opening 'parser_php4.php' for inclusion (include_path='.:/usr/local/lib/php') in /home/.neapolis/parcelbrat/store.devillecomputers.com/includes/modules/payment/stxpay.php on line 12
    .

    On my clients site, when I check, the admin page shows the same.

    When I try to run it through a fake order, my site works fine, no errors, and his site fails with:
    Warning: Cannot modify header information - headers already sent by (output started at /home/vpcouk/public_html/includes/parser_php4.php:1) in /home/vpcouk/public_html/includes/functions/functions_general.php on line 52
    however, it too seems to work (based on the email being sent below).

    I am unsure why either of these are happening. I am including the XML library with the line:
    Code:
    include_once(DIR_WS_INCLUDES . 'parser_php4.php');
    in the file (ws root)/includes/modules/payment/stxpay.php. The XML library is at (ws root)/includes/parser_php4.php. I have checked to make sure the files are there and all, and I know that it is working because I have it send me an email on orders, and the output of that email depends on the XML library.

    Any clues? Thanks

    Jimmy

    1:http://phppal.com/xml/doc.php

  2. #2
    Join Date
    Aug 2006
    Posts
    4
    Plugin Contributions
    0

    payment module freaks out

    Hey guys,

    I finally got the payment module working and now I have a new problem. When I go through the process of completing an order, everything works great until I submit the order. At that point, all external signs point to order completion. I get a confirmation email, the shopping cart is empty, an order is logged on the admin panel. However, the order confirmation page never shows, it just fails with a huge error which is pasted below. Any ideas? Please?

    Thanks,
    Jimmy

    Notice: Undefined index: cc_number in /home/vpcouk/public_html/includes/classes/order.php on line 544

    Notice: Undefined property: credit_class in /home/vpcouk/public_html/includes/classes/order_total.php on line 123

    Notice: Undefined property: credit_class in /home/vpcouk/public_html/includes/classes/order_total.php on line 123

    Notice: Undefined property: credit_class in /home/vpcouk/public_html/includes/classes/order_total.php on line 123

    Notice: Undefined property: credit_class in /home/vpcouk/public_html/includes/classes/order_total.php on line 123

    Notice: Undefined property: credit_class in /home/vpcouk/public_html/includes/classes/order_total.php on line 123

    Notice: Undefined property: total_weight in /home/vpcouk/public_html/includes/classes/order.php on line 762

    Notice: Undefined variable: total_products_price in /home/vpcouk/public_html/includes/classes/order.php on line 763

    Notice: Undefined variable: products_tax in /home/vpcouk/public_html/includes/classes/order.php on line 763

    Notice: Undefined property: total_cost in /home/vpcouk/public_html/includes/classes/order.php on line 764

    Notice: Undefined variable: total_products_price in /home/vpcouk/public_html/includes/classes/order.php on line 764

    Notice: Undefined property: credit_class in /home/vpcouk/public_html/includes/classes/order_total.php on line 186

    Notice: Undefined property: credit_class in /home/vpcouk/public_html/includes/classes/order_total.php on line 186

    Notice: Undefined index: cc_id in /home/vpcouk/public_html/includes/modules/order_total/ot_coupon.php on line 175

    Notice: Undefined property: credit_class in /home/vpcouk/public_html/includes/classes/order_total.php on line 186

    Notice: Undefined property: credit_class in /home/vpcouk/public_html/includes/classes/order_total.php on line 186

    Notice: Undefined property: credit_class in /home/vpcouk/public_html/includes/classes/order_total.php on line 186

    Notice: Undefined variable: html_ot in /home/vpcouk/public_html/includes/classes/order.php on line 916

    Notice: Undefined property: email_footer in /home/vpcouk/public_html/includes/classes/order.php on line 948

    Notice: Undefined property: email_footer in /home/vpcouk/public_html/includes/classes/order.php on line 954

    Notice: Undefined index: EMAIL_TO_NAME in /home/vpcouk/public_html/includes/functions/functions_email.php on line 63

    Notice: Undefined index: EMAIL_TO_ADDRESS in /home/vpcouk/public_html/includes/functions/functions_email.php on line 64

    Notice: Undefined index: EMAIL_SUBJECT in /home/vpcouk/public_html/includes/functions/functions_email.php on line 65

    Notice: Undefined index: EMAIL_FROM_NAME in /home/vpcouk/public_html/includes/functions/functions_email.php on line 66

    Notice: Undefined index: EMAIL_FROM_ADDRESS in /home/vpcouk/public_html/includes/functions/functions_email.php on line 67

    Notice: Undefined index: EMAIL_STORE_NAME in /home/vpcouk/public_html/includes/functions/functions_email.php on line 234

    Notice: Undefined index: EMAIL_STORE_URL in /home/vpcouk/public_html/includes/functions/functions_email.php on line 235

    Notice: Use of undefined constant HTTP_CATALOG_SERVER - assumed 'HTTP_CATALOG_SERVER' in /home/vpcouk/public_html/includes/functions/functions_email.php on line 235

    Notice: Undefined index: EMAIL_STORE_OWNER in /home/vpcouk/public_html/includes/functions/functions_email.php on line 236

    Notice: Undefined index: EMAIL_FOOTER_COPYRIGHT in /home/vpcouk/public_html/includes/functions/functions_email.php on line 237

    Notice: Undefined index: EMAIL_DISCLAIMER in /home/vpcouk/public_html/includes/functions/functions_email.php on line 238

    Notice: Undefined index: EMAIL_SPAM_DISCLAIMER in /home/vpcouk/public_html/includes/functions/functions_email.php on line 239

    Notice: Undefined index: BASE_HREF in /home/vpcouk/public_html/includes/functions/functions_email.php on line 240

    Notice: Undefined index: EMAIL_DATE_SHORT in /home/vpcouk/public_html/includes/functions/functions_email.php on line 241

    Notice: Undefined index: EMAIL_DATE_LONG in /home/vpcouk/public_html/includes/functions/functions_email.php on line 242

    Notice: Undefined index: COUPON_TEXT_VOUCHER_IS in /home/vpcouk/public_html/includes/functions/functions_email.php on line 248

    Notice: Undefined index: GV_WORTH in /home/vpcouk/public_html/includes/functions/functions_email.php on line 253

    Notice: Use of undefined constant zen_catalog_href_link - assumed 'zen_catalog_href_link' in /home/vpcouk/public_html/includes/functions/functions_email.php on line 258

    Notice: Use of undefined constant TEXT_UNSUBSCRIBE - assumed 'TEXT_UNSUBSCRIBE' in /home/vpcouk/public_html/includes/functions/functions_email.php on line 261

    Notice: Use of undefined constant EMAIL_ATTACHMENTS_ENABLED - assumed 'EMAIL_ATTACHMENTS_ENABLED' in /home/vpcouk/public_html/includes/functions/functions_email.php on line 121

    Notice: Use of undefined constant EMAIL_IGNORE_ERRORS - assumed 'EMAIL_IGNORE_ERRORS' in /home/vpcouk/public_html/includes/classes/email.php on line 551

    Notice: Undefined index: EMAIL_TO_NAME in /home/vpcouk/public_html/includes/functions/functions_email.php on line 63

    Notice: Undefined index: EMAIL_TO_ADDRESS in /home/vpcouk/public_html/includes/functions/functions_email.php on line 64

    Notice: Undefined index: EMAIL_SUBJECT in /home/vpcouk/public_html/includes/functions/functions_email.php on line 65

    Notice: Undefined index: EMAIL_FROM_NAME in /home/vpcouk/public_html/includes/functions/functions_email.php on line 66

    Notice: Undefined index: EMAIL_FROM_ADDRESS in /home/vpcouk/public_html/includes/functions/functions_email.php on line 67

    Notice: Undefined index: EMAIL_STORE_NAME in /home/vpcouk/public_html/includes/functions/functions_email.php on line 234

    Notice: Undefined index: EMAIL_STORE_URL in /home/vpcouk/public_html/includes/functions/functions_email.php on line 235

    Notice: Use of undefined constant HTTP_CATALOG_SERVER - assumed 'HTTP_CATALOG_SERVER' in /home/vpcouk/public_html/includes/functions/functions_email.php on line 235

    Notice: Undefined index: EMAIL_STORE_OWNER in /home/vpcouk/public_html/includes/functions/functions_email.php on line 236

    Notice: Undefined index: EMAIL_FOOTER_COPYRIGHT in /home/vpcouk/public_html/includes/functions/functions_email.php on line 237

    Notice: Undefined index: EMAIL_DISCLAIMER in /home/vpcouk/public_html/includes/functions/functions_email.php on line 238

    Notice: Undefined index: EMAIL_SPAM_DISCLAIMER in /home/vpcouk/public_html/includes/functions/functions_email.php on line 239

    Notice: Undefined index: BASE_HREF in /home/vpcouk/public_html/includes/functions/functions_email.php on line 240

    Notice: Undefined index: EMAIL_DATE_SHORT in /home/vpcouk/public_html/includes/functions/functions_email.php on line 241

    Notice: Undefined index: EMAIL_DATE_LONG in /home/vpcouk/public_html/includes/functions/functions_email.php on line 242

    Notice: Undefined index: COUPON_TEXT_VOUCHER_IS in /home/vpcouk/public_html/includes/functions/functions_email.php on line 248

    Notice: Undefined index: GV_WORTH in /home/vpcouk/public_html/includes/functions/functions_email.php on line 253

    Notice: Use of undefined constant zen_catalog_href_link - assumed 'zen_catalog_href_link' in /home/vpcouk/public_html/includes/functions/functions_email.php on line 258

    Notice: Use of undefined constant TEXT_UNSUBSCRIBE - assumed 'TEXT_UNSUBSCRIBE' in /home/vpcouk/public_html/includes/functions/functions_email.php on line 261

    Notice: Undefined property: fields in /home/vpcouk/public_html/includes/functions/functions_email.php on line 96

    Notice: Use of undefined constant EMAIL_ATTACHMENTS_ENABLED - assumed 'EMAIL_ATTACHMENTS_ENABLED' in /home/vpcouk/public_html/includes/functions/functions_email.php on line 121

    Notice: Use of undefined constant EMAIL_IGNORE_ERRORS - assumed 'EMAIL_IGNORE_ERRORS' in /home/vpcouk/public_html/includes/classes/email.php on line 551

    Notice: Undefined property: credit_class in /home/vpcouk/public_html/includes/classes/order_total.php on line 201

    Notice: Undefined property: credit_class in /home/vpcouk/public_html/includes/classes/order_total.php on line 201

    Notice: Undefined variable: post_var in /home/vpcouk/public_html/includes/classes/order_total.php on line 202

    Notice: Undefined property: credit_class in /home/vpcouk/public_html/includes/classes/order_total.php on line 201

    Notice: Undefined property: credit_class in /home/vpcouk/public_html/includes/classes/order_total.php on line 201

    Notice: Undefined property: credit_class in /home/vpcouk/public_html/includes/classes/order_total.php on line 201

    Notice: Undefined index: HTTPS in /home/vpcouk/public_html/includes/functions/functions_general.php on line 40

    Warning: Cannot modify header information - headers already sent by (output started at /home/vpcouk/public_html/includes/parser_php4.php:1) in /home/vpcouk/public_html/includes/functions/functions_general.php on line 52

  3. #3
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: payment module freaks out

    What is this file?

    It is not part of Zen Cart ...
    Warning: Cannot modify header information - headers already sent by (output started at /home/vpcouk/public_html/includes/parser_php4.php:1) in /home/vpcouk/public_html/includes/functions/functions_general.php on line 52
    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: v1.5.5]
    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!

  4. #4
    Join Date
    Aug 2006
    Posts
    4
    Plugin Contributions
    0

    Default Re: payment module freaks out

    parser_php4 is what I am using to parse XML. it is a simple xml parser for PHP4 in the style of Simple XML(the PHP5 library). It can be found at PHPPal If it is really causing all the problems I can look into something else, or try and integrate it better. It is currently in the /includes/ directory.

    JD

  5. #5
    Join Date
    Jan 2004
    Posts
    66,364
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: payment module freaks out

    headers already sent by (output started at /home/vpcouk/public_html/includes/parser_php4.php:1
    This same question comes up 10 times a week here on the forum and is discussed in our FAQ's.
    You will find it here:
    http://www.zen-cart.com/forum/faq.ph...s+already+sent

    You will also find over 12 million hits on Google for the same error message:
    http://www.google.ca/search?hl=en&q=...s+already+sent

    Cause:
    The filename in the message has blank lines or blank spaces on the line-number indicated ... in your case, line 1 of includes/parser_php4.php
    .

    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.

  6. #6
    Join Date
    Aug 2006
    Posts
    4
    Plugin Contributions
    0

    Default Re: payment module freaks out

    Quote Originally Posted by DrByte
    This same question comes up 10 times a week here on the forum and is discussed in our FAQ's.
    You will find it here:
    http://www.zen-cart.com/forum/faq.ph...s+already+sent

    You will also find over 12 million hits on Google for the same error message:
    http://www.google.ca/search?hl=en&q=...s+already+sent

    Cause:
    The filename in the message has blank lines or blank spaces on the line-number indicated ... in your case, line 1 of includes/parser_php4.php
    I didn't realize that I needed to start with the error at the bottom. Sorry for repeating a common question.

 

 

Similar Threads

  1. Replies: 1
    Last Post: 12 Dec 2014, 05:37 AM
  2. v151 Can't install payment module or complete checkout - Times out
    By murphyslaw4267 in forum PayPal Express Checkout support
    Replies: 18
    Last Post: 19 Jun 2013, 09:09 PM
  3. How to enforce "out of stock" rule to payment module?
    By fatiga in forum Built-in Shipping and Payment Modules
    Replies: 0
    Last Post: 12 Aug 2011, 07:35 PM
  4. Is there a BidPay Payment Module out there?
    By chrisareas in forum Built-in Shipping and Payment Modules
    Replies: 3
    Last Post: 19 Nov 2007, 09:40 PM

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