Big problem, in need of your help guys

Temporary forum to obtain support for MODs/Styles while phpbb.com is down
Locked
biohaze
Registered User
Posts: 9
Joined: Mon Feb 09, 2009 6:14 am

Big problem, in need of your help guys

Post by biohaze »

Hello, I'm new here. I and a friend run a big fansite and our forums have 2000+ members. Thing is I installed today the mod ''Display Post Anywhere'' for my phpBB 3.0.2.

I followed all the steps to install it, but then to my horror I forgot to run this SQL query before modifying the needed files (I was in a rush... how dumb I was!):

Code: Select all

CREATE TABLE phpbb_posts_anywhere (
	instance_id mediumint(8) unsigned NOT NULL auto_increment,
	instance_template varchar(255) NOT NULL DEFAULT '',
	instance_name varchar(255) NOT NULL DEFAULT '',
	instance_desc varchar(255) NOT NULL DEFAULT '',
	PRIMARY KEY (instance_id)
) CHARACTER SET `utf8` COLLATE `utf8_bin`;

CREATE TABLE phpbb_posts_anywhere_options (
	option_id mediumint(8) unsigned NOT NULL auto_increment,
	instance_id mediumint(8) unsigned NOT NULL DEFAULT '0',
	post_id mediumint(8) unsigned NOT NULL DEFAULT '0',
	forum_id mediumint(8) unsigned NOT NULL DEFAULT '0',
	recursive tinyint(1) unsigned NOT NULL DEFAULT '0',
	post_limit smallint(4) unsigned NOT NULL DEFAULT '0',
	single_post_topic tinyint(1) unsigned NOT NULL DEFAULT '0',
	character_limit smallint(4) unsigned NOT NULL DEFAULT '0',
	PRIMARY KEY  (option_id)
) CHARACTER SET `utf8` COLLATE `utf8_bin`; 
I can't access anything on the forum and the error is displayed on all the forum-related php pages...

Please someone helpe me! :cry:
(BTW, my level of expertise in phpBB is medium)

Much appreciated,
Rod.
Last edited by biohaze on Mon Feb 09, 2009 11:26 pm, edited 1 time in total.

jdman321
Registered User
Posts: 16
Joined: Fri Feb 06, 2009 3:58 pm

Re: Big problem, in need of your help guys

Post by jdman321 »

So you ran the SQL and you got that?

Go remove the tables the query added VIA phpmyadmin.

The error reads:

Code: Select all

Fatal error: Call to a member function on a non-object in /var/www/html/phpBB3/index.php on line 24
I suggest going to the index.php for the boards and removing the error pointed out in line 24 and see what happens. (be sure to copy the file before removing the line) if there is no change once you save the index.php with line 24 removed then just paste the old index.php back and save.

If those two solutions fail, just take out everything the mod installed and go change the file edits back to normal and see what happens.
GameProNetwork...Where the Pros play \/
http://boards.gamepronetwork.com

biohaze
Registered User
Posts: 9
Joined: Mon Feb 09, 2009 6:14 am

Re: Big problem, in need of your help guys

Post by biohaze »

I forgot to run that SQL script before modifying the files that work with this mod. Now all the pages have this fatal error, and all the pages that I checked the error is in this line:

Code: Select all

$user->session_begin();
What can I do?

User avatar
Brf
Support Team
Support Team
Posts: 332
Joined: Sun Mar 11, 2007 1:06 pm

Re: Big problem, in need of your help guys

Post by Brf »

biohaze wrote:I forgot to run that SQL script before modifying the files that work with this mod.
That should not matter. When you are installing a mod, you can run the SQL either before or after the edits.

That error shows that you have made a bad edit.

biohaze
Registered User
Posts: 9
Joined: Mon Feb 09, 2009 6:14 am

Re: Big problem, in need of your help guys

Post by biohaze »

I checked all the files I edited and they are exactly how they were pictured in the installing of the mod, I don't know what I'm doing wrong :|

User avatar
Brf
Support Team
Support Team
Posts: 332
Joined: Sun Mar 11, 2007 1:06 pm

Re: Big problem, in need of your help guys

Post by Brf »

You will have to seek support with the mod's author from where ever you downloaded the mod.

biohaze
Registered User
Posts: 9
Joined: Mon Feb 09, 2009 6:14 am

Re: Big problem, in need of your help guys

Post by biohaze »

Yeah, just posted about it in his forum. Thanx either way.

jdman321
Registered User
Posts: 16
Joined: Fri Feb 06, 2009 3:58 pm

Re: Big problem, in need of your help guys

Post by jdman321 »

Just go back and take the time to make it look as if the mod never came in the picture. That will fix it.

Remove the tables, remove the files the mod brought with it, reverse the file changes, then reload the board.
GameProNetwork...Where the Pros play \/
http://boards.gamepronetwork.com

biohaze
Registered User
Posts: 9
Joined: Mon Feb 09, 2009 6:14 am

Re: Big problem, in need of your help guys

Post by biohaze »

That's what I did, and now everything's alright once again :D

Locked