Problem with UserID Module

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
spoonicus

Problem with UserID Module

Post by spoonicus »

I talked to Silmarillion about this on IRC, but he wasn't able to duplicate it. Maybe someone more savvy than me can figure this out.

I was playing with the UserID and ProtectedPages modules. At one point, I uninstalled them, then deleted the folders from the modules folder. Then I reuploaded them, and reinstalled the modules in CMSMS. I checked with phpmyadmin to see that the tables were being created correctly for UserID. All looks good.

I created a Content Page called "Log In". On that page, I have:

{cms_module module="userid"}

That's it. No other code.

When I click on that page in the menu, I get the UserID login page. I enter a valid CMSMS username and password, click Sign In button, then I see this error:

Warning: Smarty error: unable to read resource: "db:Log_In?CMSSESSID=22cbdccfdc25f7c9ca084f86fc152ac8" in /home/comtrac/public_html/cms/lib/smarty/Smarty.class.php on line 1088

Happens no matter what user I use, or whether I use IE or FireFox.

Anyone have any ideas what could be causing this?

Edit: According to wishy on IRC, PHP is passing the SessionID to the login and it needs to be parsed out. Sil, do you have time to look at this?
Last edited by spoonicus on Wed Aug 24, 2005 12:57 am, edited 1 time in total.
User avatar
Silmarillion
Dev Team Member
Dev Team Member
Posts: 483
Joined: Sun Jan 02, 2005 9:10 pm
Location: Denmark

Re: Problem with UserID Module

Post by Silmarillion »

Hi Spoonicus

I talked at bit with wishy who had some suggestions... but still I'm not sure where the probem is, I dont think I do any of the things wishy suspects. And debugging is complicated a bit by the fact that I cannot regenerate the error here.
I'll keep working on it, but I'm afraid I cannot give you any timeframe...

Hang in there...

Best regards
Morten/Silmarillion
spoonicus wrote: I talked to Silmarillion about this on IRC, but he wasn't able to duplicate it. Maybe someone more savvy than me can figure this out.

I was playing with the UserID and ProtectedPages modules. At one point, I uninstalled them, then deleted the folders from the modules folder. Then I reuploaded them, and reinstalled the modules in CMSMS. I checked with phpmyadmin to see that the tables were being created correctly for UserID. All looks good.

I created a Content Page called "Log In". On that page, I have:

{cms_module module="userid"}

That's it. No other code.

When I click on that page in the menu, I get the UserID login page. I enter a valid CMSMS username and password, click Sign In button, then I see this error:

Warning: Smarty error: unable to read resource: "db:Log_In?CMSSESSID=22cbdccfdc25f7c9ca084f86fc152ac8" in /home/comtrac/public_html/cms/lib/smarty/Smarty.class.php on line 1088

Happens no matter what user I use, or whether I use IE or FireFox.

Anyone have any ideas what could be causing this?

Edit: According to wishy on IRC, PHP is passing the SessionID to the login and it needs to be parsed out. Sil, do you have time to look at this?
User avatar
Silmarillion
Dev Team Member
Dev Team Member
Posts: 483
Joined: Sun Jan 02, 2005 9:10 pm
Location: Denmark

Re: Problem with UserID Module

Post by Silmarillion »

Btw. Spoonicus

In version 0.3.5 I have begun work on other target after logging successfully in, are you using that option?

Sil.
spoonicus

Re: Problem with UserID Module

Post by spoonicus »

No, I haven't tried that. Do you think it would help? What's the option to do it?

Also, I can give you access to the account that's having the problem if it will help.
User avatar
Silmarillion
Dev Team Member
Dev Team Member
Posts: 483
Joined: Sun Jan 02, 2005 9:10 pm
Location: Denmark

Re: Problem with UserID Module

Post by Silmarillion »

I really don't know if it would help, but I'll be glad to have a look and see if I can fix anything... would really like the rather mysterious problem to go away...

M/sil
spoonicus wrote: No, I haven't tried that. Do you think it would help? What's the option to do it?

Also, I can give you access to the account that's having the problem if it will help.

User avatar
Silmarillion
Dev Team Member
Dev Team Member
Posts: 483
Joined: Sun Jan 02, 2005 9:10 pm
Location: Denmark

Re: Problem with UserID Module

Post by Silmarillion »

Hi Spoonicus

I just uploaded an new, a bit experimental, version of UserID. I did a couple of changes which may or may not affect your problem. Please have a go with this, at least you are then using my developlment versio which will make it easier for me to stay on your problem.
the module is in the wiki-page

Looking forward to hearing from you.

Best regards
Morten/Silmarillion
spoonicus

Re: Problem with UserID Module

Post by spoonicus »

Sil,

Using 0.4.0, there's no difference, exactly the same error.

spoon
spoonicus

Re: Problem with UserID Module

Post by spoonicus »

Sil worked with me on IRC today to resolve this issue. It works for UserID users, but still needs work for CMS Admin users.

It works well enough for me, and I'd just like to thank Sil & wishy for their excellent support in resolving this.

You guys rock!
Keine Ahnung

Re: Problem with UserID Module

Post by Keine Ahnung »

spoonicus wrote: Sil worked with me on IRC today to resolve this issue. It works for UserID users, but still needs work for CMS Admin users.

It works well enough for me, and I'd just like to thank Sil & wishy for their excellent support in resolving this.

You guys rock!
Hi! How did you solve this problem? I'm having the same prob here, too.

Warning: Smarty error: unable to read resource: "db:protectedpage?CMSSESSID=cace241909a57b4396228780de61f055" in /home/somesite/public_html/lib/smarty/Smarty.class.php on line 1088

dominic
Last edited by Keine Ahnung on Thu Sep 15, 2005 2:31 pm, edited 1 time in total.
spoonicus

Re: Problem with UserID Module

Post by spoonicus »

I'm using version 0.4.0, but I see Sil pulled it to work on some bugs. Also, I'm using the module users, not the cms users db.

When we were working on it, he couldn't get the cms users to work for me. I think he's got a clearer picture of what the problem is, but it seems to be server-dependent and involve the Apache config as well as the .htaccess file.

Sil would have more specific info, best place to catch him is on IRC.
Keine Ahnung

Re: Problem with UserID Module

Post by Keine Ahnung »

Thanks for your answer, spoonicus.

I unfortunately don't have access to httpd.conf. So this is no option for me. I am indeed using version 0.3.5.1 of the UserID-Module because 0.4 isn't available for download no longer in the wiki. What I understand is that the CMSSESSID is attached to the redirection URL with an ? instead of &. So the cms looks for a page in the DB called page?CMSSESSID=l32jk423j42l23j4l2lk4jl23j4lkj. This page certainly doesn't exist. The login actually works fine but the redirection fails and the user is given an error. So far I unfortunately wasn't able to locate the code which is responsible for this behaviour.

I really like the UserID-module and I hope that there will be a workaround one day... or another.

dominic
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm
Location: Fernie British Columbia, Canada

Re: Problem with UserID Module

Post by calguy1000 »

I have another problem with the UserID module.

Trying to use my CustomContent module (which depends on UserID) on my main page and although I am logged in the UserID->LoggedIn() method returns false.

Here's a snippet of code from the CustomContent module

Code: Select all

   $module = $this->GetModuleInstance('UserID');
    if( !$module ) return FALSE;                                     [b]<-- this passes[/b]

   if( !$module->LoggedIn() )                                         [b]<-- this fails[/b]
      {
         $valid = 0;      
      }
    else
      {
        if( $valid == 0 && isset( $parms['group'] ) )
          {
            foreach( $parms['group'] as $g )
and I have validated that I am logged in by going to the login page.  There UserID tells me I'm logged in.

Any ideas simmilarion?
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
Keine Ahnung

Re: Problem with UserID Module - possible solution

Post by Keine Ahnung »

Here's is a little hack for people having problem with the UserID-module login because the session paramater and value are added wrongly to the redirection Url.
This works for me. Please, Use it on your own risk.

Go to ./lib and open misc.functions.php. On line 32 change

function redirect($to, $noappend=false)

to

function redirect($to, $noappend=true)

Please note that this is a quick-and-dirty hack. There may be unknown side effects.

Update: this hack works for version 0.10.1

see you

dominic
Last edited by Keine Ahnung on Mon Sep 19, 2005 5:10 pm, edited 1 time in total.
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm
Location: Fernie British Columbia, Canada

Re: Problem with UserID Module

Post by calguy1000 »

I wonder if this was what was causing my difficulty.  However, when I placed debug statements in the UserID module, it had the session id, and all other variables, and everything worked if I replaced the adodb calls with mysql calls directly.  it's just wierd.
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm
Location: Fernie British Columbia, Canada

Re: Problem with UserID Module

Post by calguy1000 »

I just looked in my misc.functions.php, and the noappend method doesn't do anything, that whole chunk is commented out.

I am running the latest beta.
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
Locked

Return to “Modules/Add-Ons”