Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Updating Shopping Cart error


jhande

Recommended Posts

Sorry if this has been resolved already but I could not find it for the life of me.

 

I just installed Ultimate SEO URLs v2.1d Updated and all seemed to go fine, except...

 

It doesn't matter whether I am logged in or not.

 

When I try to update an item (remove or change qty) from the cart, I receive this error -

Error!

 

Unable to determine the page link!

 

Also when I complete and order and I'm on the checkout_success.php page, when I click continue I am automatically logged out and redirected to the login.php page.

 

Any ideas or words of wisdom?

- :: Jim :: -

- My Toolbox ~ Adobe Web Bundle, XAMPP & WinMerge | Install ~ osC v2.3.3.4 -

Link to comment
Share on other sites

This is often due to $PHP_SELF not being set.

 

Its done in application_top

 

// set php_self in the local scope

if (!isset($PHP_SELF)) $PHP_SELF = $HTTP_SERVER_VARS['PHP_SELF'];

 

 

If a function is using tep_href_link but $PHP_SELF has'nt been set within, through global or otherwise, you'll also get this.

Sam

 

Remember, What you think I ment may not be what I thought I ment when I said it.

 

Contributions:

 

Auto Backup your Database, Easy way

 

Multi Images with Fancy Pop-ups, Easy way

 

Products in columns with multi buy etc etc

 

Disable any Category or Product, Easy way

 

Secure & Improve your account pages et al.

Link to comment
Share on other sites

Thank you Sam for the reply and help.

 

I already have the below code in my application_top.php file. :huh:

// set php_self in the local scope

if (!isset($PHP_SELF)) $PHP_SELF = $HTTP_SERVER_VARS['PHP_SELF'];

 

I don't understand what I should check for or do regarding - "If a function is using tep_href_link but $PHP_SELF has'nt been set within, through global or otherwise, you'll also get this." :blush:

- :: Jim :: -

- My Toolbox ~ Adobe Web Bundle, XAMPP & WinMerge | Install ~ osC v2.3.3.4 -

Link to comment
Share on other sites

