static pages and search fatal error

Found a bug? Tell us!!
Post Reply
lurch
Regular
Posts: 9
Joined: Fri Jan 17, 2014 9:58 pm

static pages and search fatal error

Post by lurch » Fri Jan 17, 2014 10:02 pm

When navigating to a static page or using the search box I get the following error

Code: Select all

Fatal error: Uncaught exception 'ErrorException' with message 'Serendipity error: array_merge() [<a href='function.array-merge'>function.array-merge</a>]: Argument #2 is not an array' in /home/user1/public_html/include/compat.inc.php:118 Stack trace: #0 [internal function]: errorToExceptionHandler(Array, NULL) #1 /home/user1/public_html/bundled-libs/Smarty/libs/sysplugins/smarty_internal_templatebase.php(75): array_merge('file:/home/user...', NULL, NULL, false) #2 /home/user1/public_html/plugins/serendipity_event_staticpage/serendipity_event_staticpage.php(1179): Smarty_Internal_TemplateBase->fetch() #3 /home/user1/public_html/plugins/serendipity_event_staticpage/serendipity_event_staticpage.php(1191): serendipity_event_staticpage->parseStaticPage() #4 /home/user1/public_html/plugins/serendipity_event_staticpage/serendipity_event_staticpage.php(2773): serendipity_event_staticpage->show('entries_header', Objec in /home/user1/public_html/include/compat.inc.php on line 118
Can anyone decipher it for me?

User avatar
Timbalu
Regular
Posts: 4598
Joined: Sun May 02, 2004 3:04 pm

Re: static pages and search fatal error

Post by Timbalu » Sat Jan 18, 2014 10:14 am

It means that second Argument #2 ($tpl_vars) is not an array

Code: Select all

            if (!empty(Smarty::$global_tpl_vars)) {
                $tpl_vars = array_merge(Smarty::$global_tpl_vars, $tpl_vars);
            }
and seems to say, the template vars (like $entry.header, $entry.body etc) are not overhanded as an array. That is strange!
Which PHP, Staticpage plugin and Serendipity version, please?
What did you do? Did you upgrade the Staticpages plugin (or S9y to 1.7 series) lately? Did this definitely work before (S9y/Smarty version series)?
Please also check your entries in the staticpage_precontent field. There might be something wrong with it. (Into the blue: that field does not exist, carries a blank char, or the template is not fetched correctly...)
Regards,
Ian

Serendipity Styx Edition and additional_plugins @ https://ophian.github.io/ @ https://github.com/ophian

lurch
Regular
Posts: 9
Joined: Fri Jan 17, 2014 9:58 pm

Re: static pages and search fatal error

Post by lurch » Sat Jan 18, 2014 10:22 am

Hi thanks for the reply, a little while ago I upgraded to 1.7-rc3 and after this it stopped working and it's running version: 3.80 of the static pages plugin.

User avatar
Timbalu
Regular
Posts: 4598
Joined: Sun May 02, 2004 3:04 pm

Re: static pages and search fatal error

Post by Timbalu » Sat Jan 18, 2014 10:28 am

"Ok" - please upgrade both!
Then we can talk again. :wink:
Regards,
Ian

Serendipity Styx Edition and additional_plugins @ https://ophian.github.io/ @ https://github.com/ophian

User avatar
yellowled
Regular
Posts: 7111
Joined: Fri Jan 13, 2006 11:46 am
Location: Eutin, Germany
Contact:

Re: static pages and search fatal error

Post by yellowled » Sat Jan 18, 2014 10:36 am

Might want to wait a few more hours until the 1.7.5 release is public.

YL
amazon Wishlist - Serendipity-Podcast (German only, sorry)

lurch
Regular
Posts: 9
Joined: Fri Jan 17, 2014 9:58 pm

Re: static pages and search fatal error

Post by lurch » Sat Jan 18, 2014 1:19 pm

sorted buy upgrading to 1.7.5 and updating the staticpage plugin thank you for your help.

User avatar
Timbalu
Regular
Posts: 4598
Joined: Sun May 02, 2004 3:04 pm

Re: static pages and search fatal error

Post by Timbalu » Sat Jan 18, 2014 1:29 pm

...and next time do not wait another year! :P We know this is Serendipity, but upgrades are a necessary thing, to always get latest security and best known working draft. Usually they just work!
Regards,
Ian

Serendipity Styx Edition and additional_plugins @ https://ophian.github.io/ @ https://github.com/ophian

lurch
Regular
Posts: 9
Joined: Fri Jan 17, 2014 9:58 pm

Re: static pages and search fatal error

Post by lurch » Sat Jan 18, 2014 2:13 pm

I know i'm bad i'll be more on top of it in future :wink:

Post Reply