Can't add Patrons
I tried to add Patrons, either by using the Add new or Bulk.. both didn’t work. When I use Add New, it will just give me a white screen. When I use bulk, it tells me how many records added.. but it’s not added in the database. I checked in the database, it appears to be empty.
What operating system is the server running? What version?
What version of MySQL? What version of PHP?
What version of WordPress?
Also: what are you using for a web browser?
Mysql 5.6 (I’m not that sure about this actually)
Browser : Chrome
Is the server a MS-Windows server or a Linux server?
What happens if you use Firefox?
I’m using a MS-Windows server.
Tried firefox but same thing happened.
I inserted a patron manually on MySQL. Now I have the patron,
but seems like my circulation doesn’t work either. When I tried to place hold, it says AJAX Error : Internal Server Error.
Are you IIS or Apache?
The MS-Windows version of MySQL is *different* from the Linux/UNIX version of MySQL. Part of this is a function of the design of MySQL (depending on a case-sensitive file system). The MS-Windows and Linux/UNIX versions of MySQL are not totally compatible with each other. I don’t know what the AJAX error is caused by. Since I don’t have a MS-Windows system to test on, I can’t be of much help. The easy solution would be to install Linux on a spare spare machine or even as a VM on the MS-Windows machine.
Is there some reason you are using MS-Windows Server? It is certainly an *expensive* option.
I’m on IIS7. The reason I’m using a Windows server is because it’s what our company have. Hmm… guess that’s the only possible solution. I suspected that.
You can try updating to 22.214.171.124 — this fixes some minor bugs and *may* solve your problems.
Were you able to solve your problem? Did upgrading 126.96.36.199 fix things?
With regard to the AJAX error, I receive this error when clicking the “Request” button to put a hold on the book. Specifically, the ajax call returns this:
<b>Warning</b>: file_put_contents() [<a href=’function.file-put-contents
To solve, I commented out line 84 of PlaceHoldOnItem.php .
Similar messages on my PHP log reveal what looks to be a write-permission error to php://stderr (note – I have plenty of disk space)
[17-Jul-2013 13:45:19 UTC] PHP Warning: file_put_contents() [function.file-put-contents]: Only 0 of 66 bytes written, possibly out of free disk space in C:\inetpub\wwwroot\wp1\wp-content\plugins\weblibrarian\includes\WEBLIB_PatronRecord_Admin.php on line 247
[17-Jul-2013 14:24:51 UTC] PHP Warning: file_put_contents() [function.file-put-contents]: Only 0 of 132 bytes written, possibly out of free disk space in C:\inetpub\wwwroot\wp1\wp-content\plugins\weblibrarian\PlaceHoldOnItem.php on line 84
[17-Jul-2013 12:53:12 UTC] PHP Warning: file_put_contents() [function.file-put-contents]: Only 0 of 164 bytes written, possibly out of free disk space in C:\inetpub\wwwroot\wp1\wp-content\plugins\weblibrarian\includes\short_codes.php on line 195
Argg! MS-Windows is *obviously* not a POSIX operating system. I’m guessing mess-windows does not bind stderr to anything — ALL POSIX/UNIX/Linux systems bind stderr to something, typically on a LAMP server this would be Apache’s errro_log. I’m guess IIS does not have an error log or else php under IIS does not bind stderr to anything. Dumb. How do they expect people to debug code? Or log errors?
Logging does occur. The log file where I copied those errors from is specified in the php.ini file.
As for the standard error stream, Microsoft states that:
Internet Information Services (IIS) FastCGI module will fail the request when PHP sends any data on stderr by using FastCGI protocol.
- The topic ‘Can't add Patrons’ is closed to new replies.