CMS MADE SIMPLE FORGE

Guestbook

 

[#2843] Getting Logged Out

avatar
Created By: Mike (mikeiam)
Date Submitted: Tue Jan 06 10:33:03 -0500 2009

Assigned To:
Version: None
CMSMS Version: None
Severity: Major
Resolution: Works For Me
State: Closed
Summary:
Getting Logged Out
Detailed Description:
using 1.1.10 with CMSMS 1.5.1. When in the admin panel clicking on next page of
entries I get logged out of the admin panel. Everything else works fine.

Thanks.
ZiggyWigged

=================

Update:
This works for me now that I've upgraded to 1.5.3


History

Comments
avatar
Date: 2009-02-04 07:32
Posted By: Frank Hoek (frankmanl)

I experience the same bug. As long as it's not repaired here's a work around.
The URL of the admin page is something like:
http://www.yourdomain.com/admin/moduleinterface.php?_s_=50a26864&module=Guestbook

To get to page 2 add to the URL: &m1_page=2
So it becomes:
http://www.yourdomain.com/admin/moduleinterface.php?_s_=50a26864&module=Guestbook&m1_page=2

At least now you can manage the entries on page 2 (or 3 or whatever).
Don't know how and why it works, but it may be of help for now.

FrankmaNL
      
avatar
Date: 2009-02-06 10:47
Posted By: Georg Busch (nan)

And here is the solution:

in /Guestbook/lib/classes/module/class.Guestbook.php at lines 932 - 951 there is
checked for several modules (smileys, FCKEditor and Captcha).
The function ModuleIsInstalled() returns just true or false depending on if the
module is installed or not.
There is no instance of the checked modules.
This results in that the cms corefunktion CreateLink() cannot be used to link to
that modules.
(using $this->createLink() would link to the current Guestbook module).
So we just need to do some tiny modifications of the code.

I will demonstrate it with the Captcha module.
The will be the same for the other module links.

In the file /Guestbook/lib/classes/module/class.Guestbook.php at line 938 you
will find something like this:

if ($this->ModuleIsInstalled('Captcha')) 
{
$captchatext = $this->Lang('captcha_module_installed') . ' (<a
href="moduleinterface.php?module=Captcha">change settings</a>)';
} else {
	$captchatext = $this->Lang('captcha_module_not_installed');
}
$this->smarty->assign('captcha', $captchatext);

      
avatar
Date: 2009-02-06 10:51
Posted By: Georg Busch (nan)

...
Sorry, here is part 2 of the commen (somehow i reached the "Add Comment" button
too early)

Change that code i mentioned above into the following:

<pre>
if ($this->ModuleIsInstalled('Captcha')) 
{
// modified by NaN: need moduleinstance of captcha to create a proper link to
that module
	$captcha=$this->getModuleInstance('Captcha');
$captchatext = $this->Lang('captcha_module_installed') .
$captcha->CreateLink($id, 'defaultadmin', $returnid, ' (change settings)');

#$captchatext = $this->Lang('captcha_module_installed') . ' (<a
href="moduleinterface.php?module=Captcha">change settings</a>)';

} else {
	$captchatext = $this->Lang('captcha_module_not_installed');
}
$this->smarty->assign('captcha', $captchatext);
</pre>
      
avatar
Date: 2009-04-03 07:49
Posted By: neLo (neLo)

I have the same problem, but can't figure out the solution :-(

Can anybody in here possibly provide complete instructions on what to change
where?
Thank you.
      
Updates

Updated: 2009-04-03 08:07
description: using 1.1.10 with CMSMS 1.5.1. When in the admin panel clicking on next page of entries I get logged out of the admin panel. Everything else works fine. Thanks. ZiggyWigged => using 1.1.10 with CMSMS 1.5.1. When in the admin panel clicking on next page of entries I get logged out of the admin panel. Everything else works fine. Thanks. ZiggyWigged ================= Update: This works for me now that I've upgraded to 1
resolution_id: => 11
state: Open => Closed