replace $PHP_SELF with $_SERVER['PHP_SELF' or

try by placing the compatability.php file that comes with RC2.

 

if (PHP_VERSION >= 4.1) {

$HTTP_GET_VARS =& $_GET;

$HTTP_POST_VARS =& $_POST;

$HTTP_COOKIE_VARS =& $_COOKIE;

$HTTP_SESSION_VARS =& $_SESSION;

$HTTP_POST_FILES =& $_FILES;

$HTTP_SERVER_VARS =& $_SERVER;

}

 

Satish

Ask/Skype for Free osCommerce value addon/SEO suggestion tips for your site.

 

Check My About US For who am I and what My company does.

Link to comment
Share on other sites

Something is definately gone amuck. :(

 

I replaced - if (!isset($PHP_SELF)) $PHP_SELF = $HTTP_SERVER_VARS['PHP_SELF'];

With this -if (!isset($PHP_SELF)) $PHP_SELF = $SERVER['PHP_SELF'];

I couldn't login, just kept looping back to the login.php page.

 

I made the below edit to the compatability.php file.

 

if (PHP_VERSION >= 4.1) {

$HTTP_GET_VARS =& $_GET;

$HTTP_POST_VARS =& $_POST;

$HTTP_COOKIE_VARS =& $_COOKIE;

$HTTP_SESSION_VARS =& $_SESSION;

$HTTP_POST_FILES =& $_FILES;

$HTTP_SERVER_VARS =& $_SERVER;

}

And still receive the error message -

Error!

 

Unable to determine the page link!

 

when trying to update the cart. <_<

Edited by jhande

- :: Jim :: -

- My Toolbox ~ Adobe Web Bundle, XAMPP & WinMerge | Install ~ osC v2.3.3.4 -

Link to comment
Share on other sites

Oh my god I am so stupid! :blush:

Well I solved this error message -

Error!

 

Unable to determine the page link!

 

when trying to update the cart. I somehow had "Use Search-Engine Safe URL's (still in development) set to True.

 

But I am still having the problem of being logged out after order is processed.

- :: Jim :: -

- My Toolbox ~ Adobe Web Bundle, XAMPP & WinMerge | Install ~ osC v2.3.3.4 -

Link to comment
Share on other sites

in html output file and href function place this line.

// set the type of request (secure or not)

$request_type = (getenv('HTTPS') == 'on') ? 'SSL' : 'NONSSL';

Ask/Skype for Free osCommerce value addon/SEO suggestion tips for your site.

 

Check My About US For who am I and what My company does.

Link to comment
Share on other sites

in html output file and href function place this line.

// set the type of request (secure or not)

$request_type = (getenv('HTTPS') == 'on') ? 'SSL' : 'NONSSL';

 

Thank you Satish. ;)

 

I have added it to the html output file.

 

But I don't understand what the href function file is that I am to add it too. :blush:

- :: Jim :: -

- My Toolbox ~ Adobe Web Bundle, XAMPP & WinMerge | Install ~ osC v2.3.3.4 -

Link to comment
Share on other sites

html_output.php in catalog\includes\functions.

 

 

has function tep_href_link(....

Ask/Skype for Free osCommerce value addon/SEO suggestion tips for your site.

 

Check My About US For who am I and what My company does.

Link to comment
Share on other sites

Thank you Satish.

 

I thought so but wanted to make sure there was not another file involved.

 

Tried that edit also and still getting logged out.

 

:(

- :: Jim :: -

- My Toolbox ~ Adobe Web Bundle, XAMPP & WinMerge | Install ~ osC v2.3.3.4 -

Link to comment
Share on other sites

Just noticed something... :blush:

 

After checkout_success.php, clicking continue and getting redirected to the login.php page. If I click any link in my shop once the page loads I am still logged in. :huh:

 

Nuts... go figure! :wacko:

- :: Jim :: -

- My Toolbox ~ Adobe Web Bundle, XAMPP & WinMerge | Install ~ osC v2.3.3.4 -

Link to comment
Share on other sites

Just noticed something... :blush:

 

After checkout_success.php, clicking continue and getting redirected to the login.php page. If I click any link in my shop once the page loads I am still logged in. :huh:

 

Nuts... go figure! :wacko:

 

Geesh... Just found another problem! :o

 

I can not login from the confirmation email link by just filling in my email address and password. I HAVE to click on the login link in the header navigation first.

 

I quess Ultimate SEO URLs isn't so ultimate for my shop. <_<

- :: Jim :: -

- My Toolbox ~ Adobe Web Bundle, XAMPP & WinMerge | Install ~ osC v2.3.3.4 -

Link to comment
Share on other sites

some links if do not have oscid with cookies not carrying tehmw ill create this issue.

 

Satish

Ask/Skype for Free osCommerce value addon/SEO suggestion tips for your site.

 

Check My About US For who am I and what My company does.

Link to comment
Share on other sites

some links if do not have oscid with cookies not carrying tehmw ill create this issue.

 

Satish

 

Thanks again Satish. ;)

 

Looks like I'll dump Ultimate SEO URLs and try something else. :(

- :: Jim :: -

- My Toolbox ~ Adobe Web Bundle, XAMPP & WinMerge | Install ~ osC v2.3.3.4 -

Link to comment
Share on other sites

Its apretty good and a stable contrib.

Dont dump is try giving some more efforts.

 

The results are pretty good.

 

 

Satish

Ask/Skype for Free osCommerce value addon/SEO suggestion tips for your site.

 

Check My About US For who am I and what My company does.

Link to comment
Share on other sites

Thank you Satish ;)

 

I just did not want to drive you nuts with my problem. :blush:

 

I am newbie regarding PHP & MySQL and only know HTML so I am at your mercy. -_-

 

I am willing to keep trying if you are willing! :)

- :: Jim :: -

- My Toolbox ~ Adobe Web Bundle, XAMPP & WinMerge | Install ~ osC v2.3.3.4 -

Link to comment
Share on other sites

place the link that was to allow for login but You need to navigate.

Some .htacccess rules or some other hard code in application_top.php will not allow this redirect to happen.

 

So place the link that You were clicking and the .htaccess file that You have

 

Satish

Ask/Skype for Free osCommerce value addon/SEO suggestion tips for your site.

 

Check My About US For who am I and what My company does.

Link to comment
Share on other sites

Link from the checkout_process.php =

https://secure.bluehost.com/~handesho/catal...=blah,blah,blah (letters & numbers)

 

When I click it, I go to this URL =

https://secure.bluehost.com/~handesho/catal...=blah,blah,blah (new set of letters & numbers)

 

Link in confirmation email =

https://secure.bluehost.com/~handesho/catal...php?order_id=94

 

When I click it I go to the log-in page =

https://secure.bluehost.com/~handesho/catal...8115204c84b84a3

 

After I fill in my info and click log-in, I go to the index.php page but not shown as logged in, URL =

https://secure.bluehost.com/~handesho/catal...8115204c84b84a3

 

But once I click a link in the site, I automatically show as logged in.

 

How should I compose the line of code to add to my htaccess file? :blush:

RewriteRule ^(.*)-p-(.*).html$ checkout_process.php?action=update=$2&%{QUERY_STRING}

 

Would it help if I post my code for the htaccess and/or application_top.php files? :huh:

- :: Jim :: -

- My Toolbox ~ Adobe Web Bundle, XAMPP & WinMerge | Install ~ osC v2.3.3.4 -

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