Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Problem with Protx Form module


john alphaone

Recommended Posts

I have a problem with a newly installed protx_form.php. Protx works fine (with test server) if you proceed with transaction in the usual way. However, if you click cancel at the Protx screen you get:

 

Warning: session_start(): The session id contains invalid characters, valid characters are only a-z, A-Z and 0-9 in /www/vhtdocs/www.offtosea.com/html/catalog/includes/functions/sessions.php on line 67

 

Warning: session_start(): Cannot send session cookie - headers already sent by (output started at /www/vhtdocs/www.offtosea.com/html/catalog/includes/functions/sessions.php:67) in /www/vhtdocs/www.offtosea.com/html/catalog/includes/functions/sessions.php on line 67

 

Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /www/vhtdocs/www.offtosea.com/html/catalog/includes/functions/sessions.php:67) in /www/vhtdocs/www.offtosea.com/html/catalog/includes/functions/sessions.php on line 67

 

Warning: Cannot modify header information - headers already sent by (output started at /www/vhtdocs/www.offtosea.com/html/catalog/includes/functions/sessions.php:67) in /www/vhtdocs/www.offtosea.com/html/catalog/includes/functions/general.php on line 29

 

Warning: Unknown(): The session id contains invalid characters, valid characters are only a-z, A-Z and 0-9 in Unknown on line 0

 

Warning: Unknown(): Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/tmp) in Unknown on line 0

 

 

Has anyone else encountered this and if so do you have a resolution?

Link to comment
Share on other sites

  • 2 weeks later...

Problem seems to be caused by following code in function before_process:

 

      if ($Status != 'OK') {
       tep_redirect(tep_href_link(FILENAME_CHECKOUT_PAYMENT, tep_session_name() . '=' . $HTTP_POST_VARS[tep_session_name()] . '&error_message=' . urlencode($StatusDetail), 'SSL', false, false));
     }

 

$HTTP_POST_VARS is empty as Protx callback uses GET variables. Changing the code to use $HTTP_GET_VARS fixes the problem, but I'm puzzled as to why this problem isn't endemic.

Link to comment
Share on other sites

  • 1 year later...

I also encountered this same problem, unfortunately the solution described by John didn't work for me, but the following did:

 

      if ($Status != 'OK') {
tep_redirect(tep_href_link(FILENAME_CHECKOUT_PAYMENT, tep_session_name() . '=' . $HTTP_POST_VARS[tep_session_name()] . '&error_message=' . urlencode($StatusDetail), 'SSL', true, false));
     }

 

As I understand it, setting the parameter to true makes sure the session id is included in the redirect.

 

Mark

www.figlabs.com

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.
Note: Your post will require moderator approval before it will be visible.

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