Forums / Addon Admin Tools / Admin Keepalive Timer [Support Thread]

Admin Keepalive Timer [Support Thread]

Views: 19,493

Results 41 to 60 of 79
3 Oct 2013, 11:47 AM
#41
strelitzia avatar

strelitzia

Totally Zenned

Join Date:
Nov 2005
Location:
France
Posts:
588
Plugin Contributions:
1

Admin Keepalive Timer [Support Thread]

So why is it that completely removing the keepalive timer module, i still get that warning appearing, just in a different style popup.
And yes, i removed all the files from the module.
Is there a function built into zen cart that is doing this check, and where can i find it.

Zen Cart developer since 2009 — Zen Cart Solutions
Ecommerce development, integrations & automation — Junction Solutions

8 Oct 2013, 9:45 PM
#42
drbyte avatar

drbyte

Sensei

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

Re: Admin Keepalive Timer [Support Thread]

strelitzia:

And yes, i removed all the files from the module.I think you're mistaken.
strelitzia:

Is there a function built into zen cart that is doing this check, and where can i find it.No. That text exists only in the files in that plugin. You can confirm for yourself using the Developers Toolkit.

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

15 Dec 2013, 11:52 AM
#43
alhakeem2001 avatar

alhakeem2001

Zen Follower

Join Date:
Nov 2007
Posts:
434
Plugin Contributions:
1

Re: Admin Keepalive Timer [Support Thread]

DrByte, I think the plugin is working ok , except that after installing the plugin I'm having a blank pages on admin page after making any change on the admin panel and then when I click on submit/save I get the blank page ! why is that ? I'm using zc V1.5.1 on Firfox 26.0 !

15 Dec 2013, 12:52 PM
#44
alhakeem2001 avatar

alhakeem2001

Zen Follower

Join Date:
Nov 2007
Posts:
434
Plugin Contributions:
1

Re: Admin Keepalive Timer [Support Thread]

And Now I can't login to my admin page, Once I get to the admin logins page and click on login, I get a blank page ! I check the logs , I got this error and I do't know what to do now ! Should I remove the plugins now?
**
[15-Dec-2013 05:43:10] PHP Warning: Cannot modify header information - headers already sent by (output started at /home1/arabbro1/public_html/newadmin/includes/keepalive_module.php:34) in /home1/arabbro1/public_html/newadmin/keepalive.php on line 12
**

17 Dec 2013, 8:10 PM
#45
alhakeem2001 avatar

alhakeem2001

Zen Follower

Join Date:
Nov 2007
Posts:
434
Plugin Contributions:
1

Re: Admin Keepalive Timer [Support Thread]

DrByte.. are you on a Holiday ? I've been waiting for your reply, but you didn't show up !! Please help ..

20 Dec 2013, 9:11 PM
#46
alhakeem2001 avatar

alhakeem2001

Zen Follower

Join Date:
Nov 2007
Posts:
434
Plugin Contributions:
1

Re: Admin Keepalive Timer [Support Thread]

Guys, I'm having a blank page after the time-out on the admin panel, the log file is pointing to this line in the admin/keepalive.php on line 12
Which is: ** header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");**
and the whole log's info is:

** PHP Warning: Cannot modify header information - headers already sent by (output started at /home1/public_html/newadmin/includes/keepalive_module.php:34) in /home1/public_html/newadmin/keepalive.php on line 12**

Is that happening because I changed the time format from the US ( M,D,Y) to GB ( D,M,Y)? and how to fix the problem with the blank page ?:frusty:

28 Feb 2014, 2:38 PM
#47
jeking avatar

jeking

Totally Zenned

Join Date:
Oct 2005
Location:
Chicago, IL USA
Posts:
1,592
Plugin Contributions:
0

Re: Admin Keepalive Timer [Support Thread]

I'm getting the 'We are unable to connect to the server. Your work may be lost. Please review your work and perhaps copy information to your clipboard if you had any work in progress which you do not wish to lose.' pop-up. I understand the message, but what might be the cause to look to fix?

