• Resolved streamworksaudio

    (@streamworksaudio)


    I am getting an error whenever a WordPress page tries to load the Akismet .js file.

    The error is

    GET plugins/akismet/_inc/akismet.js?ver=3.1.1 500 (Internal Server Error)

    This is causing some conflicts with some other javascript based code. Such as I am unable to expand and collapse panels on the Admin Dashboard.

    Thoughts as to what is causing the error?

    (p.s I updated to 4.2.2 last night… could that have caused a problem?)

    https://wordpress.org/plugins/akismet/

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Christopher Finke

    (@cfinke)

    A 500 error from accessing a JS file is pretty unusual and is probably best addressed by your web host.

    Thread Starter streamworksaudio

    (@streamworksaudio)

    Yeah I thought so too, 500 is usually a problem with server side scripts…

    My server is a Cloud Server (Rackspace) so I am the admin of it.

    Could it be that the GET command is passing variables (version number)? The error actually on both the .js file and the .css file.

    As to the admin dashboard issue, that was actually caused by another plugin (woothemes helper).

    Thread Starter streamworksaudio

    (@streamworksaudio)

    That cannot be the issue… my pages load other .js and .css files that have version numbers passed as variables, and they are loading with no problems.

    Something wrong with the .js and .css files perhaps? Should I try to re upload them via FTP?

    Plugin Author Christopher Finke

    (@cfinke)

    Re-uploading couldn’t hurt. It could also be related to the .htaccess file, which is supposed to explicitly grant access to those files. If re-uploading doesn’t help, try removing the .htaccess file.

    Thread Starter streamworksaudio

    (@streamworksaudio)

    Removing the .htacess fixed it. But are there any security issues I should be worried about?

    Could it be that the .htaccess was conflicting with my apache .conf?

    Plugin Author Christopher Finke

    (@cfinke)

    But are there any security issues I should be worried about?

    Marginally. The .htaccess blocks direct access to the PHP files, because in cases where a WordPress blog was compromised, hackers were putting their malicious payloads in the akismet/ directory (which most blogs have and typically has acceptable permissions for that kind of thing) and then directing unsuspecting users to example.com/wp-content/plugins/akismet/badfile.php The .htaccess rules would prevent access to that file.

    Could it be that the .htaccess was conflicting with my apache .conf?

    I don’t know that it would be a conflict rather than just an incompatibility with your version of Apache. What version are you running? You could try restoring parts of the .htaccess file to see if a certain part of it breaks those URLs.

    Thread Starter streamworksaudio

    (@streamworksaudio)

    Thanks again Chris,

    I am running Apache/2.2.22 (Ubuntu) – I will have a look at the .htaccess and rebuild it and check as I go and see if there is anything in particular that could be causing the problem.

    Cheers,
    Chris

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘Internal Server Error when accessing .js script’ is closed to new replies.