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

Message ListMessage List     Post MessagePost Message

  'ChartDirector PHP API' already loaded in Unknown
Posted by James on Dec-06-2025 00:55
I get tons and tons of these errors in my error log.

[05-Dec-2025 15:42:08 UTC] PHP Warning:  Module 'ChartDirector PHP API' already loaded in Unknown on line 0

I have looked, searched and tried to figure out what is causing this problem but I can't seem to figure it out.

System setup is
Ubuntu 20.04
Web Host Manager/cPanel 118.0.61
Apache 2.4.65
PHP 7.4

It took me forever to get the charts to load, and now they finally load correctly.

I really can't explain how I got this to work. I am not that good at programming, but inherited a web site that was being shut down by the original owner. I took it over and with the help of AI (I know, I know) I managed to get the site updated to work on PHP 7.4 as it was previously coded using PHP 5.4 over a decade ago.

I then realized I needed to get a new license for a new version of ChartDirector so the charts worked. Which I did, somehow we got it to work, but we (AI and I) can not seem to figure out what is causing this error to fill up all the error_logs constantly.

I really like to have all the information needed for someone to help me troubleshoot things, but sadly I don't know what information I need to provide to give anyone who can help me an idea of what is going on.

So please ask me to provide any details you need and I'll do my best to get them for you.

Thanks in advance

  Re: 'ChartDirector PHP API' already loaded in Unknown
Posted by Peter Kwan on Dec-06-2025 03:06
Hi James,

PHP includes a large number of modules, such as various database drivers, xml support, encryption support, etc.. ChartDirector is one of the modules that can be used in PHP.

The PHP configuration file (typically named "php.ini") configures which modules to load, typically by using an "extension = xxx" statement.  One possible cause of the warning message is that the PHP configuration file loads ChartDirector more than once. In this case, PHP will ignore the extra loading attempts. This is not harmful but may result in warning messages.

Please check you PHP configuration file to see if there are multiple extension statements loading ChartDirector. Typically it is something like "extension=phpchartdir740.dll". If there are multiple lines, please remove the extra lines. (The general format is "extension=phpchartdirXXX.dll", where XXX is the PHP version number and type.)

If you do not know where is your "php.ini", please use phpinfo to find out. See:

https://www.advsofteng.com/doc/cdphp.htm#phpconcepts.htm

The cPanel may also allow you to modify the "php.ini".

Best Regards
Peter Kwan

  Re: 'ChartDirector PHP API' already loaded in Unknown
Posted by James on Dec-07-2025 01:44
Thanks, I will check those when I get time. Wont be home until sometime next weekend. Hopefully I can get this figured out then.