Using this on Zen 1.5.1.

Jim
Wheaton Website Services

13 Mar 2014, 1:25 PM
#48
dw08gm avatar

dw08gm

Totally Zenned

Join Date:
Sep 2008
Location:
DownUnder, overlooking South Pole.
Posts:
1,018
Plugin Contributions:
2

Re: Admin Keepalive Timer [Support Thread]

Whether it is the code, the installation (including uninstallation) instructions, or both, it simply does not work with xampp localhost.

With xampp this mod is defective and could prevent further development of your site, as others above have testified.

Thanks for nothing but a headache.

13 Mar 2014, 2:33 PM
#49
devus avatar

devus

New Zenner

Join Date:
Jan 2009
Posts:
35
Plugin Contributions:
0

Re: Admin Keepalive Timer [Support Thread]

After installing this plug-in, by renaming the admin directory and then uploading the file structure, when I log in to admin I just get a blank screen, so unistalled.

30 Mar 2014, 7:02 PM
#50
fabburl avatar

fabburl

New Zenner

Join Date:
Sep 2012
Posts:
18
Plugin Contributions:
0

Re: Admin Keepalive Timer [Support Thread]

So I have been getting weird issues on one of my sites that uses the keepalive module. What happens is that after I login or update anything, it immediately takes me to a blank page. I am still logged in to the site, but it appears that the admin will not return me to the page I was editing before. The debug message is as other posters have mentioned:

I am also getting the following debug message PHP Warning: Cannot modify header information - headers already sent by (output started at /home/content/whatever/xxxxxxx/adminsection/includes/keepalive_module.php:34) in /home/content/whatever/functions/general.php on line 21

When I removed all the module's files the issue went away.

30 Mar 2014, 8:07 PM
#51
drbyte avatar

drbyte

Sensei

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

Re: Admin Keepalive Timer [Support Thread]

fabburl:

So I have been getting weird issues on one of my sites that uses the keepalive module. What happens is that after I login or update anything, it immediately takes me to a blank page. I am still logged in to the site, but it appears that the admin will not return me to the page I was editing before. The debug message is as other posters have mentioned:

I am also getting the following debug message PHP Warning: Cannot modify header information - headers already sent by (output started at /home/content/whatever/xxxxxxx/adminsection/includes/keepalive_module.php:34) in /home/content/whatever/functions/general.php on line 21
Can't seem to replicate this on my own site.

What's different in your admin files compared to a fresh brand new uncustomized install of ZC?

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

30 Mar 2014, 8:23 PM
#52
iray avatar

iray

New Zenner

Join Date:
Jun 2007
Posts:
72
Plugin Contributions:
0

Re: Admin Keepalive Timer [Support Thread]

Adding the following code:

if(!in_array('header.php', array_map('basename', get_included_files())))
	return;

to the very beginning of YOUR_ADMIN/includes/keepalive_module.php should do the trick.

31 Mar 2014, 5:00 AM
#53
drbyte avatar

drbyte

Sensei

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

Re: Admin Keepalive Timer [Support Thread]

iRAY:

Adding the following code:

if(!in_array('header.php', array_map('basename', get_included_files())))
return;

> 
> to the very beginning of YOUR_ADMIN/includes/keepalive_module.php should do the trick.
Um ... since header.php is the ONLY file which calls keepalive_module.php, why would that code suggestion have any helpful effect?

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

10 Apr 2014, 11:38 PM
#54
wazer avatar

wazer

New Zenner

Join Date:
Apr 2014
Posts:
12
Plugin Contributions:
0

Re: Admin Keepalive Timer [Support Thread]

Hi I'm new to Zen cart and i think I'm doing pretty well, i normally dont like addons since they tend to slow down or get way too much crowded in my opinion, i like it clean simple and fresh, but i was looking for a anti log-out for admin page, i found yours, which by the way is great, tho i would prefer it not to force navigate to the site when the time runs out, since it can be frustrating working with other online documents and suddenly it moves away from that ;)

