Zen Cart Logo
Forums / Discounts/Coupons, Gift Certificates, Newsletters, Ads / Send Gift Certificate - login time_out

Send Gift Certificate - login time_out

Views: 4,778

Results 1 to 11 of 11
8 Dec 2012, 10:15 AM
#1
gohealth avatar

gohealth

New Zenner

Join Date:
Nov 2011
Location:
Brisbane, Australia
Posts:
35
Plugin Contributions:
0

Send Gift Certificate - login time_out

Hi,

I have just set up Gift Certificate functionality and all was working fine as I tested it until I got to the SEND A GIFT CERTIFICATE functionality. When logged into my account I can see I have a Gift Certificate Account with a balance of $19.81. I choose the SEND A GIFT CERTIFICATE button which takes me to the /index.php?main_page=gv_send page. I enter the details of the person I'm sending it to and choose send but get an error:

**Login Time Out **
Whoops! Sorry, but you are not allowed to perform the action requested.
You are still logged in to your account and may continue shopping. Please choose a destination from a menu.

I'm now on this page:
/index.php?main_page=time_out

I'm certainly still logged in and it even says I'm still logged in! I have no problems send emails from the site, so know all my mail settings are correct.

Anyone have this issue?

Thanks in advance for any help

26 Dec 2012, 11:24 PM
#2
jewel1114 avatar

jewel1114

New Zenner

Join Date:
Dec 2012
Posts:
1
Plugin Contributions:
0

Re: Send Gift Certificate - login time_out

I have the exact same problem with our zencart gift certificate function. We just moved to a different hosting company and installed/upgraded to 1.5.1. It was working fine in the original cart and now the send gift certificate function is not working at all with the exact same (time out/not allowed) message. Everything else in the cart is working fine.

Does anyone have a solution or an idea of what might be wrong with our installs? Could it be a sendmail permission problem from the customer's account area or something similar? What email is the send gift cert function using in the From email?

Thanks.

19 Feb 2013, 3:17 AM
#3
britt avatar

britt

New Zenner

Join Date:
Aug 2010
Posts:
8
Plugin Contributions:
0

Re: Send Gift Certificate - login time_out

I have the EXACT same problem. Since I upgraded to 1.5.1 I have the same problem with the Gift Certificates. When we try to send from customer to customer, we get taken to http://www.brittishdesigns.com/shop/index.php?main_page=time_out. anyone out there? HELP PLEASE!! I've been searching for days trying to solve this issue.

19 Feb 2013, 4:52 AM
#4
drbyte avatar

drbyte

Sensei

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

Re: Send Gift Certificate - login time_out

britt:

I have the EXACT same problem. Since I upgraded to 1.5.1 I have the same problem with the Gift Certificates. When we try to send from customer to customer, we get taken to http://www.brittishdesigns.com/shop/index.php?main_page=time_out. anyone out there? HELP PLEASE!! I've been searching for days trying to solve this issue.
Um, over at http://www.zen-cart.com/showthread.php?193198-Trying-to-send-gift-certificate-hit-quot-send-quot-get-404-page-not-found&p=1187257#post1187257 you posted that your problem was a "404 page not found" message, but this thread is talking about a "time out" message.
Which is it?

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

19 Feb 2013, 4:56 AM
#5
britt avatar

britt

New Zenner

Join Date:
Aug 2010
Posts:
8
Plugin Contributions:
0

Re: Send Gift Certificate - login time_out

One customer is reporting a time-out, and another is saying the 404 page not found. When I personally test it, I get this:

Whoops! Sorry, but you are not allowed to perform the action requested.
You are still logged in to your account and may continue shopping. Please choose a destination from a menu.

from this page:
/index.php?main_page=time_out

I'm wondering if my customer who reported the page not found was mistaken. Anyway - when I personally try this, I get the Time Out

23 Apr 2013, 9:14 PM
#6
britt avatar

britt

New Zenner

Join Date:
Aug 2010
Posts:
8
Plugin Contributions:
0

Re: Send Gift Certificate - login time_out

It's been two months and I'm STILL having this problem. I can't figure it out. Once Gift Certificates are purchased my customers can't send them to anyone else. This is the error that pops up when you hit confirm to send:

Whoops! Sorry, but you are not allowed to perform the action requested.

You are still logged in to your account and may continue shopping. Please choose a destination from a menu.

Can anyone PLEASE help me???

29 Sep 2013, 3:14 AM
#7
gohealth avatar

gohealth

New Zenner

Join Date:
Nov 2011
Location:
Brisbane, Australia
Posts:
35
Plugin Contributions:
0

Re: Send Gift Certificate - login time_out

Hi Brit,

I too am still searching for a problem to this issue. It sat so long, I forgot about it till I just had a customer buy another Gift Certificate and is getting the same error. I've tried to follow the coding, but must say I'm stumped.

Please, any GURU's out there can take a look at 1.5.1 and the SEND GIFT CERTIFICATE Functionality and get this fixed? My previous post above has all the details of what we are doing.
:wacko:
ERROR MESSAGE AS FOLLOWS:

TITLE OF PAGE --> Home :: Login Time Out

Whoops! Sorry, but you are not allowed to perform the action requested.

You are still logged in to your account and may continue shopping. Please choose a destination from a menu.

29 Sep 2013, 3:59 AM
#8
gohealth avatar

gohealth

New Zenner

Join Date:
Nov 2011
Location:
Brisbane, Australia
Posts:
35
Plugin Contributions:
0

Re: Send Gift Certificate - login time_out

Hi all,

I found a solution to my problem, but not sure really what the main issue was other than there must have been a template issue. The template has a file:
/usr/local/pem/vhosts/111483/webspace/httpdocs/includes/templates/theme492/templates/tpl_gv_send_default.php
which is of * @version $Id: tpl_gv_send_default.php 5924 2007-02-28 08:25:15Z drbyte $. This is probably the date of the template, or of the date this file was last touched when creating the template.

Version 1.5.1 has a default template file:
/usr/local/pem/vhosts/111483/webspace/httpdocs/includes/templates/template_default/templates/tpl_gv_send_default.php
which is of * @version $Id: tpl_gv_send_default.php 18695 2011-05-04 05:24:19Z drbyte $

Obviously, the default file is updated when 1.5.1 came out by the looks of it

My older template file is overwriting the updates that were done for version 1.5.1. Not sure what the issues was, but MY SOLUTION WAS TO SIMPLY remove the tpl_gv_send_default.php file from my template directory and let the default file run. It looks like crap formatting wise, but at least it works and send the Gift Certificate via email to someone else.

Hope this helps everyone! Check you template or override files if you are having this issue.

DRBYTE, perhaps you can say why this code doesn't work in 1.5.1 (it is in my template file):


Line #10 : * @version $Id: tpl_gv_send_default.php 5924 2007-02-28 08:25:15Z drbyte $

Line #22 : <div class="buttonRow forward"><a href="<?php echo zen_href_link(FILENAME_GV_SEND, '', 'SSL', false); ?>"><?php echo zen_image_button(BUTTON_IMAGE_SEND_ANOTHER, BUTTON_SEND_ANOTHER_ALT); ?></a></div>

Line #47 : <form action="<?php echo zen_href_link(FILENAME_GV_SEND, 'action=process', 'SSL', false); ?>" method="post">

Line #81 : <?php if ($messageStack->size('gv_send') > 0) echo $messageStack->output('gv_send'); ?>

Line #83 : <form action="<?php echo zen_href_link(FILENAME_GV_SEND, 'action=send', 'SSL', false); ?>" method="post">


Seems the old file is using " method="post"> whereas the updated is not.

Who knows, but it now works!

29 Sep 2013, 4:59 PM
#9
drbyte avatar

drbyte

Sensei

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

Re: Send Gift Certificate - login time_out

Your old template uses direct <form...> tags, whereas the reliable one calls the zen_draw_form() function to build the correct form output.

The correct action to take is to merge the template_default changes into your custom template file: compare the old template_default file against the new template_default file to see the changes made by the developers, and then put those changes into your custom template.
This is the same step you should take with ALL files when you're upgrading. That's why the upgrade documentation goes to great lengths to advise as such. https://www.zen-cart.com/upgrade

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

12 Nov 2013, 11:44 AM
#10
gohealth avatar

gohealth

New Zenner

Join Date:
Nov 2011
Location:
Brisbane, Australia
Posts:
35
Plugin Contributions:
0

Re: Send Gift Certificate - login time_out

Thanks for the explanation DrByte. I paid someone to do my upgrade. They obviously did not do a thorough job!

5 Oct 2014, 3:17 AM
#11
ross_connell avatar

ross_connell

New Zenner

Join Date:
Mar 2014
Location:
Sydney, Australia, Australia
Posts:
2
Plugin Contributions:
0

Re: Send Gift Certificate - login time_out

Hi DrByte,

I have only had version 1.5.1, so I have no previous version to compare to, however I'm having the same Time out error, when attempting to send certificates. any ideas, I noticed that there is now 1.5.3 release available do you think this version would have the correction?