WordPress.org

Ready to get started?Download WordPress

Forums

500 Internal server error (8 posts)

  1. Ayman
    Member
    Posted 1 year ago #

    Hello,
    My problem is that I'm having my website running into a 500 internal server error everyday on a regular bases since I installed Role Scoper plugin
    .
    the problem is that the .htaccess file is getting repeated lines of code that is causing the problem.
    this is an example:

    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>
    
    # END WordPress
     %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>
    
    # END WordPress
    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>
    
    # END WordPress

    and when that is happening my website is giving the 500 internal server error

    the plugins I'm using are:

      Adminimize
      Akismet
      coming soon pages-free
      fast source contact form
      Google Analytics Dashboard
      Hide update reminder message
      list category posts
      MailPress
      Memphis custom WordPress login
      MiniMail dashboard widget
      My settings
      Next Scripts Social Networks Auto-Poster
      Role Scoper
      Search everything
      The event calendar
      TinyMCE Advanced
      User Avatar
      User control
      User role editor
      User Switching
      WordPress admin bar improved
      WordPress Importer
      WP Bannerize
      WP Native Dashboard

    note: I´m using php 5.3 (single php.ini). Should I change that to something else?

    Please any help solving this probleam would be so appreciated.
    Thank you

  2. Pankaj Pandey
    Member
    Posted 1 year ago #

    if possible see server log

  3. Ayman
    Member
    Posted 1 year ago #

    Thanks for answering @Pankaj Pandey
    this is the log of today:

    [15-Sep-2012 09:05:45] PHP Fatal error:  Allowed memory size of 67108864 bytes exhausted (tried to allocate 7680 bytes) in /home4/mydomain/public_html/wp-content/plugins/role-scoper/admin/filters-admin_rs.php(89) : runtime-created function on line 1
    [15-Sep-2012 09:05:49] PHP Fatal error:  Allowed memory size of 67108864 bytes exhausted (tried to allocate 7680 bytes) in /home4/mydomain/public_html/wp-content/plugins/role-scoper/admin/filters-admin_rs.php(89) : runtime-created function on line 1
    [15-Sep-2012 09:05:52] PHP Fatal error:  Allowed memory size of 67108864 bytes exhausted (tried to allocate 7680 bytes) in /home4/mydomain/public_html/wp-content/plugins/role-scoper/admin/filters-admin_rs.php(89) : runtime-created function on line 1
    [15-Sep-2012 09:05:56] PHP Fatal error:  Allowed memory size of 67108864 bytes exhausted (tried to allocate 7680 bytes) in /home4/mydomain/public_html/wp-content/plugins/role-scoper/admin/filters-admin_rs.php(89) : runtime-created function on line 1
    [15-Sep-2012 09:06:11] PHP Fatal error:  Allowed memory size of 67108864 bytes exhausted (tried to allocate 7680 bytes) in /home4/mydomain/public_html/wp-content/plugins/role-scoper/admin/filters-admin_rs.php(89) : runtime-created function on line 1
    [15-Sep-2012 09:06:55] PHP Fatal error:  Allowed memory size of 67108864 bytes exhausted (tried to allocate 7680 bytes) in /home4/mydomain/public_html/wp-content/plugins/role-scoper/admin/filters-admin_rs.php(89) : runtime-created function on line 1
    [15-Sep-2012 09:07:13] PHP Fatal error:  Allowed memory size of 67108864 bytes exhausted (tried to allocate 7680 bytes) in /home4/mydomain/public_html/wp-content/plugins/role-scoper/admin/filters-admin_rs.php(89) : runtime-created function on line 1
    [15-Sep-2012 09:07:22] PHP Fatal error:  Allowed memory size of 67108864 bytes exhausted (tried to allocate 7680 bytes) in /home4/mydomain/public_html/wp-content/plugins/role-scoper/admin/filters-admin_rs.php(89) : runtime-created function on line 1
    [15-Sep-2012 09:07:31] PHP Fatal error:  Allowed memory size of 67108864 bytes exhausted (tried to allocate 7680 bytes) in /home4/mydomain/public_html/wp-content/plugins/role-scoper/admin/filters-admin_rs.php(89) : runtime-created function on line 1
    [15-Sep-2012 11:43:17] PHP Fatal error:  Allowed memory size of 67108864 bytes exhausted (tried to allocate 384 bytes) in /home4/mydomain/public_html/wp-content/plugins/role-scoper/admin/admin_lib_rs.php on line 63
    [15-Sep-2012 11:43:18] PHP Fatal error:  Allowed memory size of 67108864 bytes exhausted (tried to allocate 7680 bytes) in /home4/mydomain/public_html/wp-content/plugins/role-scoper/admin/admin_lib_rs.php on line 63
    [15-Sep-2012 11:43:19] PHP Fatal error:  Allowed memory size of 67108864 bytes exhausted (tried to allocate 7680 bytes) in /home4/mydomain/public_html/wp-content/plugins/role-scoper/admin/admin_lib_rs.php on line 63
    [15-Sep-2012 11:43:21] PHP Fatal error:  Allowed memory size of 67108864 bytes exhausted (tried to allocate 30720 bytes) in /home4/mydomain/public_html/wp-content/plugins/role-scoper/admin/filters-admin_rs.php on line 600
    [15-Sep-2012 11:43:24] PHP Fatal error:  Allowed memory size of 67108864 bytes exhausted (tried to allocate 30720 bytes) in /home4/mydomain/public_html/wp-content/plugins/role-scoper/admin/filters-admin_rs.php on line 600
    [15-Sep-2012 11:43:25] PHP Fatal error:  Allowed memory size of 67108864 bytes exhausted (tried to allocate 7680 bytes) in /home4/mydomain/public_html/wp-content/plugins/role-scoper/admin/admin_lib_rs.php on line 36

    Any Idea how to resolve this... If It looks like a problem from role scoper but I need this plugin so I can't really just remove it... if it's that, any workaround for it?

  4. Pankaj Pandey
    Member
    Posted 1 year ago #

    A few options you can change to reduce Role Scoper's wp-admin memory usage:
    * disable Features > Content Maint > "Filter users dropdown"
    * disable Advanced > Role Assignment Interface > "Limit eligible users for Post-specific editing roles"
    * disable Advanced > Role Assignment Interface > "Indicate blended roles"
    And if you don't need non-Administrators to assign content-specific roles at all:
    * set Features > Content Maint > "Roles and Restrictions can be set" accordingly

    or increase php memory

  5. Give this a read.

    http://codex.wordpress.org/Editing_wp-config.php#Increasing_memory_allocated_to_PHP

    Please make sure that you backup any files you intend to modify first.

  6. Ayman
    Member
    Posted 1 year ago #

    But does really this cause the mess that is happening in .htaccess file

  7. But does really this cause the mess that is happening in .htaccess file

    It doesn't, that link I provided discusses what can be done for your PHP memory issues.

    For the .htaccess mess try renaming .htaccess to .htaccess-old and visit your permalinks page. Just re-save them, that will regenerate a new .htaccess file for you.

    http://your-wordpress-URL-here/wp-admin/options-permalink.php

  8. Ayman
    Member
    Posted 1 year ago #

    Thank you all for your help and suggestions.

    I already tried creating a new .htaccess file and the problem went a way. I already know that the problem is the .htaccess file but I'm not managing to get the source that is corrupting the .htaccess file to stop doing it as I don't really know what file is causing it.

    I don't know how to solve this problem. I need to keep on using all the plugins that I already have but I really need to get them to work well...

    Any other suggestions.???

Topic Closed

This topic has been closed to new replies.

About this Topic