Sep 07, 2008 | 11:43 AM  
Welcome

Don't have an account yet? You can create one, it is free, just click here

as a registered user you have some advantages like free downloads, comments and posting on our forums, depending upon this site's configuration and options.

 • •  Control Panel - Register - Login  • • 
Current Stable MDPro Lite 1.0821 Download
  Forum FAQForum FAQ   SearchSearch  UsergroupsUsergroups  PreferencesPreferences  Options forumOptions forum  Watched TopicsWatched Topics  Watched ForumsWatched Forums
Latest forum posts Latest forum posts  Log in to check your private messages Log in to check your private messages    Log inLog in 
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Author Message
TheFatherMind
MD user level 5
MD user level 5


Joined: Feb 13, 2005
Posts: 119
Location: Los Angeles
Member
Post  Posted: Nov 24, 2007 - 11:54 AM Reply with quote Back to top
Post subject: Cannot login to 812

Before I start I should mention that I have read every post I could find on this matter since 2005. I spent some time hacking the code and found some of the follwoing things....

The session variables do not match up so it dumps me right back to the login screen making it seem like it just refreshed.

Where it checks the session varable the..
Code:
 list($module, $authid) = pnVarCleanFromInput('module', 'authid');


Is returning nothing for $module so I tried to add under it...

Code:
$module = pnVarCleanFromInput('module');


But that did not have a positive affect. I have no clue why this is happening. I have .76 running all over and they work perfectly. The 812 version was also logging in okay and then just stopped working and I cannot figure out why. I even went as far as to mind the database and disable almost all the modules and blocks. I did of course set it to the default theme. I tried the recommended fix for PHP5 even though it is running on

PHP 4.3.10
apache 2.0.52-3.1
Redhat Fedora Core Linux

I also tried the other recommendations I cleared cashes, session tables, did a full repair and optimize on the database and I removed my cookies.

I am open to any recommendations.

_________________
... Master Merlin Cul Kirkpatrick
View user's profile Visit poster's website AIM Address Yahoo Messenger MSN Messenger
TiMax
Project Manager
Project Manager


Joined: July 31, 2003
Posts: 1552
Location: Quebec - Canada

Post  Posted: Nov 24, 2007 - 12:13 PM Reply with quote Back to top

Can you post here session table structure

_________________
TiMaxMAX s.o.s.Fantasia e dinamicità Italiane, qualità e servizi Canadesi Web Services, hosting ed housing professionali
View user's profile Visit poster's website AIM Address Yahoo Messenger MSN Messenger ICQ Number
TheFatherMind
MD user level 5
MD user level 5


Joined: Feb 13, 2005
Posts: 119
Location: Los Angeles
bannato
Post  Posted: Nov 24, 2007 - 12:22 PM Reply with quote Back to top

Is this what you are after?

Code:

  `pn_sessid` varchar(32) NOT NULL default '',
  `pn_ipaddr` varchar(20) NOT NULL default '',
  `pn_firstused` int(11) NOT NULL default '0',
  `pn_lastused` int(11) NOT NULL default '0',
  `pn_uid` int(11) NOT NULL default '0',
  `pn_vars` blob,
  PRIMARY KEY  (`pn_sessid`),
  KEY `idx_last` (`pn_lastused`)

_________________
... Master Merlin Cul Kirkpatrick
View user's profile Visit poster's website AIM Address Yahoo Messenger MSN Messenger
TheFatherMind
MD user level 5
MD user level 5


Joined: Feb 13, 2005
Posts: 119
Location: Los Angeles
bannato
Post  Posted: Nov 27, 2007 - 05:15 PM Reply with quote Back to top

Further more, when I log into your site with a bad password I get an "Invalid Credentials" error above the login. I cannot get that to happen on my site.

_________________
... Master Merlin Cul Kirkpatrick
View user's profile Visit poster's website AIM Address Yahoo Messenger MSN Messenger
TheFatherMind
MD user level 5
MD user level 5


Joined: Feb 13, 2005
Posts: 119
Location: Los Angeles
bannato
Post  Posted: Nov 30, 2007 - 08:53 AM Reply with quote Back to top

So is this a bug or something then? What can I do to help you resolve it?

_________________
... Master Merlin Cul Kirkpatrick
View user's profile Visit poster's website AIM Address Yahoo Messenger MSN Messenger
TheFatherMind
MD user level 5
MD user level 5


Joined: Feb 13, 2005
Posts: 119
Location: Los Angeles
bannato
Post  Posted: Dec 02, 2007 - 04:18 PM Reply with quote Back to top

okay so here is my update on this login problem...
One of my ace programmers went through the code for me and we found 2 changes we had to make in order to allow the login to work.

The first thing we had to do was add
session_start();
to the top of pnSession.php

The second thing we had to do was add
return true;
to the top of the pnSecConfirmAuthKey() function in security.php

I am aware that this is likely breaking the security on the site at some level. But I am desperate here. There is clearly some sort of bug here and I have no idea how to fix it. Why do we have to add the session start to the top? Why does the pnSecConfirmAuthKey function never return true? What must we do to isolate the issue and fix it?

_________________
... Master Merlin Cul Kirkpatrick
View user's profile Visit poster's website AIM Address Yahoo Messenger MSN Messenger
TiMax
Project Manager
Project Manager


Joined: July 31, 2003
Posts: 1552
Location: Quebec - Canada

Post  Posted: Dec 04, 2007 - 11:36 AM Reply with quote Back to top

Man, your session table is wrong, this is your poblem, run this query to replace session table in your database

Code:
DROP TABLE IF EXISTS `md_session_info`;
CREATE TABLE `md_session_info` (
  `pn_sessid` varchar(32) NOT NULL default '',
  `pn_ipaddr` varchar(20) NOT NULL default '',
  `pn_firstused` int(11) NOT NULL default '0',
  `pn_lastused` int(11) NOT NULL default '0',
  `pn_uid` int(11) NOT NULL default '0',
  `pn_vars` blob,
  `pn_antispider` varchar(64) NOT NULL default '',
  PRIMARY KEY  (`pn_sessid`),
  KEY `idx_last` (`pn_lastused`),
  KEY `pn_antispider` (`pn_antispider`)
);


Look in your session table, you don't have pn_antispider field

_________________
TiMaxMAX s.o.s.Fantasia e dinamicità Italiane, qualità e servizi Canadesi Web Services, hosting ed housing professionali
View user's profile Visit poster's website AIM Address Yahoo Messenger MSN Messenger ICQ Number
TheFatherMind
MD user level 5
MD user level 5


Joined: Feb 13, 2005
Posts: 119
Location: Los Angeles
bannato
Post  Posted: Dec 04, 2007 - 01:26 PM Reply with quote Back to top

Thank you for responding.
This did not resolve the problem.
I changed the prefix and imported that so that I now have (verified) an "pn_antispider" field.
I removed my local cookie file and cleared the site cache folders.
Is it possible that the "pn_antispider" was added in an upgrade between .75 and 812? If so, why do you suppose it did not get added in an upgrade? I noticed after I upgraded to 812 my md-config file had reset to defaults and I had to put the info back into it.

Is it possible that other new fields did not get created during the upgrade that could be causing or contributing to this?

Okay Master I am anxiously awaiting your next suggestion.

_________________
... Master Merlin Cul Kirkpatrick
View user's profile Visit poster's website AIM Address Yahoo Messenger MSN Messenger
TiMax
Project Manager
Project Manager


Joined: July 31, 2003
Posts: 1552
Location: Quebec - Canada

Post  Posted: Dec 04, 2007 - 06:30 PM Reply with quote Back to top

812 ?
You must install 1.082 for security reasons and because old versions are unsupported.

The best way, just try to install a new fresh installatio of MDPro 1.082 in a subdirectory, so you can be sure if the problem is your server or your installation

_________________
TiMaxMAX s.o.s.Fantasia e dinamicità Italiane, qualità e servizi Canadesi Web Services, hosting ed housing professionali
View user's profile Visit poster's website AIM Address Yahoo Messenger MSN Messenger ICQ Number
TheFatherMind
MD user level 5
MD user level 5


Joined: Feb 13, 2005
Posts: 119
Location: Los Angeles
bannato
Post  Posted: Dec 04, 2007 - 06:48 PM Reply with quote Back to top

I miss typed I am sorry.
This problem started after I patched my .075 to .076 and then applied the mdpro1082.tar.gz patch. So I am and have been version .082

I will do a fresh install to see if that has the same problem. I am sure that will help us know where to look. Thank you!

_________________
... Master Merlin Cul Kirkpatrick
View user's profile Visit poster's website AIM Address Yahoo Messenger MSN Messenger
cdphreaker
New MD user
New MD user


Joined: Feb 04, 2005
Posts: 10

bannato
Post  Posted: Apr 15, 2008 - 05:55 AM Reply with quote Back to top

Hello Tim, I've tried everything which has been mentioned in here. I also reset the sessions table using both MDSOS and manually recreating the tables again. But, nothing seem to be working. Also after that i tried using the htaccess to put "php_flag register_long_arrays On" which also didn't have any effect. The site was perfectly functional and this is the second time this problem is happening.Previous time this thing happened it was fixed using MDSOS but this time it doesn't seem to do anything at all. Please advise.
View user's profile Visit poster's website
TiMax
Project Manager
Project Manager


Joined: July 31, 2003
Posts: 1552
Location: Quebec - Canada

Post  Posted: Apr 15, 2008 - 06:38 AM Reply with quote Back to top

md version please ..... with MD 1.08x MDsos is not good.
Have you tired to replace md_session table ?

_________________
TiMaxMAX s.o.s.Fantasia e dinamicità Italiane, qualità e servizi Canadesi Web Services, hosting ed housing professionali
View user's profile Visit poster's website AIM Address Yahoo Messenger MSN Messenger ICQ Number
cdphreaker
New MD user
New MD user


Joined: Feb 04, 2005
Posts: 10

bannato
Post  Posted: Apr 15, 2008 - 06:43 AM Reply with quote Back to top

Hi Tim. The version is MD 1.080. Yes i tried to replace the md_session table too. What else do you suggest?
View user's profile Visit poster's website
TiMax
Project Manager
Project Manager


Joined: July 31, 2003
Posts: 1552
Location: Quebec - Canada

Post  Posted: Apr 15, 2008 - 07:09 AM Reply with quote Back to top

sorry, MDPro 1.080 is not more supported, please upgrade to MDPro 1.0821

_________________
TiMaxMAX s.o.s.Fantasia e dinamicità Italiane, qualità e servizi Canadesi Web Services, hosting ed housing professionali
View user's profile Visit poster's website AIM Address Yahoo Messenger MSN Messenger ICQ Number
cdphreaker
New MD user
New MD user


Joined: Feb 04, 2005
Posts: 10

bannato
Post  Posted: Apr 15, 2008 - 07:15 AM Reply with quote Back to top

Well i'd love to upgrade but the files have been heavily modded. So don't have that option. But, the site was restored recently from another server. The site is getting about 200,000 hits a month so i'm really pressed to get the site up and running asap. Please do let me know what else can be done? Thanks.
View user's profile Visit poster's website
Display posts from previous:     
Jump to:  
All times are GMT + 13 Hours
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Powered by MDForum 2.0.8© 2003-2007 MAXdev Team
Credits