• Resolved lecreez

    (@lecreez)


    Hello, for the past week, we have been experiencing issues with logging into our website as a user. All users have been reporting the login page getting stuck on the login screen, or it initially loads, but then it logs back out again and they have to login again, but the 2nd time the login button just spins and spins and never stops. Occasionally, when the login does work and take the user to the user dashboard, then it doesn’t even load the courses they are enrolled in – the “Enrolled Courses” section just spins and spins forever.

    We have already tried disabling numerous plugins, restoring from older backup, clearing site and server side cache, changing our server PHP version, updating our siteground servers from shared servers to the cloud based dedicated server. Just about everything has been tried, but nothing is resolving this issue. At this point, I’m not sure what to do.

    Siteground support says they think it is something to do with the Masterstudy plugin. In our wordpress admin panel, it says this error now: Warning: Invalid argument supplied for foreach() in /home/customer/www/lucasteachings.com/public_html/wp-content/themes/masterstudy/admin/classes/stm-tgm-plugins.php on line 363

    Not sure if that would cause an issue with logins, but it is strange. Can someone please help me resolve this issue, as I have exhausted all of my options at this point and everything is pointing towards Masterstudy being the issue.

    Also, I tried updating to the latest Masterstudy version and each time I did the update, I was immediately no longer able to access my wordpress admin panel. When visiting wp-admin or through siteground wordpress login, both login pages no longer worked (meaning the login page was not the wordpress login page, it looked like a masterstudy custom login page and looked different and it did not acutally allow to login – just got stuck loading for admins, just like users). I had to restore from my site backup twice in my testing to confirm that this was indeed an issue with the Masterstudy update.

    • This topic was modified 6 months, 3 weeks ago by lecreez.
    • This topic was modified 6 months, 3 weeks ago by lecreez.

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter lecreez

    (@lecreez)

    Also, I tried updating to the latest Masterstudy version and each time I did that, I was no longer able to access my wordpress admin panel. When visiting wp-admin or through siteground wordpress login, both logins no longer worked (meaning the login page was not the wordpress login page and it did not allow to login – just got stuck). I had to restore from backup twice in my testing to confirm this was an issue with Masterstudy update.

    Plugin Support Lisa StylemixThemes

    (@lisastylemixthemes)

    Hi there,

    I’m sorry to hear about the troubles you’ve encountered. Please ensure that your website fulfills all server prerequisites, which you can find listed here: link to system requirements.

    Verify that your permalink configuration is set to “Post name” by accessing wp-admin > settings > permalinks, and selecting “Post name”. Don’t forget to save the changes. Even if it’s already set to “Post name”, it’s advisable to resave, as this action updates the database records.

    To ensure that WordPress permalinks using the “Post name” structure work correctly, you’ll need to configure your server to support pretty permalinks. Here’s how you can do it:

    Apache Server:
    If you’re using Apache, you need to enable the mod_rewrite module. This can typically be done by running the following commands:

         sudo a2enmod rewrite
         sudo systemctl restart apache2

      Additionally, make sure your virtual host configuration includes AllowOverride All for the directory where your WordPress installation resides. This allows WordPress to override the server’s default settings with its own .htaccess file.

      Nginx Server:
      If you’re using Nginx, you’ll need to configure your server block to handle WordPress pretty permalinks. Here’s a basic example of what that configuration might look like:

           server {
               listen 80;
               server_name yourdomain.com;
               root /var/www/html/wordpress;
               index index.php index.html index.htm;
        
               location / {
                   try_files $uri $uri/ /index.php?$args;
               }
        
               location ~ \.php$ {
                   include snippets/fastcgi-php.conf;
                   fastcgi_pass unix:/run/php/php7.4-fpm.sock; # Adjust version as needed
               }
        
               location ~ /\.ht {
                   deny all;
               }
           }

        Make sure to replace yourdomain.com with your actual domain and adjust paths as necessary.

        File Permissions:
        Ensure that WordPress has the necessary permissions to create and modify the .htaccess file (for Apache) or the server configuration files (for Nginx). Typically, WordPress should be able to write to the root directory of your WordPress installation.

        WordPress Configuration:
        Once your server is properly configured, log in to your WordPress admin dashboard, go to Settings > Permalinks, and choose the “Post name” option. Save your changes. WordPress will automatically update your .htaccess file (if using Apache) or provide instructions for updating your server configuration (if using Nginx).

          After completing these steps, your WordPress permalinks should work fine with the “Post name” structure. Remember to test your permalinks to ensure they’re functioning as expected.

          The issues you’re describing with the login process and the enrolled courses not loading could be caused by various factors as well. Here are some potential reasons and troubleshooting steps:

          Check server error logs: Look in the error logs for your web server (Apache or Nginx) as well as the PHP error logs to see if there are any error messages that could provide clues as to what’s causing the issue. This can often help pinpoint the source of the problem.

          Caching: Cached data can sometimes cause login and dashboard loading issues. Clear any caching plugins you’re using, as well as any server-side caching that may be in place. Additionally, try accessing the site in a private or incognito browser window to bypass any cached data.

          WordPress file permissions: Incorrect file permissions on WordPress files and directories can sometimes cause login and dashboard loading issues. Ensure that the web server has the necessary permissions to read and write to the WordPress directory and files.

          Session management: Issues with session management on the server or within WordPress itself could cause login problems. Check your server’s session configuration and ensure that it’s properly configured. You can also try installing and activating a plugin specifically designed to manage sessions in WordPress.

          Database issues: Problems with the WordPress database can also cause login and dashboard loading issues. Use a plugin like WP-DB Manager to optimize and repair your WordPress database, and check for any database errors that may be occurring.

          Server resources: Insufficient server resources, such as memory or processing power, can sometimes lead to login and dashboard loading issues, especially on larger sites or during peak traffic times. Check your server’s resource usage and consider upgrading your hosting plan if necessary.

          Network issues: Sometimes, issues with the network or internet connection can cause login and dashboard loading problems. Try accessing the site from a different network or device to see if the issue persists.

          WordPress and plugin updates: Ensure that both WordPress and all installed plugins are up to date. Outdated software can sometimes cause compatibility issues that lead to problems with the login process and dashboard loading.

          Update WordPress and plugins: Make sure that both WordPress and all installed plugins are up to date. Outdated software can sometimes cause compatibility issues that lead to problems with the admin panel.

          Contact support: If you’re using a hosting provider, they may be able to provide assistance in diagnosing and resolving the issue. Contact their support team and provide them with as much detail as possible about the problem you’re experiencing.

            By systematically checking these areas, you should be able to identify and resolve the issue with accessing.

            Best

            Lisa

          Viewing 2 replies - 1 through 2 (of 2 total)
          • The topic ‘Users experiencing issues with login stuck in loop’ is closed to new replies.