News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

Reason For Editing Mod

Started by Nibogo, May 23, 2006, 12:44:11 AM

Previous topic - Next topic

Vinspire

Quote from: geezmo on October 11, 2006, 07:32:47 PM
Yes, I think you need to delete three columns in two tables, including edit_reason and er_who. These columns will appear when you try re-installing the mod, you'll get the error that the database is already existing.

I've gotten this error

Duplicate column name 'edit_reason'
File: /home/kokorobo/public_html/forum/Packages/temp/reasonforeditinginstall.php
Line: 2

and when i put in

DELETE FROM `{$db_prefix}settings` WHERE `variable` = 'edit_reason' LIMIT 1

it gave me this error in phpmyadmin

Error

SQL query:

DELETE FROM `{$db_prefix}settings` WHERE `variable` = 'edit_reason' LIMIT 1

MySQL said: Documentation
#1146 - Table 'kokorobo_forum.{$db_prefix}settings' doesn't exist

winrules

Replace {$db_prefix} with your database prefix. Probobally smf_.


winrules
SMF Developer
               
My Mods
Please do not PM me for support.


tekgik

Hi there, I installed this mod on 1.1 rc3 with tiny portal 0.96. Now im having a problem with the it, the editng reason doesnt show on my installed tiny portal theme (aero).

Do i have to manually edit a template file?

Thanks

Bigguy

Has this error been discussed. I looked through the thread but didn't see anything:

8: Undefined index: edit_reason
File: /home/****/public_html/smfhelper/Sources/Display.php
Line: 934

Vinspire

Quote from: tekgik on October 22, 2006, 12:55:07 PM
Hi there, I installed this mod on 1.1 rc3 with tiny portal 0.96. Now im having a problem with the it, the editng reason doesnt show on my installed tiny portal theme (aero).

Do i have to manually edit a template file?

Thanks

You need to edit the codes in aero theme manually to get it working :)

winrules

Quote from: Bigguy on October 22, 2006, 12:57:13 PM
Has this error been discussed. I looked through the thread but didn't see anything:

8: Undefined index: edit_reason
File: /home/****/public_html/smfhelper/Sources/Display.php
Line: 934

What version do you have?


winrules
SMF Developer
               
My Mods
Please do not PM me for support.


Bigguy


winrules

Can you post lines 930-940 in Display.php here?


winrules
SMF Developer
               
My Mods
Please do not PM me for support.


Bigguy

Yep, here ya go:

'counter' => $counter,
'modified' => array(
'time' => timeformat($message['modifiedTime']),
'timestamp' => forum_time(true, $message['modifiedTime']),
'edit_reason' => $message['edit_reason'],
'name' => $message['modifiedName']
),
'body' => $message['body'],
'k_os' => $message['k_os'],
'k_br' => $message['k_br'],
'k_ver' => $message['k_ver'],

winrules



winrules
SMF Developer
               
My Mods
Please do not PM me for support.


Bigguy

Its in the error log. It makes like millions of pages of errors.

winrules

Quote from: Bigguy on October 22, 2006, 06:41:29 PM
Its in the error log. It makes like millions of pages of errors.
I mean like what URL is it listed in.


winrules
SMF Developer
               
My Mods
Please do not PM me for support.


Bigguy

You mean this:

http://www.smfhelper.com/index.php
Apply Filter: Only show the errors with the same message
8: Undefined index: edit_reason
File: /home/*****/public_html/smfhelper/Sources/Display.php
Line: 934

Vinspire

Quote from: winrules on October 22, 2006, 11:02:50 AM
Replace {$db_prefix} with your database prefix. Probobally smf_.

Did this, everything went smooth in phpmyadmin but when i tried installing the package. I've got the same error.

Database Error

Duplicate column name 'edit_reason'
File: /home/kokorobo/public_html/forum/Packages/temp/reasonforeditinginstall.php
Line: 2

winrules

Drop the edit_reason column from the messages table in phpMyAdmin.

* winrules makes a check if it already exists in next version


winrules
SMF Developer
               
My Mods
Please do not PM me for support.


Vinspire

Quote from: winrules on October 23, 2006, 04:02:57 PM
Drop the edit_reason column from the messages table in phpMyAdmin.

* winrules makes a check if it already exists in next version

I don't understand what do you mean by drop the edit_reason  :'(

winrules

ALTER TABLE {$db_prefix}messages DROP edit_reason


winrules
SMF Developer
               
My Mods
Please do not PM me for support.


Bigguy

He has been able to drop edit_reason. Now he has another error about "er_who" It shows up in three spots in the db smf_messages, smf_personal_mesages and smf_settings. I figured I would relay this to you for him. He's not sure what which ones to drop.

winrules



winrules
SMF Developer
               
My Mods
Please do not PM me for support.


Advertisement: