Karma Description Mod

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

Previous topic - Next topic

dexx


Grek.Kamchatka

WHAT IS YOUR PHP VERSION???

dexx


MoPed


Grek.Kamchatka

dexx

It's because U use PHP5.2 and size of «Karma_Description_Mod.xml» lager then 28780 bytes. Sounds weird? I think so, but if you cut it to 28780 and no one byte more - all tests will be passed without errors (PHP bug?). But I don't know mod's crafting well and cannot split it into several files.

dexx

Would manually installing it bypass the problem?

Grek.Kamchatka


TrueSatan

Grek,

I've split the Karma_Description_Mod.xml file into two and amended the package-info.xml so that it installs both of the new files, repacked it and tried my amended version on a test forum running a completely fresh (and clean of any other mods) SMF v1.1.2 on php 5.2.1...all went well...no errors. If you want an account to try it and check that all is working as it should you'd be welcome to have one...PM me.

I'll add the hacked up mod to this posting so you can play with it yourself...what I did was a very simple fix but it appears to have got round the problem...unless I'm missing something obvious...not exactly a new thing for me.

BTW thanks for all your hard work on this mod...much appreciated!...and I hope that the file will be of use.

dexx

omg I love you, I was about to try and do it manually...then I saw how massive the file was

TrueSatan

Quote from: dexx on March 18, 2007, 09:42:17 PM
omg I love you, I was about to try and do it manually...then I saw how massive the file was

Oh how I hope you're female after that comment ROFL!

Anyway it's worked for me but it could certainly do with some testing before we say we're home and dry.

dexx

Will try it right now...


It works! Good Job!


And its a platonic SMF-brotherly love! No worries!  8)

TrueSatan

 Have a virtual pint of beer with me then...

If we can have a few more happy testers and...as it should be...if Grek himself is happy with what I've done perhaps we might persuade Grek to post it as a new version with a note saying that it is fine with php 5.2.x Assuming nobody finds some flaw in it obviously...

Grek.Kamchatka

Quote from: dexx on March 18, 2007, 09:53:20 PM
And its a platonic SMF-brotherly love! No worries!  8)
LOL =)



2 TrueSatan
Thx

TrueSatan

My pleasure Grek...it's nice to be able to give something back once in a while.

dexx

Hrm maybe I'm just a newb but I enabled the mod (checkbox and all) but I dont the link to the log on my forum list or admin panel?

dexx

Uh oh!! Error!

Unknown column 'Description' in 'field list'
File: /home/mrdexx/public_html/networked/smf/Sources/Karma.php
Line: 134

Note: It appears that your database may require an upgrade. Your forum's files are currently at version SMF 1.1.2, while your database is at version 1.1.1. The above error might possibly go away if you execute the latest version of upgrade.php.


I got that when trying to change karma. How do I fix this?!

Grek.Kamchatka

Open db_change.php and manualy do all changes in your database from this file

dexx

oh jeez this is gonna be scary, never tried to manually alter my DB before.

There's nothing I can do to the file itself and then just uninstall/reinstall the mod to make it work?

Or is there a way to get my database to upgrade to 1.1.2? It hasnt had a problem with any of the others mods :S

TrueSatan

 It looks as though you're trying to load a karma history when there is no history to load.

As regards your testing you're making one really bad error...don't test on your main forum. Make yourself at least one forum that is just for testing mods on and nothing else...personally I use two...a completely new, clean, fresh install and a copy of my live/production forum. If a new (to me) mod works properly on the clean forum then having tested it quite a bit I'll try it on the copy of my live/production forum and test it thoroughly there too before ever considering adding it to my main/live/production forum.

How did you do the upgrade to SMF 1.1.2? Was it via the upgrade package?

If it was via the upgrade package then having backed up your database and files and having set permissions of all files to 777 I'd try uninstalling the upgrade package and then re-installing it....then setting the file permissions back to what they were.

If you go to your profile do you see additional links in the Karma area saying Who changed my karma     Whose karma have I changed...they take you to the karma log.


TrueSatan

BTW...failing the above go back to Grek's reply for your next move.

Advertisement: