-

[Script] Fix Modules

General phpBB3 Discussion
Forum rules
Support is not provided in this forum. Support topics will be locked on sight.

[Script] Fix Modules

Postby EXreaction » Mon May 05, 2008 9:42 pm

What this script does:
This is designed to readjust the left and right id's in the modules table.

When it should be used:
If you've manually edited the modules in the database or used some modification that messed up the left and right id's in the modules table.

How to use it:
  1. Go into phpMyAdmin (or something similar) and get a complete backup of the modules table for your phpBB3 forum.
  2. Download the attached file, then open it with a text editor (like wordpad, but do not use notepad!).
  3. Find and delete this line at the top of the file:
    Code: Select all
    die('Delete or comment out this line to continue.');
  4. Save the file, then upload it to your phpBB3 forum's root directory.
  5. Go to your forum in your web browser and then go to the fix_modules.php file.
  6. After it has completed, immediately delete the fix_modules.php file you uploaded to your server.
  7. Verify that the modules are working correctly by viewing some in the UCP/MCP/ACP.

What happens if something gets messed up by using this script?
That is where your backup comes in. You can delete all the data in the modules table and import the old data from the backup.

If you do not have a backup from before you ran the script and something bad happens you are SOL. I will not give you any support in that case.
Attachments
fix_modules.php
(2.19 KiB) Downloaded 1615 times
Grateful for the mods I've built? Then donate!
User avatar
EXreaction
Site Owner
Site Owner
 
Posts: 4988
Joined: Wed Jun 28, 2006 5:08 pm
Blog: View Blog (53)

Re: [Script] Fix Modules

Postby ScrapbookSupplies » Wed Dec 17, 2008 12:58 pm

At the risk of sounding goofy, may I ask, what the EAMI's are, and how we can tell if they are backwards, where we know that we need to run this script?
User avatar
ScrapbookSupplies
Donor
Donor
 
Posts: 44
Joined: Mon Feb 19, 2007 4:56 pm
Location: Texas
Blog: View Blog (0)

Re: [Script] Fix Modules

Postby EXreaction » Wed Dec 17, 2008 2:14 pm

It was a script I had built for module insertion. If you were told to run it then you should run it. :)

It won't harm anything if you do run it though (unless something goes horribly wrong, but as it says you should backup first just in case).
Grateful for the mods I've built? Then donate!
User avatar
EXreaction
Site Owner
Site Owner
 
Posts: 4988
Joined: Wed Jun 28, 2006 5:08 pm
Blog: View Blog (53)

Re: [Script] Fix Modules

Postby ScrapbookSupplies » Wed Dec 17, 2008 2:23 pm

I wasn't *told*, the bottom of the 1.0.8 upgrade said "you might" need to run it, and I did a fresh install but did not know if I should run it anyway (since our dB was created with 0.7.1 - I didn't know what EAMI was, so I didn't know what to check. I might run it to be safe, though I have not yet noticed anything strange on the site.
User avatar
ScrapbookSupplies
Donor
Donor
 
Posts: 44
Joined: Mon Feb 19, 2007 4:56 pm
Location: Texas
Blog: View Blog (0)


Return to phpBB3



Who is online

Users browsing this forum: vitrood01ub, vitroqi31ry, vitrowv96zt and 1 guest

cron