Author Topic: Help Please! Think ive found a bug in the new release  (Read 3393 times)

tomupton

  • Full Member
  • **
  • Posts: 14
Help Please! Think ive found a bug in the new release
« on: August 31, 2009, 06:30:13 pm »
Hi There,

Ive recently just upgraded my plugin to the latest version, but im not getting some random errors within my pages.

This is both on the home page of my website and within the individual pages too!

For example the following is appearing just above my player.

Warning: array_unshift() [function.array-unshift]: The first argument should be an array in /home/house/public_html/wp-content/plugins/powerpress/powerpress.php on line 106

Warning: Variable passed to each() is not an array or object in /home/house/public_html/wp-content/plugins/powerpress/powerpress.php on line 156


Please could someone advise me on how to resolve this?

Regards
TOm

lephio

  • Newbie
  • Posts: 2
Re: Help Please! Think ive found a bug in the new release
« Reply #1 on: August 31, 2009, 10:09:03 pm »
same to me!!!

help!!!

lephio

  • Newbie
  • Posts: 2
Re: Help Please! Think ive found a bug in the new release
« Reply #2 on: September 01, 2009, 12:34:30 am »
that's my workaround. just added

Code: [Select]
$GeneralSettings['custom_feeds'] = array();

in powerpress.php just after this line

Code: [Select]
$GeneralSettings = get_option('powerpress_general');


angelo

  • CIO, RawVoice
  • Administrator
  • Hero Member
  • *****
  • Posts: 4483
Re: Help Please! Think ive found a bug in the new release
« Reply #3 on: September 01, 2009, 05:42:01 am »
This bug was fixed in 0.9.7 release.

The code provided by lephio should include a check first...

Code: [Select]
if( !isset($GeneralSettings['custom_feeds']) )
    $GeneralSettings['custom_feeds'] = array();

Otherwise it could cause issues for users who have custom podcast feeds.