I Came here to say that i also got issues with blank pages, when logging in to admin page after i installed this addon, also when duplication products in same groups, it would give me the blank pages, however the cmd was sent successful to the server to demand duplicate but given blank pages all the time.

I'm using Firefox 28 if that helps you in anyways and I'm using the latest version of Zen Cart 1.5.1 as of this date 11-04-2014/eu date format with the theme "black pure free"

16 Apr 2014, 11:11 PM
#55
wazer avatar

wazer

New Zenner

Join Date:
Apr 2014
Posts:
12
Plugin Contributions:
0

Re: Admin Keepalive Timer [Support Thread]

DrByte:

Um ... since header.php is the ONLY file which calls keepalive_module.php, why would that code suggestion have any helpful effect?

Could you reply to my reply ;)?

17 Apr 2014, 5:48 PM
#56
drbyte avatar

drbyte

Sensei

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

Re: Admin Keepalive Timer [Support Thread]

If you're getting blank pages, you'll need to sort out whatever PHP errors are happening as a result. See your /logs/ folder.

http://www.zen-cart.com/content.php?124-blank-page

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

22 Aug 2014, 1:05 PM
#57
dh010010 avatar

dh010010

New Zenner

Join Date:
Aug 2012
Posts:
23
Plugin Contributions:
0

Re: Admin Keepalive Timer [Support Thread]

Is there any way to adapt this to work for the main site? I am looking to display the same idle warning to logged in customers. I have tried and failed..... any help would be great :o)

Running zc 1.5.3

We Fix Information Technology - we're making I.T. simple!
https://www.wefixitonline.co.uk

18 Sep 2014, 7:25 PM
#58
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,114
Plugin Contributions:
56

Re: Admin Keepalive Timer [Support Thread]

alhakeem2001:

Guys, I'm having a blank page after the time-out on the admin panel, the log file is pointing to this line in the admin/keepalive.php on line 12
Which is: ** header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");**
and the whole log's info is:

** PHP Warning: Cannot modify header information - headers already sent by (output started at /home1/public_html/newadmin/includes/keepalive_module.php:34) in /home1/public_html/newadmin/keepalive.php on line 12**

Is that happening because I changed the time format from the US ( M,D,Y) to GB ( D,M,Y)? and how to fix the problem with the blank page ?:frusty:

DrByte:

Can't seem to replicate this on my own site.

What's different in your admin files compared to a fresh brand new uncustomized install of ZC?
The issue is with the November 2013 (v1.0) update, where an initialization script was added to load the keepalive_module.php. Since that module outputs a <div>, that's where the error originates. Using the previous (beta0.3) version corrects the issue (albeit with a single-line modification to the admin's /includes/header.php).

Just remember, don't use this plugin for Zen Cart v1.5.2 and later ... it's already included!

4 Oct 2014, 10:41 PM
#59
anthonytekatch avatar

anthonytekatch

New Zenner

Join Date:
Oct 2014
Location:
Canada
Posts:
1
Plugin Contributions:
0

Re: Admin Keepalive Timer [Support Thread]

lat9:

Just remember, don't use this plugin for Zen Cart v1.5.2 and later ... it's already included!

I installed 1.5.3 from scratch and still lose my work without warning when I am editing a page as follows

  1. Tools
  2. Define Pages Editor
  3. Wait 15 minutes or more
  4. Save
  5. ... I am asked to log in again and my changes are gone.

Am I going about things in the wring way?

Thanks in advance.

5 Oct 2014, 12:53 PM
#60
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,114
Plugin Contributions:
56

Re: Admin Keepalive Timer [Support Thread]

lat9:

Just remember, don't use this plugin for Zen Cart v1.5.2 and later ... it's already included!
My bad, for parroting the statement made by the last module updater instead of verifying before "speaking" -- you'll need to install this plugin (the previous version uploaded by DrByte) for this function to be present in all current Zen Cart installations.