WordPress.org

Ready to get started?Download WordPress

Forums

WP Modal Login
[resolved] Error when using php code? (6 posts)

  1. ajamm
    Member
    Posted 1 year ago #

    Hello, plugin looks great for what I need...

    Using the code supplied;

    <?php $modal_login = new Geissinger_WP_Modal_Login;
    echo $modal_login; ?>

    I get..

    Fatal error: Cannot redeclare class Geissinger_WP_Modal_Login_Widget in .../wp-content/plugins/wp-modal-login/widget/class-login-widget.php on line 99

    This is related to this post

    I am adding your code in place of this section

    <?php wp_login_form() ; ?>
       <?php wp_register('', ''); ?>&nbsp;|&nbsp;<a href="<?php echo wp_lostpassword_url( get_permalink() ); ?>" title="Lost Password">Lost Password</a>

    Can you help?

    http://wordpress.org/extend/plugins/wp-modal-login/

  2. ajamm
    Member
    Posted 1 year ago #

    Using this plugin now.

  3. Cole Geissinger
    Member
    Plugin Author

    Posted 1 year ago #

    Hi Ajamm,

    Sorry for the issues! I'll further into this and get something solid working here...

  4. Cole Geissinger
    Member
    Plugin Author

    Posted 1 year ago #

    Looked into things and looks like I was a little inconsistent in the example code. I also fixed the error that was coming up in there.

    Just updated the plugin to v1.2! Feel free to come check it out, got a ton of great new options and changes coming in v2 also ;)

  5. epsilon1983
    Member
    Posted 11 months ago #

    I keep getting these errors from the blackbox debug bar plugin:

    Notice Undefined variable: widget_ops on line 18 in file C:\wamp\www\jlocalhost\wp-content\plugins\wp-modal-login\widget\class-login-widget.php
    Notice Undefined variable: plugin_version on line 61 in file C:\wamp\www\jlocalhost\wp-content\plugins\wp-modal-login\wp-modal-login.php
    Notice Undefined variable: plugin_version on line 62 in file C:\wamp\www\jlocalhost\wp-content\plugins\wp-modal-login\wp-modal-login.php
    Strict Non-static method Geissinger_WP_Modal_Login::modal_login_btn() should not be called statically, assuming $this from incompatible context on line 48 in file C:\wamp\www\jlocalhost\wp-content\plugins\wp-modal-login\widget\class-login-widget.php

    That said, things seem to be working, but I thought I'd let you know.

  6. Cole Geissinger
    Member
    Plugin Author

    Posted 10 months ago #

    Hi Epsilon1983, all the above errors should be fixed in the latest release.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags