help files
Z505 | PasWiki | FUQ | Search | Main Docs | API Guide



Notes

Errors

General errors such as missing config files, incorrect DLL versions are described here.

If you receive an error such as "err XX : see docs" when running your web programs, you can look up the error on this page. The reason short and terse errors were chosen was so that we do not bloat up the CGI program with hundreds of verbose string constants which take up a lot more space then you would think. You can print a copy of the error codes and have it handy near your computer - then checking errors is made easy.

So if you see ERR 0B or ERR 0A or ERR 12 simply navigate your web browser to this page and look up the error to see what the issue is. Many errors are too verbose to explain in a string constant and are better kept in the documentation here.

Keeping the error explanations here in the documentation also allows the documentation writers to update information about the errors - whereas if the errors were kept in a string constant in the program, the person may receive an obsolete error message that doesn't contain recent important updates about why the error could occur.

Error Feedback Description
ERR 0A (zero a) config file incorrect, pound sign must be the first character on line one if using dynpwu in uses clause
ERR 0B (zero b) Could not load library, library path not found, operating system doesn't support DSO yet (bsd), library permissions not set correctly. The library is loaded based on the path you set on the first line of the configuration file, pwu_unix.conf or pwu_win.conf

You may not have installed the library on your server or there could be a version mismatch. If for example you have compiled a program with version 1.6.0.1 dynpwu.pas, but in your config you have specified version 1.6.0.3 of the library, the program will not work. (check global config file or local cgi program directory config file on line 1).

ERR 1A (one a) Could not locate or load config file. Opening the config file was attempted from pwumain.pas if this error occured.
ERR 1B (one b) Could not locate or load config file. Opening the config file was attempted from dynpwu.pas if this error occured.
1A & 1B notes If you are running a program from the command line with a global config file located in DOCUMENT_ROOT/pwu/conf/ or DOCUMENT_ROOT/../pwu/conf/ then you will receive this error since the command line did not invoke the server. The server sets up DOCUMENT_ROOT environment variable that global config files rely on, but plain command line programs have no knowledge of DOCUMENT_ROOT.

You can run your plain command line programs without invoking the server if you placed the config file in the cgi program's local directory.






lufdoc, Powtils, fpc, freepascal, delphi, kylix, c/c++, mysql, cgi web framework docs, Z505