1

(1 replies, posted in PunBB 1.4 troubleshooting)

Hi,
I have a high traffic website using PunBB. I am typically getting 5-10 emails every day from people having problems with their login. Looking through them, I see that a very large number of the problems are related to people mistyping or forgetting their username.

I there an easy way to let punBB also accept email-addresses as logins? That means accepting the email-address, and just look up the username. I see there are several sites making it optional to also log in using the email-address.

2

(4 replies, posted in PunBB 1.4 troubleshooting)

Thanks.

Two more questions:
* It is a lot of bans to remove. Would just clearing the table be sufficient, are are these also referenced elsewhere?
* What expansion for 1.4 prevents bots from registering?

3

(4 replies, posted in PunBB 1.4 troubleshooting)

Thanks for answering.

Banning people posting spam have been used a lot by the administrators. I see now that the list contains around 6000 bans. This is mainly on email-username. We have given up banning ip-addresses a long time ago.

Would it be better deleting the accounts? Some of them are very old, so I guess the block on their email have little effect.

4

(4 replies, posted in PunBB 1.4 troubleshooting)

Hi,
I just had a DDOS attack not the server, and now it seems like there cache has grown a bit too large. I keep getting this error:
"Allowed memory size of 268435456 bytes exhausted (tried to allocate 72 bytes) in /var/www/forum/cache/cache_bans.php on line 19929".

Is there a way to reset the cache, or should this be fixed some other way?

5

(1 replies, posted in PunBB 1.4 troubleshooting)

Answering my own question, since it is solved now. Found a very easy way of fixing this in one af the Varnish support forums.

Make a simple php-script like this:

<?php
if( isset( $_SERVER[ 'HTTP_X_FORWARDED_FOR' ] ) ) {
  $_SERVER[ 'REMOTE_ADDR' ] = $_SERVER[ 'HTTP_X_FORWARDED_FOR' ];
}?>

You can either include this at the top of your header-files, or even easier, you can add the following line to apache:

php_value auto_prepend_file "/var/www/varnishfix.php"

You could for instance place this under one of the

<Directory "/var/www/">...</Directory>

in your site-configuration. Or probably even in your .htaccess-file

This way no changes to the punBB-code is needed.

6

(1 replies, posted in PunBB 1.4 troubleshooting)

Hi,
I have just installed punBB on a site with a lot of traffic. I am having some serious problems with the forum. Things are strange, and users are being forwarded to weird places after login. Simple bans affect all users etc.

I think the forum is confused by me using Varnish, even if I at the moment are not caching anything at all. I am just passing stuff directly through to the web-server.

One of the things that a passthrough does however, is that it changes the ip-address of the request. $_SERVER['REMOTE_ADDR'] is the ip of the server, while $_SERVER['X-FORWARDED-FOR'] is the real ip of the user. Could this be messing up things with punBB?

Any ideas about how to fix it?

7

(2 replies, posted in PunBB 1.4 troubleshooting)

Turned out to be an error not related to PunBB.

8

(2 replies, posted in PunBB 1.4 troubleshooting)

I am running 1.4.4. I have upgraded from an older 1.2-version.

I keep getting this error: "Warning: Illegal string offset 'email' in ..header.php on line 83", and variants like:
Warning: Illegal string offset 'realname' in ..profile.php on line 2033a

Googling tells me that this indicates that the $user-array is not really an array, and that there are some differences in the way php handles arrays that has changed. I am running PHP 5.5.9-1

Any ideas how to fix this?

9

(2 replies, posted in PunBB 1.4 troubleshooting)

At this stage I am thinking more in the line of what files needs to be updated.

To be able to upgrade to future versions, I would for instance try to avoid just editing the Oxygen.css-files directly.

I think most of the changes I am looking for should be possible by css-editing (and new header/footers).

10

(2 replies, posted in PunBB 1.4 troubleshooting)

Hi,
I am trying to integrate PunBB into my website, and will need to create a new theme to be able to do this.

Are there any guides on how to create new themes?

11

(3 replies, posted in PunBB 1.4 troubleshooting)

This worked perfectly. Thanks a lot.

12

(3 replies, posted in PunBB 1.4 troubleshooting)

Hi,
I have a large forum running punBB 1.2.15.

However, now I am moving to a new server, and I really need to upgrade the forum. My first question is if this is possible. I do not need any templates since the new website also have new layout. However, I would like to keep at least the user database, and the forum posts.

Anyone that can tell me where to start?