ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Seeing "Notice: Undefined variable" only when logged in

September 05, 2008 4:01pm

Subscribe [2]
  • #1 / Sep 05, 2008 4:01pm

    454 Creative

    23 posts

    First off, this problem revolves around using Frontpge Slideshow.

    I’m using the slideshow on my homepage, and when logged out it appears perfectly.

    See it here: http://67.205.4.221/

    BUT, when logged in I get Notice: Undefined variable: (You can see what I’m talking about here)

    I have 2 questions.

    1) is this something I should be concerned with?

    2) is there a way to turn them off?

    I’ve already posted on their forums (I dont like to post about problems relating to other software), but they didnt have an answer (not as good of support as EE).

  • #2 / Sep 05, 2008 4:23pm

    Sue Crocker

    26054 posts

    sosadamsos, you should be able to tell them about the error you’re seeing. It’s something that probably should be fixed.

    Your regular visitors won’t see that error, but as a SuperAdmin you will.

    Admin ›  System Preferences ›  Output and Debugging Preferences

    You can set the value of

    Debug Preference
    Enables the display of error messages, which are valuable during site development

    to 1 or 0.

    Does that make sense?

  • #3 / Sep 05, 2008 4:26pm

    454 Creative

    23 posts

    Perfectly clear. Thank you.

    I will report the issue to them (and others already have).

    Unfortunately, like i said, they’re support is anywhere near what it should be (unlike EE).

    Thanks again!

  • #4 / Sep 07, 2008 12:59pm

    Robin Sowell

    13255 posts

    I always like errors to show for me as a superadmin- so I know exactly what’s going on.  And so I can make the errors go away.

    But yep- Sue’s right.  Can flip it so you don’t see them either.  And- I’m going to shift to ‘How to’ - since the error itself isn’t EE related.  But if they don’t square you away, it’s likely an easy fix.  Open up mod_fpslideshow.php and post the code around line 72.  That’s where the first error hits.  Can probably suggest a simple tweak assuming it’s as obvious as I suspect.

  • #5 / Sep 07, 2008 3:46pm

    454 Creative

    23 posts

    I always like errors to show for me as a superadmin- so I know exactly what’s going on.  And so I can make the errors go away.

    But yep- Sue’s right.  Can flip it so you don’t see them either.  And- I’m going to shift to ‘How to’ - since the error itself isn’t EE related.  But if they don’t square you away, it’s likely an easy fix.  Open up mod_fpslideshow.php and post the code around line 72.  That’s where the first error hits.  Can probably suggest a simple tweak assuming it’s as obvious as I suspect.

    That would be awesome!

    Here’s line 69 - 73

    $slidecontent = "\n";
        // ---Title---
        if ($show_title) {
            $slidecontent .= "<h6><a".$target." href=\"".$slidelink."\">".$slidetitle."</a></h6><p>\n";<br />
        }

    Line 115-118:

    // ---The 'read more' link---
        if ($show_readmore) {
            $slidecontent .= "<a".$target." href=\"".$slidelink."\" class=\"readon\">"._MORE."</a>\n";
        }

    Line 124:

    <a'.$target.' class="fpss_img" href="'.$slidelink.'">

    Thanks

  • #6 / Sep 07, 2008 5:38pm

    Robin Sowell

    13255 posts

    OK- a little hard to guess w/out seeing the script.  But basically?  Somewhere above that bit, $target is defined.  Or- not defined in this case.

    What I would probably do is find the beginning of the function and add

    $target='';

    Can you find where the function starts?  Start on line 69- and go up.  It… is hard to explain.  Start from the top of the page- search for $target.  The very first time you find it- paste that bit here.  I’m guessing maybe it’s in a conditional and so not being defined.  If you define it as blank just before the conditional, then it will a. get rid of the error; b. allow it to be properly defined however that’s supposed to happen.

    Help at all?

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases