sburnham
Member
Posted 8 years ago #
My Site Is At http://drgnanime.phpwebhosting.com
I Made Static Page After Installing The Plug-In, They Work Fine.
But When I Make a static page and inclue the following line in
<? include ('newsfeeds/zfeeder.php'); ?>
I get
Warning: sort() expects parameter 1 to be array, null given in /home/drgnanime/www/newsfeeds/zfeeder.php on line 72
Warning: Invalid argument supplied for foreach() in /home/drgnanime/www/newsfeeds/zfeeder.php on line 74
No feeds.
But The Feed Works If I Link Directly To It At
http://drgnanime.phpwebhosting.com/test.php
But I Want It In The Template:
Any Ideas????
What plugin are you using?
sburnham
Member
Posted 8 years ago #
EZ Static and the zfeeder for the RSS php
I guess I don't understand exactly what the problem is. If it turns out to be something specifically with zFeeder, feel free to try CG-Feedread (part of the CG-PowerPack, best to use from there as it has a many-weeks-updated version vs the individual archive).
Sounds like something invalid being passed to zFeeder in the static page. But hard to tell without seeing .phps 'readable' code files or something.
I take it you are trying to do a sidebar on your site that shows items from the BT rss feeds you are interested in? Or are you trying to do a separate page? Not sure where the static page thing is coming in...
-d
I confirmed the problem, and it seems to be related to how EZStatic works. Not sure yet exactly what needs to change, but I have a work around that works, as you can see here:
http://www.xyth.com/zindex.php
You just need to create a static page without using EZStatic.
Copy your WP index.php file and name it something like zindex.php. Gut out all the code between the <div id="content"> and the </div><div id="menu"> tags. Replace it with the line
<? include ('newsfeeds/zfeeder.php'); ?>
When done, that section should look like:
<div id="content">
<? include ('newsfeeds/zfeeder.php'); ?>
</div>
Link to that file from your menu and it should work.