4,276

(3 replies, posted in PunBB 1.2 troubleshooting)

Moved to Troubleshooting

Sounds like something happened to your database (someone deleted the Guest user). If you want I can provide the insert statement to add them back: otherwise, all the info is in install.php

OK, now run the explain again wink

On second thought, I have one idea: try running these

analyze table users
analyze table posts
analyze table groups

Talk to your host: I really have no idea why your query is being optimized that poorly (especially when it was working perfectly before)

That's really odd: there is some really poor query optimizing being done there.
I think the issue might be the group by statement: could you try removing some of the reputation mod's edits to the query (so the group by, the join, and the reputation table's columns) and posting an EXPLAIN for that query?

OK, could you run

show indexes from posts
show indexes from users
show indexes from groups

Well, reputation isn't the issue here
Have you made any other changes to the DB since I had you create that index?

4,283

(1 replies, posted in Feature requests)

http://punbb.org/forums/viewtopic.php?id=5936

Already in the works wink
http://dev.punbb.org/ticket/50

Nice smile

reviewum.com: what Bekko suggested will look like an image placed at the top of your forum (if I'm reading the CSS right).

No, since there's an index on user_id. You don't need to index every column that's used in a query wink

A database doesn't have fields: a table does. Make sure you're creating a database, not a table within an existing database.

4,289

(13 replies, posted in PunBB 1.2 discussion)

mod_security is denying the request based on the referrer: I don't know why wink

4,290

(3 replies, posted in PunBB 1.2 troubleshooting)

Bekko is suggesting that you create a new redirect forum (you can set a redirect URL for empty forums so that the link actually points somewhere else) that can only be seen by Guests. That way, guests only see the forum (which says something like "You must register to view the forum") and when they click on the link, they're taken to register.php

4,291

(68 replies, posted in PunBB 1.2 discussion)

It should work fine: you just need to edit install_mod.php to accept the current version

Use phpMyAdmin, yeah

mysqldump generates an SQL dump of the database (it's a binary that comes with MySQL, not a PHP file). Download the database dump from the old server and upload it to the new server

OK, use mysqldump to get the database from the old server

OK, I have a feeling auto_increment isn't set on those columns. You'll need to alter the columns to add it

4,296

(7 replies, posted in PunBB 1.2 troubleshooting)

Well, I'd suggest you allocate more memory to MySQL since you have 2GB of it tongue
Other than that, try and figure out what's using up that memory

OK, create an index like so

create index rep_user_id_idx on reputation(user_id)

willray: Do you have SSH access either with your old host or with your new host?

4,299

(27 replies, posted in Feature requests)

*checks*

SELECT t.id as topic_id, last_post, sticky, num_replies FROM '.$db->prefix.'topics AS t LEFT JOIN '.$db->prefix.'forum_perms AS fp ON (fp.forum_id=t.forum_id AND fp.group_id=3) WHERE (fp.read_forum IS NULL OR fp.read_forum=1) AND t.moved_to IS NULL ORDER BY last_post DESC

I'm only checking forums that guests have the ability to see in an unmodded version of PunBB. wink
If you've modded your forum to use some other permissions system, you'll need to modify the query as well

aha!
OK, so two more queries I need the output of:

describe reputation
show indexes from reputation