Wedge

Public area => Bug reports => The Pub => Archived fixes => Topic started by: txcas on April 22nd, 2014, 10:19 PM

Title: Errors in Subs-Template.php
Post by: txcas on April 22nd, 2014, 10:19 PM
I am getting thousands of these:
Code: [Select]
http://www.65creedmoor.com/
2: array_keys() expects parameter 1 to be array, null given
 File: /home/creedmoo/public_html/gz/app/Subs-Template.php
 Line: 407
Code: [Select]
Apply Filter: Only show the error messages of this URL http://www.65creedmoor.com/?topic=2008.msg17171
 2: array_merge() [<a href='function.array-merge'>function.array-merge</a>]: Argument #2 is not an array
File: /home/creedmoo/public_html/gz/app/Subs-Template.php
 Line: 406
Title: Re: Errors in Subs-Template.php
Post by: Nao on April 28th, 2014, 10:54 PM
What's in your page_replacements variable..? (print_r($settings['page_replacements']) somewhere in a template, don't forget to global $settings of course.)
Looks like the unserialize is failing, perhaps because it's set but empty.... I'll add a failsafe for that.
Title: Re: Errors in Subs-Template.php
Post by: txcas on April 29th, 2014, 09:59 PM
Now you speaking Chinese to me.   :blush:
Title: Re: Errors in Subs-Template.php
Post by: txcas on May 20th, 2014, 05:41 PM
This is now fixed.  Closing.