Hi,
I run S9Y 1.1 and updated the static page plugin today (to 3.40). Now static pages are no longer displayed and I lost the possibility to edit them from the admin interface (the link is gone). I still see the plugin listed in the "Manage Plugins" screen, though.
Has anyone else experienced this before? Would it help to remove and re-install the plugin? I fear that I will lose all my static pages (if they aren't gone already). Any help would be appreciated - please let me know if you need more information.
Thanks!
Bye,
LenZ
Static pages gone after plugin update
-
garvinhicking
- Core Developer
- Posts: 30022
- Joined: Tue Sep 16, 2003 9:45 pm
- Location: Cologne, Germany
- Contact:
Re: Static pages gone after plugin update
Hi!
Hm, usually there should be no way that the "Static Pages" links dissapears in the left sidebar because this code here is unconditional:
So, this line of code should only not be reachable if either:
1. $this->setupDB() dies with a Fatal PHP Error. But then, you would see no further output of the serendipity admin menu at all, so this should not be the problem.
2. Since Serendipity 1.1 there is a way to forbid plugin execution to specific usergroups. Is the usergroup your current user is a member of allowed to execute all Event Hooks? Check the group configuration screen for your groups, there should be a multi-select field for disallowed plugins and disallowed plugin API hooks, and none of these options should be selected.
I've heard this error on a different user's install before, where I think case 2.) happened. I'd love to figure this out, so I'll stick around to do some debugging with you, if you can spare the time.
Best regards,
Garvin
Hm, usually there should be no way that the "Static Pages" links dissapears in the left sidebar because this code here is unconditional:
Code: Select all
case 'backend_sidebar_entries':
$this->setupDB();
echo '<li><a href="?serendipity[adminModule]=event_display&serendipity[adminAction]=staticpages">' . STATICPAGE_TITLE . '</a></li>';
break;
1. $this->setupDB() dies with a Fatal PHP Error. But then, you would see no further output of the serendipity admin menu at all, so this should not be the problem.
2. Since Serendipity 1.1 there is a way to forbid plugin execution to specific usergroups. Is the usergroup your current user is a member of allowed to execute all Event Hooks? Check the group configuration screen for your groups, there should be a multi-select field for disallowed plugins and disallowed plugin API hooks, and none of these options should be selected.
I've heard this error on a different user's install before, where I think case 2.) happened. I'd love to figure this out, so I'll stick around to do some debugging with you, if you can spare the time.
Best 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/
# 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/
-
Lenz Grimmer
- Posts: 3
- Joined: Wed Jan 10, 2007 5:03 pm
Hi Garvin,
thanks a ton for your reply, I appreciate it. I just have one user account which has the Access Level set to "Administrator" and is only a member of the "Administrator" Group, so I would assume it has all the required privileges?
Unfortunately I have become desperate in the meanwhile and first uninstalled the plugin via the admin interface and then additionally removed the corresponding directories on the file system as well (serendipity_plugin_staticpage and serendipity_event_staticpage).
Afterwards I re-installed the static page side bar plugin and now everything seems to be OK again... My previous static pages are still there, fortunately.
Odd. But thanks for your help anyway! I'll let you know if I experience this again.
Bye,
LenZ
thanks a ton for your reply, I appreciate it. I just have one user account which has the Access Level set to "Administrator" and is only a member of the "Administrator" Group, so I would assume it has all the required privileges?
Unfortunately I have become desperate in the meanwhile and first uninstalled the plugin via the admin interface and then additionally removed the corresponding directories on the file system as well (serendipity_plugin_staticpage and serendipity_event_staticpage).
Afterwards I re-installed the static page side bar plugin and now everything seems to be OK again... My previous static pages are still there, fortunately.
Odd. But thanks for your help anyway! I'll let you know if I experience this again.
Bye,
LenZ
-
garvinhicking
- Core Developer
- Posts: 30022
- Joined: Tue Sep 16, 2003 9:45 pm
- Location: Cologne, Germany
- Contact:
Hi Lenz!
Okay. To me it seems like the PHP-Files might have missed some code - else I can't really explain the odd behaviour.
The staticpages are luckily stored in the database, which plugins usually leave intact even when uninstalled.
If you should face the problem again, please contact me again and I'd love to take a stab at it. Might be related to a faulty spartacus download, the way I read your fix...
Best regards,
Garvin
Okay. To me it seems like the PHP-Files might have missed some code - else I can't really explain the odd behaviour.
The staticpages are luckily stored in the database, which plugins usually leave intact even when uninstalled.
If you should face the problem again, please contact me again and I'd love to take a stab at it. Might be related to a faulty spartacus download, the way I read your fix...
Best 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/
# 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/