Okay
  Public Ticket #1272158
Ajax fatal error - login not working
Closed

Comments

  • digitxllc started the conversation

    Ajax plugin will not active due to fatal error in login-with-ajax.php line 492.


    load_plugin_textdomain('powermag', false, "login-with-ajax/langs");

  • digitxllc replied

    here is the error message



    Fatal error: Cannot redeclare lwa_load_plugin_textdomain() (previously declared in /data/48/4/2/42/4654368/user/5511216/htdocs/wp-content/themes/powermag/inc/login-with-ajax/login-with-ajax.php:492) in /data/48/4/2/42/4654368/user/5511216/htdocs/wp-content/plugins/login-with-ajax/login-with-ajax.php on line 493

  •  93
    djwd replied

    Hi there,

    the Login-with-ajax plugin is already included in PowerMag, so if you install it separately it will trigger that error. 

    Regards
    djwd

  • digitxllc replied

    I installed it because the Ajax login was not working. I emailed you a previous screenshot of the problem before installing the Login-with-Ajax. I will uninstall it but still cannot use the Powermag-Login-with-Ajax that was included in the theme.


    Page is blank when I add the "Powermag-Login-with-Ajax" widget. It works when removed.

  • digitxllc replied

    Attached is a screenshot of the blank page with the "Powermag-Login-with-Ajax" widget

  •  93
    djwd replied

    Hi there,

    I'm testing the ajax login on Powermag 2.1 looks to be working fine on my end. Please try to disable all plugins while testing it. If you're still getting the white page please provide admin access I'll take a peek.

    Regards
    djwd

  • digitxllc replied

    Please answer this question. I already sent you emails a number of times. When I add the Ajax login widget it breaks the page. I tried other themes with the same Ajax login you provided with they theme and it works. But when I switch back to your them it doesn't. I have attached a screen shot to show how the page break with the Ajax login.

  •  93
    djwd replied

    Hi there,
    I replied your question already, asking to provide login details. If I can't replicate the issue I can't help.

    Anyway this issue might be similar to another user, which is relative to newer version of Buddypress. Are you running Buddypress?

    If so try by replacing  the two files attached:

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

    Hope it helps

    Regards
    djwd

  • digitxllc replied

    Thanks for quick response. Please email me your IP address to add to the htaccess as the website is not yet in public domain. I will resend the login if you did not receive it from my previous request.

    Thanks.

  • digitxllc replied

    Uploaded the files. Now have this error message when I try to go to the widgets in WP admin.

    Fatal error: Call to undefined function get_stylesheet_directory_uri() in /data/48/4/2/42/4654368/user/5511216/htdocs/wp-includes/inc/tax/tax-meta-class/tax-meta-class.php on line 112

    Also I see that the 'inc' folder was not installed when I uploaded theme files using WP. Now used FTP to add the entire 'inc' folder to wp-includes. I am thinking this would have been the problem in the first place.

    Anyway, please let me know how to resolve the error message.

    Thanks.


  •  93
    djwd replied

    Hi there,

    Sorry can't do the IP thing as I work in mobility I change IP so frequently, that would be too much of a hassle.

    That is very weird error, as the function is in WordPress core. You sure you uploaded the files in the right folder? You don't need to put anything in the wp-includes as no theme files should be there, ever.

    Looks like your install is quite messed up(?) You might want to re-install WordPress (or overwrite its files), do the same with latest theme version, only then replace the files. 

    Regards
    djwd

  • digitxllc replied

    The two files you sent fixed it. Turns out I uploaded the function.php in the wrong folder. All works now. Thank you.

  •  93
    djwd replied

    I imagined there was something odd going on..anyway glad it was sorted!

    Regards
    djwd