3

we have a problem that we get a internal server error on about every ajax call. The example below happens when editing a view clicking "add filter" and directly click on abort. It also happens when making changes to a view. At first glance the change seemed to be ignored but after refreshing the pages the changes will be visible.

Picture of the error

When accessing the URL which throws the error we get a valid json string (checked with jsonlint.com).

Our server logs sadly show nothing interesting. I would appreciate any kind of hint where to look for a solution.

Edit: The nojs version seems to work fine but that's no solution in the long term :/

  • You can try to enable error dsiplay in php config, and look at Firebug's console tab. – xurshid29 Oct 12 '14 at 19:08
  • 1
    Doing so just gets me the Ajax Call with a 500. Even though there is a 500 I get a valid JSON as an answer – Feki Oct 13 '14 at 10:29
  • I'm having the same problem, did you ever find a solution? – Novocaine Jun 26 '15 at 8:38
  • Please have a look in admin/reports/dblog around the time you cause this error, any critical errors? Are CTools and views both up to date? – Daniel Waters Oct 1 '15 at 13:36
1

Look at your PHP error log. It should give you the file and line number it's having an issue with.

If you can, copy and paste the last few lines of the error log on here for us to look at.

-1

When I have something like this it has always to do with the .htaccess file. Or maybe you just haven't enabled clean url's or something like that.

EDIT Is there somthing like this in your htaccess file

 RewriteEngine on
   RewriteBase /
   RewriteCond %{REQUEST_FILENAME} !-f
   RewriteCond %{REQUEST_FILENAME} !-d
   RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]

Make sure it's uncommented

  • Clean URLs were enabled, the .htaccess is the standard file generated by drupal. Is there a way to let drupal rebuild it from scratch or can you give me a hint for what to look in the .htaccess file? – Feki Oct 13 '14 at 10:30
  • Are your rewriterules enabled? check edit – Jobse Oct 13 '14 at 14:29
-1

Create a separate page using hook_menu and write the same logic on the page where you are hitting. Also pass the arguments if any, if the newly created page is working fine then just replace that page with this newly created page.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.