1
dasdan
Re: Auto-logout when posting (CBB)
  • 2007/3/17 20:59

  • dasdan

  • Just popping in

  • Posts: 29

  • Since: 2005/1/22


Quote:

dasdan wrote:
I'm having the same problem since a few weeks. After login everything works fine, but suddenly I'm logged out. Mostly happens when trying to post, reply, edit the forum, but also in other modules. Just browsing a few pages and I can simulate the problem.

also using a custom Session name and session expiration is set to 300

PHP Version 4.4.5


I solved my problem by comparing serveral backups of my website in SVN. First I couldn't find the cause of this strange behaviour.

After a while I restored a version from before the problem started. Then I upgraded sequentialy and tested every change I had made to the code.

Strange but true, the problem were the google adds on my newbb module.

After I removed the google adds from the forum the sessions don't get broken anymore.

More info here (in dutch)http://www.dasdan.be/modules/newbb/viewtopic.php?topic_id=500&forum=10&post_id=931#forumpost931

Kind regards,

Kevin



2
dasdan
Re: Auto-logout when posting (CBB)
  • 2007/2/18 21:43

  • dasdan

  • Just popping in

  • Posts: 29

  • Since: 2005/1/22


I'm having the same problem since a few weeks. After login everything works fine, but suddenly I'm logged out. Mostly happens when trying to post, reply, edit the forum, but also in other modules. Just browsing a few pages and I can simulate the problem.

also using a custom Session name and session expiration is set to 300

PHP Version 4.4.5



3
dasdan
Re: Bans sheet
  • 2005/12/16 13:45

  • dasdan

  • Just popping in

  • Posts: 29

  • Since: 2005/1/22


You don't need access to 'the' file, just create one in you own root directory.

One thing: it's possible your hosting provider has not installed the rewrite engine module... ask him.



4
dasdan
Re: Bans sheet
  • 2005/12/11 13:06

  • dasdan

  • Just popping in

  • Posts: 29

  • Since: 2005/1/22


Quote:

jdseymour wrote:
Probably could with .htaccess.


put the following in you .htaccess

create a folder errors and put you personal notfound or forbid.html page in it.
ErrorDocument 404 /errors/notfound.html
ErrorDocument 403 
/errors/forbid.html

RewriteEngine On

#blocking ip's
RewriteCond %{REMOTE_ADDR}  ^4.79.248.8$ [OR]
RewriteCond %{REMOTE_ADDR}  ^64.4.195.62$ [OR]
RewriteCond %{REMOTE_ADDR}  ^64.27.27.150$ [OR]
RewriteCond %{REMOTE_ADDR}  ^66.92.132.241$ [OR]
RewriteCond %{REMOTE_ADDR}  ^216.40.249.17$
RewriteRule .* - [F,L]

#blocking spiders
RewriteCond %{HTTP_USER_AGENT} ^Bot mailto:craftbot@yahoo.com$ [OR]
RewriteCond %{HTTP_USER_AGENT} ^Baiduspider$ [OR]
RewriteCond %{HTTP_USER_AGENT} ^FAST$ [OR]
RewriteCond %{HTTP_USER_AGENT} ^Zeus
RewriteRule 
!/errors/forbid.html /errors/forbid.html  [L]

#block bad referers an refererspam
RewriteCond %{HTTP_REFERER} (showcasegifts.net|realtysite.com|realtorlist.net|devaddict.com|whiteguysgroup.com)[NC]
RewriteRule !/errors/badreferer.php /errors/badreferer.php  [L]


be carefull blocking on IP's, most people have dynamic ip's.
Blocking 1 ip could block a whole bunch of people behid a NAT router.



5
dasdan
Re: Uservisit error when deleting visit details
  • 2005/7/19 19:33

  • dasdan

  • Just popping in

  • Posts: 29

  • Since: 2005/1/22


another bug-fix version 2.3

problem when passing HTTP_GET_VARS when register_globals is off in your php.ini

updated source
http://www.dasdan.be/modules/newbb/viewtopic.php?topic_id=157&forum=29


I'm sure the arma-team will release an updated version soon

Kind Regards,

Kevin Wood
http://www.dasdan.be



6
dasdan
Xoops sitemap module blank page error
  • 2005/7/13 17:40

  • dasdan

  • Just popping in

  • Posts: 29

  • Since: 2005/1/22


Last week I installed the XOOPS sitemap module on this site.
www.dasdan.be

I 've noticed a problem while viewing the sitemap as registered user / admin. The page was blank.
Guests could see the sitemap.

