0.9 Alpha 5 - problem with static pace

Creating and modifying plugins.
robert
Regular
Posts: 1063
Joined: Mon May 09, 2005 9:17 pm
Location: Vienna, Austria
Contact:

0.9 Alpha 5 - problem with static pace

Post by robert »

I installed 0.9 Alpha 5.
Open a static page functions well. But when I open a static page in administration mode (or try to create a new one) I got an error
Fatal error: Call to undefined function: serendipity_emit_htmlarea_code() in /home/.sites/110/site313/web/blog/plugins/serendipity_event_staticpage/serendipity_event_staticpage.php on line 776
Hope this is an easy problem.

Regards
Robert
Von 2005 bis 2020 nutzte ich Serendipity/S9y. Auch nach meinem Umstieg bin ich S9y weiterhin in Gedanken verbunden. Ein Dank ergeht an alle Forumsteilnehmer:innen, die mir hier weitergeholfen haben.

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

Re: 0.9 Alpha 5 - problem with static pace

Post by garvinhicking »

You'll need to upgrade your staticpage plugin, because some functions have been moved. I'm sorry for that inconvenience, I still don't know how to better handle those cross dependencies of plugins/core code changes.

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/
Guest

Post by Guest »

robert from outside - as a guest ;-) :

Thanks for the answer. But I don´t see a red button for update. Or should I deinstall the plugin and install it again?

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

Post by robert »

I updated to the newest nightly. But there is no hint that a new version of static page plugin is available.

Regards
Robert
Von 2005 bis 2020 nutzte ich Serendipity/S9y. Auch nach meinem Umstieg bin ich S9y weiterhin in Gedanken verbunden. Ein Dank ergeht an alle Forumsteilnehmer:innen, die mir hier weitergeholfen haben.

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

Post by garvinhicking »

The automatic spartacus XML creation was broken because of a bad plugin. Just fixed that. :)

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: 1063
Joined: Mon May 09, 2005 9:17 pm
Location: Vienna, Austria
Contact:

Post by robert »

Excuse my non-intelligent question: And this means? Should I install a new nightly?

Thanks in advance
Robert
Von 2005 bis 2020 nutzte ich Serendipity/S9y. Auch nach meinem Umstieg bin ich S9y weiterhin in Gedanken verbunden. Ein Dank ergeht an alle Forumsteilnehmer:innen, die mir hier weitergeholfen haben.

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

Post by garvinhicking »

I'm sorry for being unprecise. The autogenerated XML is created on my machine and uploaded to netmirror.org.

I fixed the error on my machine, so no interaction from you is required. Just purge your cache (configure spartacus plugin, save the plugin, the *.xml files will be deleted then) and then the new and updated XML will be fetched.

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/
randulo
Regular
Posts: 141
Joined: Thu Jul 21, 2005 10:28 am

Post by randulo »

garvinhicking wrote:The autogenerated XML is created on my machine and uploaded to netmirror.org.
I fixed the error on my machine, so no interaction from you is required. Just purge your cache (configure spartacus plugin, save the plugin, the *.xml files will be deleted then) and then the new and updated XML will be fetched.
Hi Garvin, I just did that a few times and see no change?

I went to spartacus, changed the two servers, saved, went away, came back to spartacus and changed them back to what they were (netmirror for the xml) and saved.

Uninstalled and re-installed the plugin and still get the error. I must be doing something wrong?
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Randulo, of which error are you talking about? And which version of the plugin do you have installed currently?

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/
randulo
Regular
Posts: 141
Joined: Thu Jul 21, 2005 10:28 am

Static plugin

Post by randulo »

garvinhicking wrote:Randulo, of which error are you talking about? And which version of the plugin do you have installed currently?
Serendipity 0.9-alpha5
Plugin from latest XML

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

Re: Static plugin

Post by garvinhicking »

There's a text missing, your entry ends with "The 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/
randulo
Regular
Posts: 141
Joined: Thu Jul 21, 2005 10:28 am

wait a sec...

Post by randulo »

empty
randulo
Regular
Posts: 141
Joined: Thu Jul 21, 2005 10:28 am

Re: Static plugin

Post by randulo »

garvinhicking wrote:There's a text missing, your entry ends with "The error"?

Regards,
Garvin
I deleted the static_pages directories forgetting to uninstall the plugin. Now Spartacus is in trouble. I'll need some time to get those dirs back and uninstall, but for the first time I got the XML file deleted message and I guess that was what was missing. NOw I should be able to download the proper version.

r
randulo
Regular
Posts: 141
Joined: Thu Jul 21, 2005 10:28 am

So I'm still having problems

Post by randulo »

When I uninstall the staticpage plugin, then go to the configure plugins page, and then "click here to install new event plugin" the static pages plugin doesn't have the little arrow. I guess thatmeans it thinks it already has it. Unfortunately, because of the mistake I made (deleting the directory before uninstalling the old plugin) I copied the directory over from the earlier 0.8 serendipity version.

The problem is that the database was not set up right, the columns weren't created.

Serendipity 0.9-alpha5

If I remove the plugins/serendipity_staticpage directory, the arrow is there but the procedure dies with errors.

If I leave the directory, when I try to install:

Trying to open URL package_event_en.xml...
Fetched 119219 bytes from already existing file on your server. Saving
file as /web/wlp/WLPcms/templates_c/package_event_en.xml...

Static pages version: 2.12 (arrow not there)

How can I get rid of this unwanted plugin to get the new one and get it to create the new columns?

This all worked fine on the 0.8 version.
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: So I'm still having problems

Post by garvinhicking »

Why do you think that columns are missing? And when you say, Spartacus fetching dies with errors, I can't do anything without you telling me the errors. :-)

What you need to do basically is:

1. Uninstall all remaining static page event plugins, if any
2. Delete the plugins/serendipity_event_staticpage directory
3. Re-install the staticpage plugin via Spartacus (if that still fails just download the files from http://cvs.sourceforge.net/viewcvs.py/p ... staticpage)
4. Now after installing you must use a tool like phpMyAdmin to adjust staticpage plugin column structure manually. Since you deleted the plugin, I cannot reconstruct the "db_built" variable for your installation. Send me your current serendipity_staticpages structure DB dump and I'll tell you which SQL code to execute. All can be found in the "setupDB" function call inside the plugin if you want to do it on your own.

This is all a bit of trouble because the way you went with the plugin was not good and suggested. :-)

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