List of installed Event Plugins is gone

Creating and modifying plugins.
hmesker
Regular
Posts: 29
Joined: Wed Jul 27, 2005 7:34 pm
Contact:

List of installed Event Plugins is gone

Post by hmesker »

Suddenly, out of the blue, the list of installed Event Plugins is missing. When I go to 'Configure Plugins' in the menu I see the list of installed Sidebar Plugins, but below that there is only a "Event Plugins - Click here to install a new event plugin - Title - Permissions" heading, and delete & save buttons, the plugins themselves are not listed. I can install a new Event Plugin, but even that one doesn't show up.

My list of installed Events Plugins is gone. Does anybody have a clue how I can solve this?

Thanks,

Harmen.
gwilsonmail
Regular
Posts: 146
Joined: Tue Jul 12, 2005 9:12 pm
Location: Ottawa, Canada
Contact:

Post by gwilsonmail »

Did you move a directory or your blogsite?

Did you change any ownership or permissions?

Did you change or move databases?
gw
Guest

Post by Guest »

gwilsonmail wrote:Did you move a directory or your blogsite?
Check: no. It is all in the folder /serendipity of my site. Nothing changed there, as far as I can see.
Did you change any ownership or permissions?
Check: not that I can see. All permissions are according to the installation instructions.
Did you change or move databases?
Check: no. Serendipity has its own database and I don't see any particular changes with that.

Harmen.
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: List of installed Event Plugins is gone

Post by garvinhicking »

Check your "serendipity_plugins" DB table, if all is there. Check which "authorid" is listed there?

This usually cannot happen out of the blue - is there a plugin you installed which may have caused this effect? Which s9y version are you using?

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/
hmesker
Regular
Posts: 29
Joined: Wed Jul 27, 2005 7:34 pm
Contact:

Re: List of installed Event Plugins is gone

Post by hmesker »

garvinhicking wrote:Check your "serendipity_plugins" DB table, if all is there. Check which "authorid" is listed there?

This usually cannot happen out of the blue - is there a plugin you installed which may have caused this effect? Which s9y version are you using?

Regards,
Garvin
Hi Garvin,

Thank you for your reply. I agree that things like this cannot happen out of nothing, and I am tracking my traces to see what could have caused it. The only major thing I did was upgrade my version of Mambo which is located in the root of my site - and uses a different database. Serendipity is in a different folder 'serendipity', and was completely left alone, as far as I can see.

Anyway, the plugins table looks okay to me. The authorid is '0'. This is an export from it by PHPMyAdmin:

Code: Select all

CREATE TABLE `serendipity_plugins` (
  `name` varchar(128) NOT NULL default '',
  `placement` varchar(6) NOT NULL default 'right',
  `sort_order` int(4) NOT NULL default '0',
  `authorid` int(11) default '0',
  `path` varchar(255) default NULL,
  PRIMARY KEY  (`name`),
  KEY `pluginauthorid_idx` (`authorid`)
) TYPE=MyISAM;

-- 
-- Gegevens worden uitgevoerd voor tabel `serendipity_plugins`
-- 

INSERT INTO `serendipity_plugins` VALUES ('@serendipity_calendar_plugin:1025168da379fdf8f375b9cdb921e140', 'right', 3, 0, NULL);
INSERT INTO `serendipity_plugins` VALUES ('@serendipity_quicksearch_plugin:e6b5ddf0b169d4f63a14448932d63311', 'right', 5, 0, NULL);
INSERT INTO `serendipity_plugins` VALUES ('@serendipity_html_nugget_plugin:2e1b4d000f803a9e3a80f0f2c8d54f99', 'right', 1, 0, NULL);
INSERT INTO `serendipity_plugins` VALUES ('serendipity_event_htmlvalidator:1ff0b4e855321f86fc47920e56b7c0e3', 'event', 4, 0, NULL);
INSERT INTO `serendipity_plugins` VALUES ('serendipity_event_livesearch:9de122a58a7aebd7ff5ca039070048f3', 'event', 5, 0, NULL);
INSERT INTO `serendipity_plugins` VALUES ('@serendipity_syndication_plugin:f45759b494fb9809d6bcc9371ab498c5', 'right', 7, 0, NULL);
INSERT INTO `serendipity_plugins` VALUES ('serendipity_event_xhtmlcleanup:4c7a88bb68581dcccec2f8c2992633fe', 'event', 2, 0, NULL);
INSERT INTO `serendipity_plugins` VALUES ('serendipity_event_babelfish:78209b1e9288bb832582abce50409ae6', 'event', 6, 0, NULL);
INSERT INTO `serendipity_plugins` VALUES ('serendipity_event_searchhighlight:c8891e832751d2cc796316b62dfa21c8', 'event', 3, 0, NULL);
INSERT INTO `serendipity_plugins` VALUES ('serendipity_event_spamblock:b85db23bb2ef81118c9dfe4ef57bc166', 'event', 1, 0, NULL);
INSERT INTO `serendipity_plugins` VALUES ('serendipity_plugin_staticpage:434b842b78d222125041f6e8b664820b', 'hide', 6, 0, 'serendipity_plugin_staticpage');
INSERT INTO `serendipity_plugins` VALUES ('serendipity_event_s9ymarkup:08e0d683aabdedf2dd6cf42304f61b6a', 'event', 0, 0, NULL);
INSERT INTO `serendipity_plugins` VALUES ('@serendipity_html_nugget_plugin:788c1bbeaf9d14514472d9a2bc2aa7c7', 'right', 4, 0, NULL);
INSERT INTO `serendipity_plugins` VALUES ('serendipity_event_weblogping:d3c892eb1758efb4d868bc652ebefe42', 'event', 11, 0, 'serendipity_event_weblogping');
INSERT INTO `serendipity_plugins` VALUES ('serendipity_event_photoblog:acbc7a495d7c79b328776574f6cbbb91', 'event', 9, 0, 'serendipity_event_photoblog');
INSERT INTO `serendipity_plugins` VALUES ('serendipity_event_emoticonchooser:098c913e859b57b670fe41eaeb53d4cd', 'event', 7, 0, NULL);
INSERT INTO `serendipity_plugins` VALUES ('serendipity_event_browsercompatibility:22887a576cae561a14e12a1cf11f9abe', 'event', 8, 0, '');
INSERT INTO `serendipity_plugins` VALUES ('@serendipity_categories_plugin:c4c2d467f02b036fdf6ec391036b75db', 'right', 2, 0, '');
INSERT INTO `serendipity_plugins` VALUES ('serendipity_event_emoticate:f3d43dcc218c712de709f7990a0b926c', 'event', 12, 0, 'serendipity_event_emoticate');
INSERT INTO `serendipity_plugins` VALUES ('serendipity_plugin_remoterss:10c20aad0a207df80c3493871c575187', 'right', 9, 0, 'serendipity_plugin_remoterss');
INSERT INTO `serendipity_plugins` VALUES ('serendipity_plugin_google_last_query:de307d477769c040762b20dc1f52518f', 'right', 8, 0, 'serendipity_plugin_google_last_query');
INSERT INTO `serendipity_plugins` VALUES ('serendipity_event_assigncategories:a1605390a607ab01f2c2be9c18d92b5e', 'event', 13, 0, 'serendipity_event_assigncategories');
INSERT INTO `serendipity_plugins` VALUES ('serendipity_event_layout_printerfriendly:705598c60e6fb4fe946d895fd008cc3d', 'event', 14, 0, 'serendipity_event_layout_printerfriendly');
INSERT INTO `serendipity_plugins` VALUES ('serendipity_event_customarchive:046d43bd93701c4fe0fbd9bb5320b1d0', 'event', 15, 0, 'serendipity_event_customarchive');
INSERT INTO `serendipity_plugins` VALUES ('serendipity_event_staticpage:dba289a06b747102d635a3faefddcf85', 'event', 10, 0, 'serendipity_event_staticpage');
INSERT INTO `serendipity_plugins` VALUES ('serendipity_plugin_phpbox:2ea2ef4167fb82272e0c15e4028fad28', 'right', 10, 0, 'serendipity_plugin_phpbox');
INSERT INTO `serendipity_plugins` VALUES ('serendipity_event_contentrewrite:3b96a5ddd736b9d6659c8757414a9d45', 'event', 16, 0, 'serendipity_event_contentrewrite');
INSERT INTO `serendipity_plugins` VALUES ('@serendipity_plug_plugin:6b72cff4d1f79911b29d3526708658b2', 'right', 11, 0, '');
I hope this helps. Thanks!

Harmen.
hmesker
Regular
Posts: 29
Joined: Wed Jul 27, 2005 7:34 pm
Contact:

