28, May 2012

Problem with access_page() - webmaster forum

 
Webdigity webmaster forums
[ Home | Help | Search | Forum's Shop | Archive | Login | Register | Webmaster Directory ]
Webdigity Webmaster Forums  >  Web Development  >  PhP  >  PHP classes @finalwebsites.com  >  Access_user Class (Moderator: Olaf)
Topic: Problem with access_page()
« previous next »
Pages: [1] Print

Author Topic: Problem with access_page()  (Read 1835 times)
Google dot what?
*
Posts: 2
16 credits
Members referred : 0


« on: Dec 29, 2006, 11:49:31 pm »

After installing access_user, I successfully registered a new account but whenever I login I get bounced back to login.php.

It is loading MAIN_PAGE, or start.php but the $page_protect = access_page(); is apparently bouncing me back to login.php

When I comment out that line, but leave in the $page_protect = get_user_info(); I get the following series of errors:

Warning: mysql_result() [function.mysql-result]: Unable to jump to row 0 on MySQL result index 7 in /var/www/classes/access_user/access_user_class.php on line 216
Warning: mysql_result() [function.mysql-result]: Unable to jump to row 0 on MySQL result index 7 in /var/www/classes/access_user/access_user_class.php on line 217
Warning: mysql_result() [function.mysql-result]: Unable to jump to row 0 on MySQL result index 7 in /var/www/classes/access_user/access_user_class.php on line 218
Warning: mysql_result() [function.mysql-result]: Unable to jump to row 0 on MySQL result index 7 in /var/www/classes/access_user/access_user_class.php on line 219

Upon querying the database, it appears all information is there as it should be.
What am I doing wrong?
Moderator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 6691
34714 credits
Members referred : 374


It's time to use PHP5!


« Reply #1 on: Dec 30, 2006, 12:01:16 am »

I have no idea Cheesy

please wait one more day I need to upload a new version first

Google dot what?
*
Posts: 2
16 credits
Members referred : 0


« Reply #2 on: Dec 30, 2006, 01:23:12 am »

it was simple, define("USE_MYSQL_SESSIONS", true);, was the entire problem.

By changing it to: define("USE_MYSQL_SESSIONS", false);

the problem was solved.
« Last Edit: Dec 30, 2006, 02:46:31 am by g0ats »
Moderator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 6691
34714 credits
Members referred : 374


It's time to use PHP5!


« Reply #3 on: Dec 30, 2006, 08:46:47 am »

it was simple, define("USE_MYSQL_SESSIONS", true);, was the entire problem.

By changing it to: define("USE_MYSQL_SESSIONS", false);

the problem was solved.


I think this function is documented enough...

Trackback URI for this entry : http://www.webdigity.com/trackback.php?topic=5426
Tags : access_page() bounces to login.php Bookmark this thread : Digg Del.icio.us Dzone more....

Pages: [1] Print 
Webdigity Webmaster Forums  >  Web Development  >  PhP  >  PHP classes @finalwebsites.com  >  Access_user Class (Moderator: Olaf)
Topic: Problem with access_page()
« previous next »
Jump to:
User Area
Welcome, Guest. Please login or register.
Did you miss your activation email?
May 28, 2012, 07:24:17 pm





Login with username, password and session length

Donate to our community, and get a permanent link back to your site!

Donate to our community, and get a permanent link back to your site!






Web Design Gallery · Whois Lookup · Pagerank · Tag Browsing · Lo-fi version · Syndication · Webmaster forum history · Advertise
Developed by HumanWorks © 2005 - 2012 Webdigity webmaster community · sublime directory
Webdigity Webmaster Forums | Powered by SMF 1.0.12. © 2001-2005, Lewis Media. All Rights Reserved.