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

Message ListMessage List     Post MessagePost Message

  Extension trouble
Posted by gert holtoft on Apr-18-2022 19:35
as usual i have problems with upgrade to newest chartdir,

My setup can be seen from the error message

Error Log

The version and type of PHP in this system does not support dynmaic loading of PHP extensions. All PHP extensions must be loaded by using extension statements in the PHP configuration file.

System Information

    Operating System : Linux mulle 5.4.0-107-generic #121-Ubuntu SMP Thu Mar 24 16:04:27 UTC 2022 x86_64
    PHP version : 8.1.4
    PHP / Web Server interface : apache2handler
    PHP configuration file location : "/etc/php/8.1/apache2/php.ini"
    PHP extension directory : "/usr/lib/php/20210902"

all files incl. font lib are copied to /usr/lib/php/20210902, include phpchartdir810.dll, they are owned by www-data (as on php7.2)
chmod to 755

but i wonder of this line in the logfile:

PHP Warning:  PHP Startup: Unable to load dynamic library 'phpchartdir810.dll' (tried: /usr/lib/php/20210902/phpchartdir810.dll (/usr/lib/php/20210902/phpchartdir810.dll: wrong ELF class: ELFCLASS32), /usr/lib/php/20210902/ (/usr/lib/php/20210902/ cannot open shared object file: No such file or directory)) in Unknown on line 0

where does come from it is not in lib

regards gert

  Re: Extension trouble
Posted by Peter Kwan on Apr-18-2022 21:16
Hi gert,

There is no "". The error message means it can find "phpchartdir810.dll", but it does not work. PHP will automatically append ".so" and try again. It doesn't work as well because there is no such file.

In the "System Information", the Linux OS is listed as using the x86_64 architecture, which means it is 64-bit Linux. The error message mentions "wrong ELF class: ELFCLASS32", which means the phpchartdir810.dll is for 32-bit Linux, not 64-bit Linux.

To solve the problem, please try the following steps:

(a) Please download the ChartDirector for PHP for Linux (x86_64).

(b) Extract the contents out, and copy everything in "ChartDirector/lib" to your PHP extension directory "/usr/lib/php/20210902".

(c) I think you already have the line "extension=phpchartdir810.dll" in your "php.ini", but you can double check to see if it is there.

(d) Restart Apache

Hope this can help.

Peter Kwan

  Re: Extension trouble
Posted by gert holtoft on Apr-18-2022 21:37
Hello Mr. Kwan
thank you very much

I had come to download 64 bit arm instead of x86_64

I will buy a new license later this week

regards gert