• Hi. I have got the plug in to work on my site thank you – I have 2 footnotes one page – but above the text I have this message appearing twice (probably because there are 2 footnotes).

    Notice: Undefined variable: singleurl in /var/sites/k/karolagajda.com/public_html/wp-content/plugins/fd-footnotes/fdfootnotes.php on line 130

    Notice: Undefined variable: singleurl in /var/sites/k/karolagajda.com/public_html/wp-content/plugins/fd-footnotes/fdfootnotes.php on line 130

    Do you know how I could get rid of them please?

    If it’s a help, I had a bit of trouble getting to work at first, but just tried deleting spaces here and there and got rid of a pair of ’round’ brackets inside the footnote itself.

    Thank you.

    https://wordpress.org/plugins/fd-footnotes/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter KarolaW

    (@karolaw)

    Sorry – I’m talking about http://www.karolagajda.com. Error currently there so you can see what I mean.

    I ran into the same problem when using this plugin on my development server and after doing some debugging found that the $singleurl variable is only ever declared if the current post-type is NOT a page, and NOT a single (post), and the “Only show footnotes on single post/page” checkbox has NOT been checked on the Footnotes Configuration page. I happened to be using a footnote on a page so the error was thrown.

    Note, the PHP undefined variable notice only displayed because I had the WP_DEBUG and WP_DEBUG_DISPLAY constants defined in the wp-config.php file. Otherwise, I was using the default plugin settings.

    To get rid of the notice I simply added:

    $singleurl = '';

    Immediately after line 117 in the fdfootnotes.php file, which declares $singleurl prior to it being used.

    This appears to be a bug that should probably be fixed in the next release.

    If you require assistance then, as per the Forum Welcome, please post your own topic instead of tagging onto someone else’s topic.

    I am now closing this 2 month old topic as it references an older version of WordPress.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Notice: Undefined variable: singleurl in’ is closed to new replies.