Opened 15 hours ago
Last modified 9 hours ago
#467 new defect
PHP: Unable to load dynamic library 'mapscript'
Reported by: | a.labenne | Owned by: | Jeff McKenna |
---|---|---|---|
Priority: | major | Milestone: | 5.2.0 release |
Component: | MS4W - Base | Version: | 5.0.0 |
Keywords: | Cc: | ||
Blocked By: | Blocking: |
Description
Hello,
We tried the experimental 5.2.0 release and we found a bug when testing the quickmap.php script. We have the following error :
Fatal error: Uncaught Error: Class "mapObj" not found in C:\ms4w\Apache\htdocs\quickmap.php on line 19
If we enable the error_log in PHP.ini there is the following error that show up :
[08-Jul-2025 08:04:26 UTC] PHP Warning: PHP Startup: Unable to load dynamic library 'mapscript' (tried: /ms4w/Apache/php/ext/mapscript (Le module spécifié est introuvable), /ms4w/Apache/php/ext/php_mapscript.dll (Le module spécifié est introuvable)) in Unknown on line 0 [08-Jul-2025 08:04:26 UTC] PHP Fatal error: Uncaught Error: Class "mapObj" not found in C:\ms4w\Apache\htdocs\quickmap.php:19 Stack trace: #0 {main} thrown in C:\ms4w\Apache\htdocs\quickmap.php on line 19
I verified and the php_mapscript.dll file exists in the searched location.
Do you have any clue for this kind of error ?
Regards,
Arnaud Labenne
Change History (2)
comment:1 by , 9 hours ago
comment:2 by , 9 hours ago
Also, be sure to run the /ms4w/tmp/VC_redist.x86.exe
installer before testing the experimental 5.2.0
Note:
See TracTickets
for help on using tickets.
Thanks for this report. I can't reproduce this with the experimental version yet, but what is the response when you try this command below?
It should return the MapServer version information such as: