Static Page Plugin bug?

Found a bug? Tell us!!
Post Reply
Carla
Posts: 3
Joined: Tue Aug 14, 2007 7:36 pm
Contact:

Static Page Plugin bug?

Post by Carla »

I can access my admin with no problem, but any page on my blog renders the following error:
Fatal error: Call to undefined method serendipity_smarty_emulator::register_function() in /home/hauntedp/public_html/serendip/plugins/serendipity_event_staticpage/serendipity_event_staticpage.php on line 1006
versions:
latest of plugin: v.3.5.6
S9y: 1.2-beta5
PHP: Since my workplace/host allows both, I attempted it with, and received the same result with, v. 4.4.4 and v. 5.2.0.

Any ideas? Is it between my keyboard and my chair :wink: , or a bug?
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Static Page Plugin bug?

Post by garvinhicking »

Hi!

You seem to be using the default-php or default-xml serendipity template, right? Those are only meant for developers. You should switch to a different theme, like the default theme. :)

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/
Carla
Posts: 3
Joined: Tue Aug 14, 2007 7:36 pm
Contact:

Re: Static Page Plugin bug?

Post by Carla »

garvinhicking wrote:You seem to be using the default-php or default-xml serendipity template, right? Those are only meant for developers. You should switch to a different theme, like the default theme. :)
No, I'm using the 1024px theme...but I do have those two themes just sitting in my themes folder. Best to remove them?

Thanks for your help!
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Static Page Plugin bug?

Post by garvinhicking »

Hi!

It seems that somehow then your template directory got mixed up!?

Only the default-php/ and default-xml/ directories should have a 'template.inc.php' file which uses this 'serendipity_smarty_emulator' function.

Under whatever circumstances it seems your files either got corrupted, or you copied some files wrongfully. Maybe re-uploading all fresh files will help you?

Also, deleting the default-php and default-xml directories might help as well.

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/
Carla
Posts: 3
Joined: Tue Aug 14, 2007 7:36 pm
Contact:

Post by Carla »

Somehow a copy of template.inc.php did get into my theme's folder, probably when I upgraded S9y versions. Thank you! All better.
Post Reply