Page 1 of 1

PLUGIN GONE BAD

Posted: Mon Jul 11, 2005 3:32 am
by karan
I have no clue how to fix this one. I added a plugin (author login box) and now everytime I click configure plugins, It displays all the plugins before the login box and gives me an error

Code:
Fatal error: Call to undefined function: serendipity_currenturl() in /var/www/localhost/htdocs/plugins/serendipity_plugin_loginform/serendipity_plugin_loginform.php on line 64


So this means I can't remove this box, and I also can't see any plugins below it.

Also, because I can't remove the file, I get this massive error on my weblog that says..

Code:
Fatal error: Call to undefined function: serendipity_currenturl() in /var/www/localhost/htdocs/plugins/serendipity_plugin_loginform/serendipity_plugin_loginform.php on line 64



In need of some urgent help. Deleting the directory of the plugin does not help. It just spits out other random errors of admin_plugin.php and plugin_api.php.

I want to know how to remove this plugin without using the interface pretty much.

Posted: Mon Jul 11, 2005 3:41 am
by Karan
Figured it out. Deleted it in the mysql table.

Posted: Mon Jul 11, 2005 4:12 am
by kidgoo
Glad you got it worked out. I just wanted to leave a quick note in case someone with similar problems reads this thread...

Manually deleting the plugins dir is not a great idea if those plugins are in use...it won't disable the plugin, and will probably cause more errors. If you're stuck, deleting from the database is the way to go...

Brett

Posted: Mon Jul 11, 2005 9:43 am
by garvinhicking
And, BTW, the error happened in first instance because you tried to use a Serendipity 0.8 plugin in a Serendipity 0.7 installation, right? You should upgrade to Serendipity 0.8.2, also because of XML-RPC security issues.

Regards,
Garvin

Posted: Mon Jul 11, 2005 10:03 am
by karan
Thats right garvin, I unpacked 0.82 and ran upgrade.sh . I don't know if it has been updated though. Mmm didn't find any 0.7 --> 0.8 documentation on the website.

Any tips?

Posted: Mon Jul 11, 2005 11:49 am
by MySchizoBuddy
don't u just overwrite the file and start again,
all the imp info is in the database, so nothing is lost i guess.

Posted: Mon Jul 11, 2005 11:52 am
by karan
Gave it a shot and its unusable again.

Code: Select all

Query failed:

SELECT 
                    

                    e.id,
                    e.title,
                    e.timestamp,
                    e.comments,
                    e.exflag,
                    e.authorid,
                    e.trackbacks,
                    e.isdraft,
                    e.allow_comments,
                    e.last_modified,

                    a.realname AS author,
                    a.email

                    , e.body, e.extended
                    
                FROM
                    serendipity_entries AS e
                    LEFT JOIN serendipity_authors a
                        ON e.authorid = a.authorid
                    LEFT JOIN serendipity_entrycat ec
                        ON e.id = ec.entryid
                    LEFT JOIN serendipity_category c
                        ON ec.categoryid = c.categoryid
                    
                    WHERE isdraft = 'false' AND e.timestamp <= '1121123904'
                    GROUP BY e.id
                    ORDER BY timestamp DESC
                     LIMIT 15

/ Unknown column 'a.realname' in 'field list'
thats what I see when I go to my website now. heelp

Posted: Mon Jul 11, 2005 2:17 pm
by garvinhicking
Upgrade.sh is outdated, it tells you so. Please read www.s9y.org/63.html

Edit your serendipity_config_local.inc.php file and set versionInstalled to "0.7" again so that the DB updates will be called again, this should rid your error.

regards,
Garvin