News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

Karma Description Mod

Started by Grek.Kamchatka, September 11, 2005, 11:48:26 PM

Previous topic - Next topic

TrueSatan

It's likely that there was some other change to the file made by another mod as this mod is widely used and not known to have such a problem as you report. If you would, please, post a copy of your Karma.php file then either Grek or I may be able to see what has happened (add it as an attachment to a post.)

iQEM

#841
here they are, check attachment...please help...  :'(

TrueSatan

You appear to have installed the mod more than once...the file you posted has multiple installs of it. You need to go through the process of a manual installation removing the duplicated code from all the files the mod affects...the following links give details of the manual install process.

Please read:

http://docs.simplemachines.org/index.php?topic=402.msg531#msg531

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

The following may also prove helpful:

http://modparser.dev.dansoftaustralia.net/

Mirror of the last link:

http://www.smfhacks.com/smf-package-parser.html

brainfreez

I installed the karma description mod and there was an error on de-installation on the karma.php.

Now its gone, and when I try to change karma I get an error message 'Unable to load the 'main' template.'

I have the karmalog mod installed in its place so it might be connected to that, but I doubt it.

How can I restore things back to normal?

Apologies if this has been said but I cant read all 43 pages.

RammerRW

I have SMF 1.1.4 installed on my site...when i try and install this mod, it displays an error saying "The package you are trying to download or install is either corrupt or not compatible with this version of SMF."  If i do a manual install, would it screw up my forum at all?  Is there an easier way to install it without manually installing it, since auto-installing doesn't seem to want to work?

TrueSatan

The first thing to say is that standard SMF advice applies...you should backup your files and database before installing any mod or theme so that you don't get in the sort of position you mention! The readme of the mod (shown when you installed it) even tells you
QuoteKarma Description Mod (ver. 2.3) Don't forget to BACKUP, please.
...so as to reinforce this point.

If you have followed this advice then simply restore from your backup.

As you saw an error on uninstallation you should have stopped at that point and done a manual uninstall if you didn't have the backup available.

Given that you now say you have installed a different Karma related mod and unless you have done the backup you were advised to do you may need to go through a manual uninstall of the mod checking to see that none of it is left behind.

The most likely scenario is that only the Karma.php file is affected so, as a shortcut, you can try renaming the existing file to Karma.phpold and editing a fresh Karma.php file taken from the SMF install package to add the other Karma mod you want to have into it then upload the edited file to your forum. This is likely to solve the problem but not certain to do so...if it doesn't work then manual unistall is your way out of it unless you have the backup you were advised to make. Sometimes if a file is showing an error the rest of the files that would be edited by the Package Manager after that failed file won't be edited at all so you may still need to do all the process of a manual uninstall.

As you can see the advice to make a backup is given for good reasons.

TrueSatan

@ RammerRW

You should note the advice to do a backup first...see the last reply I made to another member.

I've just tried an install of the mod into a test forum running SMF 1.1.4 with no problems at all...please try to download the mod from the mods page using a different browser and see if that solves your problem...it may have been a browser glitch.

RammerRW

#847
Quote from: TrueSatan on September 28, 2007, 08:26:48 PM
@ RammerRW

You should note the advice to do a backup first...see the last reply I made to another member.

I've just tried an install of the mod into a test forum running SMF 1.1.4 with no problems at all...please try to download the mod from the mods page using a different browser and see if that solves your problem...it may have been a browser glitch.

I backed up my database a couple times (including the table structure).

I just tried using Firefox 2.0 and Internet Explorer 6, and they both give me the same error.  Does the fact that i am clicking the "[Download]" link in the package manager have anything to do with this?

Also, the server my site is on uses PHP version 5.2.3.  Does this also affect anything?

RammerRW

So, would you know what's wrong?  Am i doing something stupid that is causing this?  I would like to bring my forum out of maintenance mode soon \:

TrueSatan

Firstly you don't seem to be understanding that we aren't just asking that you back up your database but that you also back up your forum files...if you then change the files via a mod or theme you can revert to the backup should anything go wrong...just backing up the database will only let you restore the database.

The site I tested the mod on using SMF 1.1.4 also happens to run on php 5.2.x so that isn't an issue.

I would try the download of the mod again from this site post a reboot of your computer...as I said I went through the whole process and couldn't replicate your issue.

I've seen some similar reports in a rather random spread over other mods so I suspect it might be a server glitch on the SMF hosting here but can't be sure of that (obviously.)

Simply in order to try to help I'll add the mod as an attachment to this post...if mods here choose to delete the attachment they can do so.

As you ask about using the "download" system to upload the mod to your site I'll add that that's fine but you should do the following before adding any mods.

Assuming you want an English only forum: You need to go to ACP>Server Settings and set your forum language to English and not English utf8 and to ACP>Features and Options>Basic Settings and uncheck Enable user-selectable language support.

You need to go to ACP>Packages>Options>Installation Options and set the fields according to your hosting details then on the same page go to Cleanup Permissions and select All files Writeable and run the cleanup...check via ftp that CHMOD of all your files is now 777 or 775 according to the peculiarities of your hosting and if not recheck the settings you made in Installation Options and run the cleanup again...continue as needed until you get the right settings.

iQEM

Quote from: TrueSatan on September 28, 2007, 05:24:02 PM
You appear to have installed the mod more than once...the file you posted has multiple installs of it. You need to go through the process of a manual installation removing the duplicated code from all the files the mod affects...the following links give details of the manual install process.

Please read:

http://docs.simplemachines.org/index.php?topic=402.msg531#msg531

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

The following may also prove helpful:

http://modparser.dev.dansoftaustralia.net/ [nofollow]

Mirror of the last link:

http://www.smfhacks.com/smf-package-parser.html [nofollow]


sorry but i dont get it...can you make it more simple or just tell me me which one of the codes that had been wrong ?! thx before... ;)

RammerRW

Ah, well, i backed up my entire site a small while ago, so i have a back-up of my forum's files, too.

I tried setting everything to writable, which was successful.  I set the language to English (not utf-8) and disabled  the option to pick your own language.  I then tried re-downloading the mod via the package manager, and it didn't work.  I even just now set up another SMF forum (updated to 1.1.4) via Fantastico and it still said it was corrupt or not compatible with this version of SMF.

I don't quite understand what you are saying here: "I would try the download of the mod again from this site post a reboot of your computer...as I said I went through the whole process and couldn't replicate your issue."  What do you mean, "post a reboot of your computer?"

TrueSatan

@ iQEM

Your Karma.php file shows the code the mod seeks to add not added just once but twice and hence the file is both huge and doesn't work properly...you need to use the links I gave you to see what code is added to each file the mod edits and to make sure it is there but there only once...if it is there twice you need to remove one instance. It's a long job with a mod like this but the links I gave do show what you need to do (particularly the Package Parser will show you the mod edits in an easy to understand way.) There's no way round doing the long, and rather tedious, task of putting the files right one by one though, as you must realise, if you'd have made the backup the mod advised you to make the editing wouldn't be needed.

It is unlikely that only one file, or one edit, is affected so you need to go through them all. Take it slowly and you'll get there if you follow carefully what is shown by the Package Parser as it will give you the details of what to look for.

@ RammerRW

Fantastico often gives problems when used to install SMF...it often sets the forum to English utf8 for a start.

By "post a reboot of your computer" I meant do it again after rebooting your computer so that any cache of the download would be completely cleared and thus you would be sure of getting a fresh download.

Did you use the copy of the file I provided? If you use your CPanel File Manager, or other ftp method, then also try uploading the copy I provided into your packages directory then use the ACP>Packages>Browse Packages to install the mod. If you do it this way is should install without issues.

RammerRW

Ah!  I wasn't aware one would install packages in this manner.  It said the test on Admin.php failed, but i think that's because i manually made the modifications for the mod before this.  Thanks! (:

TrueSatan

My pleasure...it's not the easiest way to add a mod but if other methods fail it can get you out of problems.

Grek.Kamchatka

TrueSatan, you genius. Thanks for advise again

asdas2

a lil quest abt this mod...

do user get to see in their profile that who give them karma points....

?????????????????

like VB
www.chillparadise.com

for all desi people .... get everything u ever wanted.... log in to view hidden stuff.

ShawnX

#857
Looks like this mod has been around for a while, but I just found it.  Just wanted to say thanks!

Quote from: asdas2 on October 01, 2007, 12:32:24 AM
do user get to see in their profile that who give them karma points....

If you check "Enable karma links in users profiles" it should.   But for some reason it isn't working on one of my forums.  :-\

asdas2

is it working for anyone else ?
www.chillparadise.com

for all desi people .... get everything u ever wanted.... log in to view hidden stuff.

TrueSatan

You also need to go through the permissions by membergroup to allow users to "view Karma log". I have it on my forums and it works faultlessly.

Advertisement: