Closed (fixed)
Project:
Drupal driver for SQL Server and SQL Azure
Version:
3.1.1
Component:
Miscellaneous
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
17 Jul 2020 at 11:38 UTC
Updated:
1 Aug 2020 at 13:44 UTC
Jump to comment: Most recent
Comments
Comment #2
beakerboyMake sure you have deleted the drivers directory from your webroot. As of Drupal 8.9, there is no need to manually copy the drivers directory from the module to webroot.
Please let me know if this is the issue.
Comment #3
Dudelinos commentedThanks for the quick reply Beakerboy. The drivers folder was still there, so I deleted it. That seems to have fixed the error above. I also removed the post script in the composer.json file that was copying the files to the drivers folder. I also removed the PHPmssql component that was installed for the 8.2 version. I also ran "composer update" and rebuilt the cache. But I still get the crashed pages. The log shows the following error after I open a crashed page (error 500):
It does this on only some particular pages though, like the status page or configuration page.
EDIT:
The error above was in the drupal error log. The one below is the fatal error:
Comment #4
beakerboyIf the Wincache Class Loader is causing the problem, what happens if you uninstall the Wincache module, or disable Wincache on the server?
Comment #5
beakerboyAnother possibility is the “autoload” section of the module’s composer.json. The newer versions still had an autoload directive for the classes in webroot/drivers. I just removed that and pushed the changes to the git repo. You can try the dev branch. I can make a new release as well if you would like to try that.
Comment #6
Dudelinos commentedI updated to the dev branch and now instead of a 500 server error, I get the standard Drupal error (The website encountered an unexpected error. Please try again later.), which means we made progress. The Drupal report log shows the following error:
Does that gives you a hint on what's wrong?
Edit:
Forgot to mention that I also tried to disable the Wincache extension, which resulted in the "The website encountered an unexpected error. Please try again later." on all pages. So I reenabled it.
Comment #7
beakerboyThis is odd. The sqlsrv.install file in the drupalcode.org repository does not match the version that is in the GitHub repository, which is where I do my active development. I have no idea why there is a difference. I’ll let you know when this is updated. I’ll have to make a release for this since it’s a pretty big bug.
Comment #9
beakerboyGo ahead and try the new 3.1.2 release. Sorry for the headaches!
Comment #10
Dudelinos commentedThe 3.1.2 release solved it. Thanks a million Beakerboy :)
Comment #11
Dudelinos commented