Undefined index
-
I have just installed version 1.1.0.2 of this plugin. Straightforward to install, and no problem to create first WIKI. But on display I get these errors below. Any suggestions? I ahve already checked that it is not a theme related issue by disabling our theme (suffusion) and reverting to TwentyTwelve. The error messages remain.
Notice: Undefined index: wiki_name in /home/onenamek/public_html/wp/wp-content/plugins/wordpress-wiki-plugin/wiki.php on line 806
Notice: Undefined index: sub_wiki_order_by in /home/onenamek/public_html/wp/wp-content/plugins/wordpress-wiki-plugin/wiki.php on line 832
Notice: Undefined index: sub_wiki_order in /home/onenamek/public_html/wp/wp-content/plugins/wordpress-wiki-plugin/wiki.php on line 833
Notice: Undefined index: sub_wiki_name in /home/onenamek/public_html/wp/wp-content/plugins/wordpress-wiki-plugin/wiki.php on line 842
-
Hi @kiwi3685,
Thanks for posting here! I’ve been trying to replicate this but haven’t yet been able to. Could you get us more detail?
Where are the errors showing (front-end, back-end, both)?
What versions of WordPress and PHP are you using?
Could you please try deactivating other plugins as well, just to see how it works with that?
Hoping we can get this sorted quickly for ya! 🙂
Cheers, David
David
Error messages are as per my post above (front end). There are no error messages in the back end (assuming by that you mean the WP admin area?
WordPress version is 4.0
PHP version is 5.3.28The site (actually the dev. site for a large main site) has 31 active plugins. Any suggestions what type of plugin to start deactivating? I would prefer to leave that as a last resort, because if it is a conflict with a plugin I am more likely to abandon wordpress-wiki than any other.
An explanation for where the “missing” index’s should be coming from might help me diagnose the issue.
Hi @kiwi3685,
Thanks for your reply. I unfortunately can’t find any prior reference to that error message so I’m not immediately sure where the conflict might be.
Usually, just deactivating all other plugins and then seeing if the error is gone is the easiest way to test it. It’s best done in your development or staging environment for that matter.
If you could try enabling debugging mode as per here:
http://codex.ww.wp.xz.cn/WP_DEBUGThat could provide some additional detail on your error logs. Or is that maybe already enabled?
Also, do the plugin features work fine apart from the messages?
Cheers, David
I tried adding debug, but that gave no further information.
However I have found more similar errors that might be significant:
If I add a sub-wiki I get an error breadcrumbs:
Undefined index: breadcrumbs_in_title in /home/onenamek/public_html/wp/wp-content/plugins/wordpress-wiki-plugin/wiki.php on line 322Also, if I make any changes to my site menu it generates another series of identical errors:
Undefined index: post_type in /home/onenamek/public_html/wp/wp-content/plugins/wordpress-wiki-plugin/wiki.php on line 1933Looking at all the errors reported, are these not all parts of the code related to the pro version, and not available in the Lite version?
If so, how have I managed to end up with them. I have only ever (last week) downloaded the lite version.
To answer your final question – yes apart from filling the screen with error messages the plugin works OK. Whether it will provide what we need I will only be able to judge if it ever becomes usable. We might be interested in using the Pro version, but not if this Lite one can’t be installed in our situation.
I have now been through and deleted every plugin, one-by-one. None made any difference to the error messages.
Is there any likelihood of further support response on this issue?
Hi @kiwi3685,
Thanks for your patience here, unfortunately I’ve been completely unable to replicate this so I’m not sure why those errors are turning up but to fix them, could you please try the making the following changes in the plugin code?
On line 806, replace this:
$crumbs = array('<a href="'.home_url($this->settings['slug']).'" class="incsub_wiki_crumbs">'.$this->settings['wiki_name'].'</a>');with this:
$crumbs = array('<a href="'.home_url($this->settings['slug']).'" class="incsub_wiki_crumbs">'.( isset( settings['wiki_name'] ) ? settings['wiki_name'] : '' ).'</a>');On line 832, replace this:
'orderby' => $this->settings['sub_wiki_order_by'],with this:
'orderby' => ( isset( $this->settings['sub_wiki_order_by'] ) ? $this->settings['sub_wiki_order_by'] : '' ),On line 833, replace this:
'order' => $this->settings['sub_wiki_order'],with this:
'orderby' => ( isset( $this->settings['sub_wiki_order_by'] ) ? $this->settings['sub_wiki_order_by'] : '' ),On line 842, replace this:
$bottom = "<h3>" . $this->settings['sub_wiki_name'] . "</h3> <ul><li>";with this:
$bottom = "<h3>" . ( isset( $this->settings['sub_wiki_name'] ) ? $this->settings['sub_wiki_name'] : '' ) . "</h3> <ul><li>";On line 322, replace this:
if ($bc >= $this->settings['breadcrumbs_in_title']) {with this:
if ($bc >= ( isset( $this->settings['breadcrumbs_in_title'] ) ? $this->settings['breadcrumbs_in_title'] : '' ) ) {On line 1933, replace this:
if ($_POST['post_type'] == 'incsub_wiki' && empty($post_name)) {with this:
if (isset( $_POST['post_type'] ) && $_POST['post_type'] == 'incsub_wiki' && empty($post_name)) {Hopefully, that’ll sort it out, it seems that certain items aren’t getting set for some reason in your install. Are you running a Windows server by any chance?
Thanks,
DavidThanks, that certainly helped. Just a couple of minor corrections were required:
Your new code for line 806 is slightly wrong (missing two occurrences of $this->). Should be:
$crumbs = array(‘settings[‘slug’]).'” class=”incsub_wiki_crumbs”>’.( isset( $this->settings[‘wiki_name’] ) ? $this->settings[‘wiki_name’] : ” ).’‘);Your new code for line 833 is an (accidental) copy of your new code for line 832. It should be:
‘order’ => ( isset( $this->settings[‘sub_wiki_order’] ) ? $this->settings[‘sub_wiki_order’] : ” ),With these two changes all the original errors were cleared.
Thanks for the help.
Sorry – forgot your other question:
<<Are you running a Windows server by any chance?>>
No, just a standard Unix server. Nothing unusual about the set up as far as I’m aware.
Hi @kiwi3685,
Thanks for following up on this and for that previous correction. Glad that cleared up the error messages, it’s just really odd though that I’ve not been able to replicate it.
No worries though, I’ll mention this to the developers, I’m sure we could get this included in a future update.
Thanks!
DavidI am getting errors with the plugin. But when I went to correct the plugin in file manager it only has 450 lines. I updated right after I installed it. David do you have a version of the plugin that won’t cause errors? That I could copy? The website I am adding it to has very few plugins I deactivated all of them and still got errors.
Undefined index: catsexclude in /home/stanleyducking88/public_html/wp-content/plugins/feedblitz-feedsmart/FeedBlitz_FeedSmart.php on line 305
and on line 269
I don’t know how to correct the two errors but I want to use the plugin so I can add the feed from my new website http://recoveryfarmhouse.net in with the old website https://recoveryfarmhouse.com existing RSS feed. If I am correct on the application of the plugin it will do that.Update actually I am getting several more errors
Notice: Undefined index: page in /home/stanleyducking88/public_html/wp-content/plugins/feedblitz-feedsmart/FeedBlitz_FeedSmart.php on line 30Notice: Undefined index: catfeeds in /home/stanleyducking88/public_html/wp-content/plugins/feedblitz-feedsmart/FeedBlitz_FeedSmart.php on line 192
Notice: Undefined index: catsexclude in /home/stanleyducking88/public_html/wp-content/plugins/feedblitz-feedsmart/FeedBlitz_FeedSmart.php on line 197
Warning: Cannot modify header information – headers already sent by (output started at /home/stanleyducking88/public_html/wp-content/plugins/feedblitz-feedsmart/FeedBlitz_FeedSmart.php:30) in /home/stanleyducking88/public_html/wp-includes/pluggable.php on line 1196
Maybe I don’t even need the plugin. I spliced the new website feed in at my feedblitz account but I figured I needed code in the website too. As you can probably tell I am not a developer. The feedblitz email plugin also caused errors.
The topic ‘Undefined index’ is closed to new replies.