WordPress.org

Ready to get started?Download WordPress

Forums

404 pages on plugin installs (36 posts)

  1. bondigor69
    Member
    Posted 9 months ago #

    hey guys Im running wordpress for few months now and one simple day I wasn't able to login in the panel. it was giving me errors "loop redirects"

    so I uninstalled all the plugins and it worked.

    Now any plugin I install and click activate it sends me to a 404 page and when I want to login it says that loop redirect.

    deleted my htaccess and replaced it but still doesn't work

    any ideas

  2. curtjen
    Member
    Posted 9 months ago #

    What happens when you try going to your site URL + /wp-login.php (e.g. YOURDOMAIN.COM/wp-login.php)? Are you able to get logged in that way?

    Also, double check your files. Is your wp-admin folder correctly located in the document root of your WordPress installation?

    If you can get to wp-login.php but you wp-admin folder is missing, you may need to grab the folder from a backup of your site or from a fresh installation of WordPress (you can just download the files directly from WordPress.org here: http://wordpress.org/download/).

    Hope that helps :)

  3. bondigor69
    Member
    Posted 9 months ago #

    I made a video please check it here
    http://www.screencast.com/t/2QEjsInvvP5N

  4. curtjen
    Member
    Posted 9 months ago #

    That video didn't seem to work for me. When I attempted to run it, I got the message:

    The operation couldn't be completed. The file is not a movie file. (-2048)

    It may be that it was saved as a Windows Media file? Perhaps try saving it as an mp4 or even taking a screenshot may work as well.

  5. bondigor69
    Member
    Posted 9 months ago #

  6. curtjen
    Member
    Posted 9 months ago #

    That is showing as a "private" video. If you could share it with my youtube user: curtjen , then I'll be happy to take a look. Sorry for all the hassle.

  7. bondigor69
    Member
    Posted 9 months ago #

  8. curtjen
    Member
    Posted 9 months ago #

    Thanks for the screencast. That is very strange behavior. My initial guess is that there is something wrong with your plugins.php file in your wp-admin folder. Your could try getting a fresh install of WordPress and replace that file in your site. That should be a simple and low risk way to possibly fix the issue.

  9. bondigor69
    Member
    Posted 9 months ago #

    I just did it and still same thing
    how can I contact wordpress

  10. bondigor69
    Member
    Posted 9 months ago #

    its actually my theme the problem
    I have to check it out

  11. curtjen
    Member
    Posted 9 months ago #

    Ah. That would make sense if it were your theme. Check your functions.php just in case. Also, once you find the cause, I'd love to see what you did to fix it (possibly showing what code you may have ha to fix or remove, for example).

  12. bondigor69
    Member
    Posted 9 months ago #

    there is my theme

    giantgag.com/wp-content/themes/megusta.zip

    if you would like to take a look.

    I cant find the problem.

    I even left a blank function.php still same thing.

    I know is the theme the problem because I tried to install it on another site. same results

  13. curtjen
    Member
    Posted 9 months ago #

    When I tested with that theme it seemed to work fine for me on a shared Bluehost account and running locally with MAMP. I was testing on a shared hosting account running the following specs:

    Apache version 2.2.25
    PHP version 5.4.20
    MySQL version 5.5.34-log

    What server setup are you running for your different install tests?

  14. bondigor69
    Member
    Posted 9 months ago #

    when you added a plugin it worked fine ??

  15. curtjen
    Member
    Posted 9 months ago #

    Yup. No problems at all with installing plugins or activating them. That leads me to think that there may be something else wrong with either your WordPress or host setup. It could still be your .htaccess if there is a problematic one at a different level that has overriding rules that are causing the issue. Another possible cause is there being an issue with your database (such as the area where you refence your plugins). Without having more access or information anyone here will have a difficult time troubleshooting too much deeper (do NOT give anyone your login info though :) ).

  16. bondigor69
    Member
    Posted 8 months ago #

    it might be the database.
    I got a reelancer that wrote this code or me just before.
    It might be the problem

    // function to count views.
    function setPostViews($postID) {
        $count_key = 'post_views_count';
        $count = get_post_meta($postID, $count_key, true);
        if($count==''){
            $count = 0;
            delete_post_meta($postID, $count_key);
            add_post_meta($postID, $count_key, '0');
        }else{
            $count++;
            update_post_meta($postID, $count_key, $count);
        }
    }
  17. curtjen
    Member
    Posted 8 months ago #

    What happens when you comment out that part of your code? Does the problem persist after that?

    Make a copy of your functions.php file (so you can revert back to it if needed) and either remove or comment out that part of the code (for testing).

  18. bondigor69
    Member
    Posted 8 months ago #

    Same problem persist

  19. curtjen
    Member
    Posted 8 months ago #

    Here's another idea: can you provide the contents of the "active_plugins" value inside of your "wp_options" table in your site's database? Provide that and a list of any active plugins from the time of getting that information. You can get that data by running the following MySQL command:

    SELECT * FROM wp_options WHERE option_name = 'active_plugins';

    Also, count you provide server information like I mentioned above (e.g. PHP and MySQL versions, etc.)?

  20. bondigor69
    Member
    Posted 8 months ago #

    Showing rows 0 - 0 (1 total, Query took 0.0005 sec)
    SELECT *
    FROM wp_options
    WHERE option_name = 'active_plugins'
    LIMIT 0 , 30
    [ Inline ] [ Edit ] [ Explain SQL ] [ Create PHP Code ] [ Refresh ]

    Start row: Number of rows: Headers every rows

    + Options
    Full texts option_id option_name option_value autoload
    Edit Edit Copy Copy Delete Delete 35 active_plugins a:1:{i:0;s:25:"wp-smushit/wp-smushit.php";} yes

  21. curtjen
    Member
    Posted 8 months ago #

    Thanks. From what I'm seeing here:

    a:1:{i:0;s:25:"wp-smushit/wp-smushit.php";}

    it looks like you have wpsmushit installed and activated. Do you currently have that plugin active on this installation?

  22. bondigor69
    Member
    Posted 8 months ago #

    no i dont

  23. bondigor69
    Member
    Posted 8 months ago #

    php 5.2 ang mySQL 5

  24. curtjen
    Member
    Posted 8 months ago #

    Ah ha! Try clearing out the data for that in your database. If you're not confident on your abilities on this make sure you make a backup of your database first. You should be able to do this through PhpMyAdmin by selecting your database then clicking on the "Export" link in the top navigation. Follow the steps there to download a copy of your database to your computer.

    If you want the command to remove it, you can use this (this query should be specific to what you provided above):

    UPDATE wp_options SET option_value = '' WHERE option_name = 'active_plugins' AND option_value = 'a:1:{i:0;s:25:"wp-smushit/wp-smushit.php";}';

    Rerun this query to make sure it's cleared out correctly.

    SELECT * FROM wp_options WHERE option_name = 'active_plugins';

    After doing this check to see if your site is still having problems.

    Good luck and keep us posted :)

  25. bondigor69
    Member
    Posted 8 months ago #

    ok I did it but it didnt work
    when I tried to install another plugin (w3 total cache) it did the same thing

    I checked in the database and I run this
    SELECT * FROM wp_options WHERE option_name = 'active_plugins';

    I see
    Full texts option_id option_name option_value autoload
    Edit Edit Copy Copy Delete Delete 35 active_plugins a:1:{i:0;s:33:"w3-total-cache/w3-total-cache.php";... yes

  26. curtjen
    Member
    Posted 8 months ago #

    What happens when you attempt to install a plugin then try to go back to the plugins page (i.e. going to: http://giantgag.com/wp-admin/plugins.php)?

  27. bondigor69
    Member
    Posted 8 months ago #

    page not found

  28. bondigor69
    Member
    Posted 8 months ago #

    and wp-admin = loop redirect

  29. curtjen
    Member
    Posted 8 months ago #

    You mentioned earlier that you tested this on a new WordPress installation. Where did you install it from? Did you get the files directly from wordpress.org or use an install tool on your hosting provider (e.g. Fastastico or Mojo Marketplace)?

  30. WPyogi
    Volunteer Moderator
    Posted 8 months ago #

Reply »

You must log in to post.

About this Topic