Okay
  Public Ticket #1371894
Error in MightyMag - Login With Ajax
Closed

Comments

  • shadowmaster2 started the conversation

    Hi,

    When I put the MightyMag - Login With Ajax widget in the Login Bar, I get this error:

    PHP Fatal error:  Uncaught Error: Call to undefined function bp_core_get_notifications_for_user() in /var/www/html/casinowired.com/web/app/themes/mightymag/admin/functions-extended/fn-buddypress.php:278\nStack trace:\n#0 /var/www/html/casinowired.com/web/app/themes/mightymag/inc/login-with-ajax/widget/default/widget_in.php(75): mgm_bp_notification_badge()\n#1 /var/www/html/casinowired.com/web/app/themes/mightymag/inc/login-with-ajax/login-with-ajax.php(384): include('/var/www/html/c...')\n#2 /var/www/html/casinowired.com/web/app/themes/mightymag/inc/login-with-ajax/login-with-ajax-widget.php(36): LoginWithAjax::widget(Array)\n#3 /var/www/html/casinowired.com/web/wp/wp-includes/class-wp-widget.php(372): LoginWithAjaxWidget->widget(Array, Array)\n#4 /var/www/html/casinowired.com/web/wp/wp-includes/widgets.php(742): WP_Widget->display_callback(Array, Array)\n#5 /var/www/html/casinowired.com/web/app/themes/mightymag/partials/part-collapsible.php(55): dynamic_sidebar('login-sidebar')\n#6 /var/www/html/casinowired.com/web/wp/wp-includes/tem in /var/www/html/casinowired.com/web/app/themes/mightymag/admin/functions-extended/fn-buddypress.php on line 278

    I'm using WordPress 4.9 and BuddyPress 2.9.2.

    Regards,

    Marc

  •  93
    djwd replied

    Hi there,

    Can you please try replacing these 2 files I'm attaching?

    functions.php
    inc/login-with-ajax.php/widget/default/widget_in.php

    Hope it helps

    Regards
    djwd

  • shadowmaster2 replied

    Hi,

    I replaced the files but I still get an error. This is now the new error:

    PHP Fatal error:  Uncaught Error: Call to undefined function mgm_is_really_woocommerce() in /var/www/html/casinowired.com/web/app/themes/mightymag/header.php:175\nStack trace:\n#0 /var/www/html/casinowired.com/web/wp/wp-includes/template.php(688): require_once()\n#1 /var/www/html/casinowired.com/web/wp/wp-includes/template.php(647): load_template('/var/www/html/c...', true)\n#2 /var/www/html/casinowired.com/web/wp/wp-includes/general-template.php(41): locate_template(Array, true)\n#3 /var/www/html/casinowired.com/web/app/themes/mightymag/404.php(9): get_header()\n#4 /var/www/html/casinowired.com/web/wp/wp-includes/template-loader.php(74): include('/var/www/html/c...')\n#5 /var/www/html/casinowired.com/web/wp/wp-blog-header.php(19): require_once('/var/www/html/c...')\n#6 /var/www/html/casinowired.com/web/index.php(5): require('/var/www/html/c...')\n#7 {main}\n  thrown in /var/www/html/casinowired.com/web/app/themes/mightymag/header.php on line 175, referer: http://www.casinowired.local/

    Regards,

    Marc

  •  93
    djwd replied

    Hi there,
    sorry about that, I made a mistake. Please revert back and replace these two files instead:

    admin/functions-extended/fn-buddypress.php
    inc/login-with-ajax.php/widget/default/widget_in.php

    I also attach functions.php in case you didn't back it up.

    Hope it helps

    Regards
    djwd

  • shadowmaster2 replied

    Hi,

    It's working now. Thanks!

    Is there a way to add fields to the registration tab based on buddypress fields?

    Regards,

    Marc

  •  93
    djwd replied

    Hi there, glad it worked! Will be bundled in next update.

    Regarding your question, not sure about that although if it is, I believe that would definitely need some custom coding unfortunately. 

    Regards
    djwd

  • shadowmaster2 replied

    Got it. Thanks!