News:

Wondering if this will always be free?  See why free is better.

Main Menu

Package Issue

Started by Nein, September 07, 2013, 02:12:27 AM

Previous topic - Next topic

Nein

So I decided to uninstall Treasury 2.12 because last night I moved my forums and changed some directories, so it's kind of screwed up now and doesn't really send the donations through. (I know probably my fault). So by this I mean when I get a donation, it shows up in my paypal, but doesn't go through to Treasury. I rechecked all the settings in paypal and Treasury, and they seemed to check out.

But now I've uninstalled Treasury, but the donations tab is still there, and whenever you click on it, this comes up:

Fatal error: require_once() [function.require]: Failed opening required '/home/myrootfilenamethingy/public_html/forums/Sources/Treasury.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/myrootfilenamethingy/public_html/forums/index.php on line 376

So if anyone could help me with this, that'd be greatly appreciated.

Illori

in sources/Subs.php you would need to remove the code for the button, searching for donation or treasury should show you the code.

you would also need to edit your index.php file to remove the code calling Treasury.php

kat



If what Illori just said makes you go attach your index.php file (The one in the root of your forum, where Settings.php is) and we'll take a look, at it, for you. :)

Nein

Quote from: Illori on September 07, 2013, 05:44:01 AM
in sources/Subs.php you would need to remove the code for the button, searching for donation or treasury should show you the code.

you would also need to edit your index.php file to remove the code calling Treasury.php

Okay so I did this, and it deleted the button, and I hoped it would fix this next issue, but it didn't, whenever I reinstall Treasury and then try to click on my "Profile" button of the forums, this happens:
Fatal error: Cannot redeclare showdonations() (previously declared in /home/myrootfilenamethingy/public_html/forums/Sources/Profile.php:794) in /home/myrootfilenamethingy/public_html/forums/Sources/Profile.php on line 962

Thank you guys for your help so far, and thank you for welcoming me K@! ^.^

Illori

then you will need to search each file and remove the duplicated code. if you dont have other mods installed you could start over with fresh files and reinstall the mod then.

kat

Pleasure! Now, what you're getting is errors telling you that the mod's been installed twice.

In Profile.php, you'll have two bits of code, both trying to declare showdonations. It's saying "I can't do that, coz I've already done it!

You'll need to edit out the duplicate blocks of code...

But, of course, you'll probably get similar errors, in other files.

If you backed-up, before installing the mod, I suggest you restore that backup.

If you didn't backup, you MIGHT be lucky...

http://www.simplemachines.org/community/index.php?topic=400356.0

Advertisement: