chavag
Forum Replies Created
-
Forum: Plugins
In reply to: [RSS Post Importer] Error on Feeds API KeyFor anyone else having trouble with this, here’s how I resolved it:
Line 43 in wp-content/plugins/rss-post-importer/app/class-rss-post-importer.php reads:
'feeds_api_key' => sanitize_key($_POST['feeds_api_key'])Since I am not a premium user, I don’t have an API key. There’s nothing posting as ‘feeds_api_key’, and this triggers the above notice.
To fix it, I commented that line out, and replaced it with:
'feeds_api_key' => ''If you are going to use this for yourself, please note:
* Since I edited the plugin file directly, any upgrade may cause this edit to be overwritten.
* If I ever choose to upgrade, and use an API key, I must revert to the original code for the upgrade to take effect.
(* The reason I replaced the line, is because this index is used later on in the code. If you just comment it out, then the code will trigger the same notice on line 49.)If you plan to upgrade eventually, here’s a better solution:
Add this code above line 42 (which reads:
$settings = array():`if ( isset($_POST[‘feeds_api_key’]) )
{
$feeds_api_key = sanitize_key($_POST[‘feeds_api_key’]);
}
else
{
$feeds_api_key = ”;
}`and replace the code from line 43 with:
'feeds_api_key' => $feeds_api_keyThis will first check if an API key was posted. If you have an API key, it will use that, and if not, it will replace the ‘undefined index’ with an empty string.
Good Luck!
Forum: Plugins
In reply to: [RSS Post Importer] Error on Feeds API KeyThank you for taking the time to respond to this issue.
I am also getting the above notice since this morning without changing anything in my plugin settings. This is followed by a warning:
Warning: session_start(): Cannot send session cache limiter – headers already sent (output started at myserver/public_html/wp-content/plugins/rss-post-importer/app/class-rss-post-importer.php:43)
which led to a complete shutdown of my site.
Would you be able to help resolve this issue?
1) How is it that this issue just came up now, without any change in the plugin settings from my part? I didn’t run into this while using the plugin for over a year.
2) How can I resolve the issue?
You mention above to edit the permissions on the folders and sub-folders on the plugin. They are all fine.
I do not understand what you mean by deleting the command on line 43 via index.php file. The notice refers to line 43 in “class-rss-post-importer.php” file, and index.php includes this file, which is of course necessary for the functionality of the plugin. Can you explain?Any help would be greatly appreciated.
Thank you!