Intechnic
Users Developers
Home / Forums / In-Portal CMS / Need Help! / Patches for In-portal v4.3.0 and modules / Topic Posts

In-Portal Forum

This is a place for users of In-Portal to ask questions, discuss various topics, and interact with other members of the In-Portal Community. Please report bugs through the Bugs Team (not the Forum). If you are interested in contributing or joining one of the many Teams for In-Portal, please check out the Contribute section of the website.
 

In-Portal Forum

Patches for In-portal v4.3.0 and modules (10)


Posted: 04/10/2008 4:20:15 PM

Reply Quoted  


Below you can find patches for v4.3.0:

1. Ajax error under Admin->Community->Users section when trying to use Mass Mailing functionality.

Fix is simple, open core/admin_templates/emails/mass_email.tpl and add at the very top:

<inp2:adm_SetPopupSize width="750" height="400"/>



2. Session expiration on Admin->Tools->Backup section.

To fix, open kernel/include/usersession.php

and replace all instances of:

find and replace:

$this->Set("LastAccessed"adodb_mktime());

with

$this
->Set("LastAccessed"adodb_mktime() + $objConfig->Get("SessionTimeout"));



and


find and replace:

$this->Set("LastAccessed"adodb_date('U') );

with

$this
->Set("LastAccessed"adodb_date('U') + $objConfig->Get("SessionTimeout"));



Feel free to post here or support with any questions.

Posted: 04/10/2008 4:32:06 PM

Reply Quoted  


Hi Dmitry,

So if i got it right i should replace :

adodb_mktime()); in adodb_mktime('U')

adodb_mktime() in adodb_mktime('U')

Thanks



Dmitry wrote:04/10/2008 4:20:15 PM
Below you can find patches for v4.3.0:

1. Ajax error under Admin->Community->Users section when trying to use Mass Mailing functionality.

Fix is simple, open core/admin_templates/emails/mass_email.tpl and add at the very top:

<inp2:adm_SetPopupSize width="750" height="400"/>



2. Session expiration on Admin->Tools->Backup section.

To fix, open kernel/include/usersession.php

and replace all instances of:

find and replace:

$this->Set("LastAccessed"adodb_mktime());

with

$this
->Set("LastAccessed"adodb_mktime() + $objConfig->Get("SessionTimeout"));



and


find and replace:

$this->Set("LastAccessed"adodb_date('U') );

with

$this
->Set("LastAccessed"adodb_date('U') + $objConfig->Get("SessionTimeout"));



Feel free to post here or support with any questions.


Posted: 04/10/2008 5:10:32 PM

Reply Quoted  


Stefan,

I have updated my original post. Please carefully review it.

Thanks.

Posted: 04/18/2008 4:17:27 PM

Reply Quoted  


Dmitry wrote:04/10/2008 4:20:15 PM
Below you can find patches for v4.3.0:

1. Ajax error under Admin->Community->Users section when trying to use Mass Mailing functionality.

Fix is simple, open core/admin_templates/emails/mass_email.tpl and add at the very top:

<inp2:adm_SetPopupSize width="750" height="400"/>



2. Session expiration on Admin->Tools->Backup section.

To fix, open kernel/include/usersession.php

and replace all instances of:

find and replace:

$this->Set("LastAccessed"adodb_mktime());

with

$this
->Set("LastAccessed"adodb_mktime() + $objConfig->Get("SessionTimeout"));



and


find and replace:

$this->Set("LastAccessed"adodb_date('U') );

with

$this
->Set("LastAccessed"adodb_date('U') + $objConfig->Get("SessionTimeout"));



Feel free to post here or support with any questions.


thanks,
Anthony

Posted: 04/18/2008 4:25:13 PM

Reply Quoted  


Ok, it seems I can not go back and edit a post so I'll post again as my responses did not show up in the first reply.
--------------------------------------------------------
To fix, open kernel/include/usersession.php

and replace all instances of:

find and replace:

$this->Set("LastAccessed"adodb_mktime());

with

$this
->Set("LastAccessed"adodb_mktime() + $objConfig->Get("SessionTimeout"));



Dmitry,
I was able to find the above in the file and change it





find and replace:

$this->Set("LastAccessed"adodb_mktime('U';

with

$this
->Set("LastAccessed"adodb_mktime('U') + $objConfig->Get("SessionTimeout"));



This line can not be found in file. Only thing close is "adodb_date('U')" is this in another file? Or is the above a typo on what to look for?

thanks,
Anthony

Posted: 04/18/2008 4:42:21 PM

Reply Quoted  


Yes, thank you for pointing this out.

Original post has been corrected.

Posted: 05/14/2008 1:17:07 AM

Reply Quoted  


The problem is about edit kernel/include/usersession.php.

In this file usersession.php we need to update lines in two places.


$this->Set("LastAccessed", adodb_mktime() + $objConfig->Get("SessionTimeout"));
$this->Set("LastAccessed", adodb_date('U') + $objConfig->Get("SessionTimeout"));

Original file include letter U with brockets "U" and not with comas 'U'

This is original line - $this->Set("LastAccessed",adodb_date("U"));

Is it matter if we have brockets instead of comas?

Posted: 05/15/2008 10:27:27 PM

Reply Quoted  


I try to update this PHP file and have problem with editor. I used Note Pad and other Code Editors on my server. For some reason after every update In-Portal does not want to read this file.

Dmitry, maybe easy will be to making link to newly updated file where we can only download in our server?

Posted: 05/16/2008 7:00:46 PM

Reply Quoted  


Hello Konstantin,

I would recommend using more professional HTML editor instead of Notepad or Wordpad.

File patch will be available in our next v4.3.1 release.

Thanks.


Posted: 05/16/2008 7:08:06 PM

Reply Quoted  


Dmitry wrote:05/16/2008 7:00:46 PM
Hello Konstantin,

I would recommend using more professional HTML editor instead of Notepad or Wordpad.

File patch will be available in our next v4.3.1 release.

Thanks.
Ok. It's better to wait for next reliese.