P.S.

Post by hmesker »

I copied all the files from the Serendipity installation file over the existent installation, hoping that would solve the problem. It didn't.

HM
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: P.S.

Post by garvinhicking »

I think the problem is that some of your Plugins may not be found, causing a hickup in the listing.

Can you check if each plugin is available in your plugins/ directory? Those prefixed iwth "@" are internal and need not be there.

If the DB column "pluginpath" is NULL or empty, it search in the plugins/ directory. If the column is not empty, it looks inside the path specified there for the plugin.

You might also want to search if you can enable PHP Warnings/Errors temporarily and see if you have errors on th page?

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/
hmesker
Regular
Posts: 29
Joined: Wed Jul 27, 2005 7:34 pm
Contact:

Solved!

Post by hmesker »

I deleted all the plugins from the table, and re-inserted them manually one by one. When I inserted the PHP Box plugin, the problem occured. So I removed this plugin - problem solved!

Best wishes,

Harmen.
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Solved!

Post by garvinhicking »

Okay, the PHP Box plugin is not officially supported because it is a potentially very evil plugin whose use I generaly discourage...

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/
hmesker
Regular
Posts: 29
Joined: Wed Jul 27, 2005 7:34 pm
Contact:

Re: Solved!

Post by hmesker »

garvinhicking wrote:Okay, the PHP Box plugin is not officially supported because it is a potentially very evil plugin whose use I generaly discourage...
I know, but I wanted a small piece of code on my site that shows how many visitors I had the day before (I use TraceWatch (www.tracewatch.com) for statistics, highly recommended). Do you have another method for this?

Best regards,

Harmen.
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Solved!

Post by garvinhicking »

Yes, of course. You can build a full Serendipity plugin for that specific reason very easily!

As a foundation you can use the HTML Nugget plugin, or even the phpbox plugin, and just include your PHP code that you formerly put in the phpbox.

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/
hmesker
Regular
Posts: 29
Joined: Wed Jul 27, 2005 7:34 pm
Contact:

Re: Solved!

Post by hmesker »

garvinhicking wrote:Yes, of course. You can build a full Serendipity plugin for that specific reason very easily!

As a foundation you can use the HTML Nugget plugin, or even the phpbox plugin, and just include your PHP code that you formerly put in the phpbox.
Ehm, I'm sorry, but that is way too complicated for me. I don't know anything about PHP programming and even the simplest script baffles me. That's why I liked the PHP Box, I only had to paste the code in it. But thanks for the tip.

Best,

Harmen.
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Solved!

Post by garvinhicking »

Ah, okay. Then I'm sorry - the reason is then surely that you cannot paste ANY php Code into the box. Some scripts can do some nasty things that destroyy the whole Serendipity framework so that it can not work any longer (just like you experienced).

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/
hmesker
Regular
Posts: 29
Joined: Wed Jul 27, 2005 7:34 pm
Contact:

Re: Solved!

Post by hmesker »

garvinhicking wrote:Ah, okay. Then I'm sorry - the reason is then surely that you cannot paste ANY php Code into the box. Some scripts can do some nasty things that destroyy the whole Serendipity framework so that it can not work any longer (just like you experienced).
Yeah, I noticed. Yesterday I tried to use the plugin again, but made a typo in the scripted I pasted. After that the complete admin interface was ruined, I had to remove the plugin manually from the table in the database to get it working again. Bad, bad script! No donut for you.

HM
wesley
Regular
Posts: 197
Joined: Sun Jul 10, 2005 11:15 am
Contact:

Post by wesley »

OHH. Wait, Now I remember.

When I was making a plug-in, a simple misplacement of a single quote ( ' )
lead to the disappearance of the whole event plugin listing. Everything else
showed up fine. The sidebar plugin listing was fine. Heh.

Not exactly the same problem, as the disappearance occurred from the
'add new plugin' page, not the configuration page, but it shows how a rogue
plugin can/will mess up s9y's operation.

BTW, I had no experience with PHP prior to encountering s9y. s9y was a
great way to do the PHP lessons in crash-course fashion. Hehe... At least
now I think I know enough to understand how things get around.

So... if you're inclined to use s9y a lot, I think it won't hurt to get to know
a bit of PHP.
I make s9y plugins, too.
My s9y blog depends on them. :)
Post Reply