401 errors issue

Viewing 30 posts - 1 through 30 (of 32 total)
  • Author
    Posts
  • #11028

    diyguru
    Participant
    Please Alex Help me on this I have posted a topic 19 hours ago please help me on this topic 401 errors .

    1. wp-json/wplms/v1/user/wallet 401 ()
    2. wp-json/wplms/v1/user/wallet/update 401 ()

    3. wp-json/wplms/v1/user/wallet 401 ()
    4. wp-json/wplms/v1/user/subscribe 401 ()
    Cannot read property ‘amount’ of undefined

    All these errors occured while accessing wallet.
    Please help me on this.

    #11036

    admin
    Member
    try adding this chrome extension : https://chrome.google.com/webstore/detail/allow-control-allow-origi/nlfbmbojpeacfghkpbjhddihlkkiljbi?hl=en

     Make sure that your wplms theme and all its plugins are updated to latest version .

      try adding this lin in your .htaccess file in your root of your site . SetEnvIf Authorization .+ HTTP_AUTHORIZATION=$0

    If above does not works then please share your site url and admin credentials to check this issue at your end .
    Ps: mark reply as private while sharing

    #11040

    diyguru
    Participant
    Thank you for your reply Alex for admin I used aws SO In Aws where the root files on my site is present I have add this <span style="background-color: #f9f9f9; color: #444444; font-family: Inconsolata, Consolas, Monaco, 'Lucida Console', monospace; font-size: 14.4px; white-space: pre-line;">SetEnvIf Authorization .+ HTTP_AUTHORIZATION=$0</span> after #begin wordpress Is it correct or not
    #11049

    diyguru
    Participant
    Hi Alex ,Please reply the above

    for admin I used aws

    SO In Aws where the root files on my site is present I have add this

    SetEnvIf Authorization .+ HTTP_AUTHORIZATION=$0

    after #begin wordpress

    Is it correct or not

    #11054

    admin
    Member
    just put it in the end of that .htaccess file .
    #11056

    diyguru
    Participant
    Before #End Wordpress right  
    #11064

    admin
    Member
    nope in the end .If issue still not resolves then please share your site url , admin credentials and a valid ftp credentials to check this issue at your end.
    #11066

    diyguru
    Participant
    This reply has been marked as private.
    #11074

    diyguru
    Participant
    This reply has been marked as private.
    #11093

    diyguru
    Participant
    Hi Alex , Please help me to resolve 401 error .
    #11106

    diyguru
    Participant
    This reply has been marked as private.
    #11110

    admin
    Member
    Ok I checked your site and replicated the issue . I tried to find your ftps but could not find it . Can you please share a valid FTP credentials to check this issue at your end deeper .I need to debug exactly where this issue is arising .
    #11112

    diyguru
    Participant
    This reply has been marked as private.
    #11126

    admin
    Member
    Well if possible please do share your ftp credentials .I guess for Aws we need a key file to connect via ftp .Or if possible share the cpanel Details . Basically I want to access your site files ,edit them to debug this 401 errors . I also want to access your .htaccess file .
    #11132

    diyguru
    Participant
    This reply has been marked as private.
    #11165

    admin
    Member
    Well i have a little knowledge of putty and its a very hard to edit files using ssh (putty) in vim editor and checking it .It would be great if you could share FTP or SFTP of your server. Meanwhile please try adding these lines also at the very end of your .htaccess file in your server .
    RewriteCond %{HTTP:Authorization} ^(.)
    RewriteRule ^(.) - [E=HTTP_AUTHORIZATION:%1]
    #11173

    diyguru
    Participant
    Hi Alex , I have added these lines in .htaccess file but it does not remove my error 401
    RewriteCond %{HTTP:Authorization} ^(.)
    RewriteRule ^(.) - [E=HTTP_AUTHORIZATION:%1]
    
    #11198

    admin
    Member
    This reply has been marked as private.
    #11207

    diyguru
    Participant
    This reply has been marked as private.
    #11238

    admin
    Member
    This reply has been marked as private.
    #11243

    diyguru
    Participant
    This reply has been marked as private.
    #11279

    admin
    Member
    Ok sure..
    #11318

    diyguru
    Participant
    This reply has been marked as private.
    #11335

    diyguru
    Participant
    This reply has been marked as private.
    #11336

    diyguru
    Participant
    This reply has been marked as private.
    #11342

    admin
    Member
    Well im sorry the error is actually server related from the beginning . Right now im seeing 500 servre internal error : http://prntscr.com/jco7cs and site is not working .Actually checked your error log . There were these two error : [02-May-2018 04:27:13 America/New_York] PHP Warning:  Module 'PDO' already loaded in Unknown on line 0 [02-May-2018 04:27:13 America/New_York] PHP Warning:  Module 'PDO' already loaded in Unknown on line 0   [02-May-2018 04:27:13 America/New_York] PHP Warning:  PHP Startup: Unable to load dynamic library '/opt/cpanel/ea-php56/root/usr/lib64/php/modules/pdo_mysql.so' - /opt/cpanel/ea-php56/root/usr/lib64/php/modules/pdo_mysql.so: cannot open shared object file: No such file or directory in Unknown on line 0   Commented out the lines for the extensions in your php.ini file in root but its still not working .
    #11349

    diyguru
    Participant
    This reply has been marked as private.
    #11375

    admin
    Member
    This reply has been marked as private.
    #11378

    diyguru
    Participant
    This reply has been marked as private.
    #11388

    admin
    Member
    This reply has been marked as private.
Viewing 30 posts - 1 through 30 (of 32 total)
  • You must be logged in to reply to this topic.