I 've activated the php "debug-mode" in the xoops-cpanel.

There was an error on line 36
xoopsUser->isAdmin() method called on a non-object.

(I activated the 'All-time guest mode' for the sitemap) so there is a backup_uid stored while building the sitemap.
When done the original uid is restored.

I solved the problem storing the original uid and isAdmin in the $backup_uid and $backup_isadmin variables

strange enough the memberHandler->getUser($backup_uid); returns an empty object.
someone who can tell me why?
I have register_globals of in my php.ini, and think this is the problem.

// for All-time guest mode (backup uid & set as Guest)

$backup_uid='';
$backup_isadmin='';
if( 
is_object$xoopsUser ) && ! empty( $xoopsModuleConfig['alltime_guest'] ) ) {

    
$backup_uid $xoopsUser->getVar('uid') ;

        
$backup_isadmin $xoopsUser->isAdmin('uid');
    
$xoopsUser '' ;

    
$xoopsUserIsAdmin false ;

    
$xoopsTpl->assign(array('xoops_isuser' => false'xoops_userid' => 0'xoops_uname' => '''xoops_isadmin' => false));

}



$sitemap sitemap_show();



// for All-time guest mode (restore $xoopsUser*)

if( ! empty( $backup_uid ) && ! empty( $xoopsModuleConfig['alltime_guest'] ) ) {

        
$member_handler =& xoops_gethandler('member');

    
$xoopsUser =& $member_handler->getUser$backup_uid ) ;

        
$xoopsUserIsAdmin $backup_isadmin;

}


This topic is also posted here:
Here



7
dasdan
Re: Is there any logging facility in xoops
  • 2005/7/1 18:42

  • dasdan

  • Just popping in

  • Posts: 29

  • Since: 2005/1/22


reading this post I installed the "user visit" module

please read my comments, on how to solve the little problem with register_globals = off

http://www.dasdan.be/modules/newbb/viewtopic.php?topic_id=157&forum=29&post_id=211#forumpost211



8
dasdan
Re: Uservisit error when viewing details
  • 2005/7/1 18:11

  • dasdan

  • Just popping in

  • Posts: 29

  • Since: 2005/1/22


also version 2.2 has the same problem with the $vm variable

add this on line 42

Quote:

$vm = $HTTP_GET_VARS['vm'];



9
dasdan
Re: Uservisit error when viewing details
  • 2005/7/1 17:32

  • dasdan

  • Just popping in

  • Posts: 29

  • Since: 2005/1/22


I've installed the module 2.1 today,
and had the same error,

visits were recorded in the DB, and shown on the admin frontpage, but when you want to vieuw details about a specific user, you get '0 entries for user'

so I started debugging:

I've noticed the line 44:
$visit= mysql_query("SELECT * FROM ".$xoopsDB->prefix("visit_user")." WHERE visitname = '$vm' ORDER BY temps");

when I echo this line I see the $vm was not filled with the username.

The cause of the problem is that "register_globals=off" in my php.ini for my webserver.

so I've added this line before the sql query (line 42)
Quote:

$vm = $HTTP_GET_VARS['vm'];


I've also replaced several "mysql_NumRows" functions with the standard "mysql_num_rows".
Tip do a find and replace.

This should do it

good luck,
while posting this hack I've noticed version 2.2, which I'm going to try now :)

the updated files you can find here
http://www.dasdan.be/modules/newbb/viewtopic.php?topic_id=157&forum=29&post_id=211#forumpost211



10
dasdan
Re: Modules that work in PHP5. Can they be identified more clearly?
  • 2005/5/6 12:30

  • dasdan

  • Just popping in

  • Posts: 29

  • Since: 2005/1/22


I'm running on a php5 server, and the following modules seem to work fine. For some modules I had to make minor changes in the source, most of the problems I had with variables named $this, in php5 '$this' if the keyword to refer to the class self. So rename the $this, will solve some problem. I can't remember the modules I had to change,
but here is a list of the modules I'm running without problems.

- Polls v1
- Partners 1.1
- news 1.1
- Links 1.1
- FAQ 1.1
- WF Downloads 2.04
- protector
- Forum v2
- Webstats 2.1
- WIWI 0.8
- bakcup 2.16
- Xoopstats 0.45
- Blocks admin 0.26




TopTop
(1) 2 3 »



Login

Who's Online

217 user(s) are online (135 user(s) are browsing Support Forums)


Members: 0


Guests: 217


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Apr 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits