PLUGIN GONE BAD

Creating and modifying plugins.
Post Reply
karan

PLUGIN GONE BAD

Post by karan » Mon Jul 11, 2005 3:32 am

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.

Karan

Post by Karan » Mon Jul 11, 2005 3:41 am

Figured it out. Deleted it in the mysql table.

kidgoo
Regular
Posts: 71
Joined: Thu May 12, 2005 6:53 am

Post by kidgoo » Mon Jul 11, 2005 4:12 am

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

User avatar
garvinhicking
Core Developer
Posts: 30020
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking » Mon Jul 11, 2005 9:43 am

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
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/

karan

Post by karan » Mon Jul 11, 2005 10:03 am

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?

MySchizoBuddy
Regular
Posts: 340
Joined: Sun Jun 12, 2005 5:28 am

Post by MySchizoBuddy » Mon Jul 11, 2005 11:49 am

don't u just overwrite the file and start again,
all the imp info is in the database, so nothing is lost i guess.

karan

Post by karan » Mon Jul 11, 2005 11:52 am

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

User avatar
garvinhicking
Core Developer
Posts: 30020
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking » Mon Jul 11, 2005 2:17 pm

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
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/

Post Reply