Undefined Variable Error (dashboard.php)

This topic contains 6 replies, has 3 voices, and was last updated by  Aubrey Clark 4 years, 8 months ago.

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
  • Author
    Posts
  • #4912

    Aubrey Clark
    Buyer
    Post count: 27

    Hello,
    We are receiving an “Undefined variable” error warning on the login form once a visitor logs on:
    lines: 21, 53, 59 of dashboard.php.

    https://inellijay.com/
    Dev user login:
    afreshup // 3freshup4

    I saw this question answered on the board before, however, I believe the solution was for the person to upgrade their version of UWP.

    I’m pretty sure I’m using the latest version, so it is probably something else. FTP and Admin logins to follow:

    (Aside, I am currently taking a course on PHP, is it possible for whoever fixes to please leave a comment in the code as to what caused the error and how they fixed it? This could be a great learning experience for me 🙂

    #4914

    Aubrey Clark
    Buyer
    Post count: 27
    This reply has been marked as private.
    #4915

    Alex Rollin
    Moderator
    Post count: 27815
    This reply has been marked as private.
    #4916

    Aubrey Clark
    Buyer
    Post count: 27

    I’ve hooked the login template to the to the template via Genesis Simple Hooks. Then added the background via css.

    To rule out pilot error …

    I have commented out the css, and added a widget to the sidebar to show the display errors persist regardless of how the template is called.

    Is that what you were referring to?

    #4917

    Aubrey Clark
    Buyer
    Post count: 27

    Also, all css edits are made by “custom.css” in the same theme directory as style.css.

    #4919

    Patrik
    Moderator
    Post count: 1971

    Hi,

    I have fixed error on your site. The warning was due to the global variable was not defined. So I have added a code

    global $uwp_login_widget_args;

    on 2nd line of dashboard.php file and it should fix the warnings.

    Regards,
    Patrik

    #4921

    Aubrey Clark
    Buyer
    Post count: 27

    Thanks Patrik

Viewing 7 posts - 1 through 7 (of 7 total)

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket