Static page plugin - can't update content

Creating and modifying plugins.
Post Reply
vastneonwolf
Regular
Posts: 43
Joined: Sun May 22, 2005 6:57 am
Contact:

Static page plugin - can't update content

Post by vastneonwolf »

I've been using the static page plugin and loving it.
Well until I tried to make a change to the content on the static page.
The only way to make changes is to delete the page the start again. Is it just me or is there something wrong here?
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Static page plugin - can't update content

Post by garvinhicking »

Works well for me. Which version of the plugin are you using?

How exactly are you updating your content, please describe the steps you make and the links/buttons you click.

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/
vastneonwolf
Regular
Posts: 43
Joined: Sun May 22, 2005 6:57 am
Contact:

Post by vastneonwolf »

I'm using version 3.0.

When I go to edit a static page:
Click "Static Pages" link in Admin side bar
Select the page name from the dropdown
Click "Go"
Make some changes
Click "Save"
I get the "Done: The new settings have been saved at 21:24:35" Message

Reload the static page and the changes don't show up.

I have to delet the old page and re-create it to make a change.
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

But there is no version 3.0. Only 2.0. :)

Anyways, the way you outline should work. It does work for me. Which PHP version are you using?

Can you use phpMyAdmin or sth like that and see if your serendipity_staticpages table contains your staticpage with the changes, or if the Table is not updated?

If that doesn't help us further, I can only offer to look at your installation if you give me a FTP+Serendipity account on your machine. Most probably the updateStaticPage() method of the plugin fails on your system...though I can't see why.

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/
vastneonwolf
Regular
Posts: 43
Joined: Sun May 22, 2005 6:57 am
Contact:

Post by vastneonwolf »

Sorry I meant 0.3
serendipity_event_staticpage.php, v0.3 2004/10/16
is what it says in the code
And that is the one I just got from CVS
Though CVS lists it as 1.17
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

What I mean is the plugin version, which has nothing to do with the CVS version string. You can see the plugin version in your Plugin Configuration panel. :)

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/
vastneonwolf
Regular
Posts: 43
Joined: Sun May 22, 2005 6:57 am
Contact:

Post by vastneonwolf »

Oh okay :)
That say's v2.0
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Okay then the version is okay. What about my other suggestions/questions? :)
# 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/
vastneonwolf
Regular
Posts: 43
Joined: Sun May 22, 2005 6:57 am
Contact:

Post by vastneonwolf »

Took a look at the DB with phpPgAdmin, it seems the pages are created but not updated.
Can't tell much more than that.

Have created an account for you, I'll pm you the login details.
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Thanks, I've replied via PM :)

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/
robert
Regular
Posts: 1062
Joined: Mon May 09, 2005 9:17 pm
Location: Vienna, Austria
Contact:

Post by robert »

When I try to update per net I got this:
Versuche URL http://cvs.sourceforge.net/viewcvs.py/* ... additional... zu öffnen...
Datei /home/.sites/110/site313/web/blog//plugins/serendipity_event_staticpage/serendipity_event_staticpage.php kann nicht geschrieben werden.Versuche URL http://cvs.sourceforge.net/viewcvs.py/* ... additional... zu öffnen...
Datei /home/.sites/110/site313/web/blog//plugins/serendipity_event_staticpage/lang_de.inc.php kann nicht geschrieben werden.Versuche URL http://cvs.sourceforge.net/viewcvs.py/* ... additional... zu öffnen...
Datei /home/.sites/110/site313/web/blog//plugins/serendipity_event_staticpage/lang_it.inc.php kann nicht geschrieben werden.Versuche URL http://cvs.sourceforge.net/viewcvs.py/* ... additional... zu öffnen...
Datei /home/.sites/110/site313/web/blog//plugins/serendipity_event_staticpage/lang_ja.inc.php kann nicht geschrieben werden.Versuche URL http://cvs.sourceforge.net/viewcvs.py/* ... additional... zu öffnen...
Datei /home/.sites/110/site313/web/blog//plugins/serendipity_event_staticpage/serendipity_plugin_staticpage.php kann nicht geschrieben werden. Es folgt eine Liste installierter Plugins
Could someone tell me, what´s the problem. Its no problem to install other plugins by net.

Regards
Robert
Col. Kurtz
Regular
Posts: 450
Joined: Thu May 26, 2005 10:43 am
Location: Bonn, Germany
Contact:

Post by Col. Kurtz »

I tried to use the new static page sidebar thing and I got this:

Code: Select all

Versuche URL http://netmirror.org/mirror/serendipity/package_sidebar.xml zu öffnen...


Versuche URL http://cvs.sourceforge.net/viewcvs.py/*checkout*/php-blog/additional... zu öffnen...
Datei /www/htdocs/qbert//blog//plugins/serendipity_event_staticpage/serendipity_event_staticpage.php kann nicht geschrieben werden.Versuche URL http://cvs.sourceforge.net/viewcvs.py/*checkout*/php-blog/additional... zu öffnen...
Datei /www/htdocs/qbert//blog//plugins/serendipity_event_staticpage/lang_de.inc.php kann nicht geschrieben werden.Versuche URL http://cvs.sourceforge.net/viewcvs.py/*checkout*/php-blog/additional... zu öffnen...
Datei /www/htdocs/qbert//blog//plugins/serendipity_event_staticpage/lang_it.inc.php kann nicht geschrieben werden.Versuche URL http://cvs.sourceforge.net/viewcvs.py/*checkout*/php-blog/additional... zu öffnen...
Datei /www/htdocs/qbert//blog//plugins/serendipity_event_staticpage/lang_ja.inc.php kann nicht geschrieben werden.Versuche URL http://cvs.sourceforge.net/viewcvs.py/*checkout*/php-blog/additional... zu öffnen...
Datei /www/htdocs/qbert//blog//plugins/serendipity_event_staticpage/serendipity_plugin_staticpage.php kann nicht geschrieben werden.Fehler: serendipity_plugin_staticpage:a4cf77e0d9020bfffd0b2b35b248e179 (serendipity_plugin_staticpage)

Fatal error: Call to a member function on a non-object in /www/htdocs/qbert/blog/include/admin/plugins.inc.php on line 664
Updating the static page plugin to version 2.0 seems to have worked.
robert
Regular
Posts: 1062
Joined: Mon May 09, 2005 9:17 pm
Location: Vienna, Austria
Contact:

Post by robert »

As I tried to install another plugin i got the same error in "plugins.inc.php".

Regards
Robert
robert
Regular
Posts: 1062
Joined: Mon May 09, 2005 9:17 pm
Location: Vienna, Austria
Contact:

Post by robert »

Got it :D (Hope so).

Read Blogentry http://blog.s9y.org/archives/23-Spartac ... ified.html

Regards
Robert
Post Reply