ASE Home Page Products Download Purchase Support About ASE
ChartDirector Support
Forum HomeForum Home   SearchSearch

Message ListMessage List     Post MessagePost Message

  PHP Access Violation Errors
Posted by Jacob Kurylczuk on Apr-12-2012 01:03
Recently we've been encountering problems with the chart director library locking and
preventing any of our sites on the server from loading charts.  We've found that by
restarting the server the error appears to correct itself however after a few weeks the
problem seems to reappear with no explanation for it.  We are using version of 3.1 and get a
PHP Access Violation Error on all the programs when the problem occurs.  Any feedback on
what the problem might be would be greatly appreciate.

  Re: PHP Access Violation Errors
Posted by Peter Kwan on Apr-12-2012 03:22
Hi Jacob,

ChartDirector Ver 3.1 is a rather old version of ChartDirector. Are your system running for several years already, and the issue just occured recently? If the issue starts to occur recently, can you remember what has been changed recently? (Have you modified your code, applied updates to your server or OS, updates the PHP, etc?)

Also, when the error occurs, did it occur to all PHP scripts, or just PHP scripts using ChartDirector? (Do you have PHP scripts that did not use ChartDirector?)

Are you using PHP on Windows? It is known that on Windows, PHP using the SAPI or ISAPI to interface with the web server is not too stable. PHP using the CGI interface is much more stable, but has lower performance. For this reason, many older PHP installations on Windows use SAPI or ISAPI despite its instability. If PHP instability is the cause of the problem, it should affect all PHP scripts, not just charting scripts.

A few years ago, PHP starts to support FastCGI on Windows. This is as stable as CGI PHP, but much faster. Zend (the company that develops PHP) suggests using FastCGI for PHP on Windows.

For your case, if you are using SAPI or ISAPI PHP (you may use phpinfo to determine the type of PHP you are using), you may consider to change it to CGI PHP to see if it can solve the problem.

Regards
Peter Kwan

  Re: PHP Access Violation Errors
Posted by Jacob Kurylczuk on Apr-12-2012 23:56
Based on my findings we are currently using a Windows Server 2003 Web Edition and PHP
Version 5.1.2, our server API is ISAPI.

This problem is only associated with php files using chart director, all other php files seem to
be working normally.  From what I have found after further investigation this has actually be
an on going problem for probably the last year.  Long before I even got involved to this
point.

From what I understand no updates or changes have been made to the server however we
are in the process of cleaning up our web server and eventually migrating everything to a
new server.  As of right now we are not experiencing any problems since the restart, if
things stay consistent it should be another couple weeks before this problem crops up again
and hopefully we can get some more information at that time.