• Resolved Mr_Sloth

    (@mr_sloth)


    Hey guys i know this has been posted over and over and over, but i am getting the same 500 internal server error only on the admin side. I was getting the error on both sides after i added a line in the themes function.php file.. i added (if( !is_admin() ){
    wp_deregister_script(‘jquery’);
    wp_register_script(‘jquery’, (“https://code.jquery.com/jquery-latest.min.js”), false, ”);
    wp_enqueue_script(‘jquery’);(which i probably didn’t need to do in the first place but the wp-ecommerce wasn’t working and i thought that calling the jquery in the header would have worked,) ,,, i tried everything, re-naming the .htaccess (which restored the site but not the admin area) i uploaded a php.ini file with a 64MB memory limit, this did nothing, i renamed the theme that caused the error and still same problem. I even re-installed the WP-admin folder and the WP-contains folder and nothing. i checked the error logs as well and i get this error [MYsite.com/wp-admin/index.php
    PHP Warning: require_once(wp-admin/includes/misc.php): failed to open stream: Permission denied in /wp-admin/includes/admin.php on line 35
    PHP Fatal error: require_once(): Failed opening required ‘wp-admin/includes/misc.php’ (include_path=’.:/usr/local/lib/php-5.3.13/lib/php’) in wp-admin/includes/admin.php on line 35 ] i don’t really have half a clue what this means but i noticed that the misc.php file was missing and i added it from a fresh “contains” folder and,,,,,, nothing. I even tried going through wp-login.php which the guys at fatcow recommended and i see the login area and then when i click login,, you guessed it NOTHING!! haha this issue is tearing me apart here guys,, if i could get ANY HELP at all i would be most grateful ….

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi: I’d like to help but am slightly confused by the above.

    At this time is the .htaccess file still renamed? If so I would highly suggest that you re-upload the original functions file for the theme via an FTP clients and restoring the .htaccess file.

    If you had made other changes to the functions file, you can save a copy of the current file and then re-apply the changes after the site is again fully functional.

    Thread Starter Mr_Sloth

    (@mr_sloth)

    Hey, thank you Matthew for your time, but that did not work. I still get the 500 error i even tried installing a new version of the theme it’s self and nothing… where could the problem be? i want to see if i can fix it instead of having to completely install a brand new version of WordPress, i checked the error logs and i get this

    <p>This PHP CGI binary was compiled with force-cgi-redirect enabled. This
    means that a page will only be served up if the REDIRECT_STATUS CGI variable is
    set, e.g. via an Apache Action directive.</p>
    <p>For more information as to <i>why</i> this behaviour exists, see the manual page for CGI security.</p>
    <p>For more information about changing this behaviour or re-enabling this webserver,
    consult t

    as fun as this is ,, i kinda wanna fix it instead of re-doing all the work all over again… Thank you guys ( even the host doesn’t know what the hell is going on haha,, this is pretty interesting )

    Thread Starter Mr_Sloth

    (@mr_sloth)

    Hey just an update,, what the host (fatcow) did was replace the “misc.php” file and change the version of PHP to 5.2. So if anyone else has an unresolvable 500 error (or at least seems unresolvable) contact your host they might be able to help. Thank you guys, Thank you Matthew…

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘500 Internal Error after tweaking a themes function.php’ is closed to new replies.