Page 1 of 2

0.9 Alpha 5 - problem with static pace

Posted: Sun Sep 11, 2005 7:10 pm
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

Re: 0.9 Alpha 5 - problem with static pace

Posted: Mon Sep 12, 2005 5:00 pm
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

Posted: Mon Sep 12, 2005 9:52 pm
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

Posted: Thu Sep 15, 2005 1:45 am
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

Posted: Thu Sep 15, 2005 3:57 pm
by garvinhicking
The automatic spartacus XML creation was broken because of a bad plugin. Just fixed that. :)

Regards,
Garvin

Posted: Fri Sep 16, 2005 12:15 am
by robert
Excuse my non-intelligent question: And this means? Should I install a new nightly?

Thanks in advance
Robert

Posted: Fri Sep 16, 2005 1:22 pm
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

Posted: Sat Sep 17, 2005 2:07 pm
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?

Posted: Mon Sep 19, 2005 3:54 pm
by garvinhicking
Randulo, of which error are you talking about? And which version of the plugin do you have installed currently?

Regards,
Garvin

Static plugin

Posted: Mon Sep 19, 2005 4:11 pm
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

Re: Static plugin

Posted: Mon Sep 19, 2005 4:15 pm
by garvinhicking
There's a text missing, your entry ends with "The error"?

Regards,
Garvin

wait a sec...

Posted: Mon Sep 19, 2005 4:16 pm
by randulo
empty

Re: Static plugin

Posted: Mon Sep 19, 2005 4:21 pm
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

So I'm still having problems

Posted: Mon Sep 19, 2005 5:32 pm
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.

Re: So I'm still having problems

Posted: Mon Sep 19, 2005 6:39 pm
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