[fpc-pascal] CGI with datamodule does not work

Michael Van Canneyt michael at freepascal.org
Wed Feb 27 09:16:49 CET 2019



On Tue, 26 Feb 2019, AB wrote:

> Hi Guys,
>
> I have tried to update my old web project that is in maintenance mode 
> since a few years now, using the latest stable Lazarus/FPC, and fcl-web 
> just does not want to work (Tried Lazarus 1.8.4/FPC 3.0.4, Lazarus 
> 2.0.0/FPC 3.0.4 with Apache 2.4, on Linux x86_64, though the OS should 
> not matter with fcl-web).
>

[snip]

> Did anyone test this fcl-web part lately?

Yes, yesterday only. I added a new web module type...

> BTW, A simple CGI application works OK (File -> New -> Custom CGI 
> Application), though there are no Actions, of course:
>
> Any reproduction or help is appreciated.

As Sven recommended, please check the LegacyRouting and new routing
mechanism.
http://wiki.lazarus.freepascal.org/fpWeb_Tutorial#Routing
with legacyrouting the 'old' code is executed when determining the module.

Michael.



More information about the fpc-pascal mailing list