Autoload.php USE_ADODB

Greetings to the forum, after uploading my webapp to Infinity when launching it I receive the following error:

Fatal error : Uncaught Error: Undefined constant “PHPMaker2019\tipaita\USE_ADODB” in /home/vol3_8/infinityfree.com/if0_37374346/htdocs/if0_37374346_tipaita/autoload.php:12 Stack trace: #0 /home/vol3_8/infinityfree.com/if0_37374346/htdocs/if0_37374346_tipaita/login.php(12): include_once() #1 {main} thrown in /home/vol3_8/infinityfree.com/if0_37374346/htdocs/if0_37374346_tipaita/autoload.php on line 12

I state that I have another more or less similar application and it works correctly. Thank you

the error your having basically says that the constant “USE_ADODB” isn’t defined but is being used in autoload.php

this could happen when the application configuration isn’t set up properly, or when certain constants that are expected to be defined by a framework or tool are missing, like phpmaker.

try checking the configuration file that defines constants, like USE_ADODB is included before other files are loaded.

If that doesn’t work you could try defining the constant in autoload.php

If none of those work, tell me.

1 Like

might there be incorrect code in autoload.php regarding USE_ADODB?

First of all, thanks for your help. Unfortunately, I don’t have much experience on the topic you’re asking me to analyze. I can tell you that on Infinity I have 2 versions of the same web application that work perfectly locally. On Infinity, however, only one. I compared the files, also with regard to the autoload.php file, and recompiled the code through phpmake and I still didn’t find any difference.
Basically, the two web applications differ, as far as the connection is concerned, for the database. Everything else is perfectly specular.
It therefore seems that the problem is in the infinity environment. Do you have anything else to suggest? Thanks

Solved. During the compilation I forgot to insert the configuration file by copying it from the previous project. I thought it was mirrored but it wasn’t. Sorry for the carelessness but I was a bit confused. All good and thanks again

5 Likes

Sorry for the extremely late reply, vacation haha but no problem, anyways