When you activate the plugin you get everything from line 14 of JSONFeed.inc.php on showing up on the page.
The fix is to change line 1 in JSONFeed.inc.php from
<?
to
<?php
You also need to change this on line 49 of JSONFeedSettings.inc.php.
Everything seems to function properly once I made those changes.
]]>Returns “Page not found” error in all cases.
]]>Hi jpcordial–
I’m trying to get your JSON Data Feed plugin to work on a multisite install (it’s using subdirectories). I enabled the plugin on a specific subsite, but going to the json feed results in a not found page.
The multisite install is at https://domain/mainsite/
The subsite the plugin is enabled on is at https://domain/mainsite/subsite/
The feed should be at https://domain/mainsite/subsite/json/
Any help would be appreciated.
Thanks!
]]>I believe you have an error in your code. In the _CleanMetaData function of JSONFeed.inc, you have the line…
$cleanMeta[$key] = $key;
I believe it should be
$cleanMeta[$key] = $meta;
Because with the way it is now, the returned meta fields are appears as $key/$key pairs, rather than $key/$value pairs
]]>