Can't access production environment for new connections

Problem with Php 8 and the latest scriptcase version. I created almost all the program under a previous version. Upgraded to latest a couple weeks ago and now deployed a new app that requires a new connection to the production server. I included production environment in my deploy. I go to add a new connection and get this: Fatal error. Uncaught Error. Call to undefined function get_magic_quotes_gpc() etc etc.

Now what. Is this a php8.1.12 incompatibility with 9.9.007(4) ? Is there a workaround? I’m now officially stuck.

Hi,

Does your production environment was updated to PHP 8.1?

The function is deprecated as of php 7.4 and removed in 8. So I wonder if you have uploaded the correct runtime version.

It is the same php I’ve used since I deployed 6 months ago. Haven’t done a thing to it. I never had php on that server before that…clean install. So not quite sure where to begin.

It is supposedly in module c:\xampp\htdocs\jojikshark_lib\prod\lib\php\nm_ini_manager2.php line 416 (jojikshark is my project).

The function is nm_prod-argv_string($v_str_string)
if (get_magic_quotes_gpc()){
return stripslashes($v_str_string);
}else{
return $v_str_string;
}

So scriptcase is looking for it apparently. Why a problem now? Who knows.

FLASH UPDATE: I got brave and commented out everything except return $v_str_string and success…it let me in. Crazy, no? Then it is erroring on something else. I’d better either do another total update or see if I can go backwards.

Hard to tell. If you have setup Scriptcase using php 8.x, and your test works, then you would expect that deployment works. For some reason I have a feeling that something have been mixed up as the function is deprecated for a long time. But that is hard to see from my environment. A re-install might work, otherwise you need to contact SC to see if they are willing to help you.

I think I finally got it to work. I redeployed EVERYTHING with production environment and common libs and every app. Then went in and commented out the magic_quotes “if” in nm_ini_manager2.php. Success. I have NO idea why it is still looking for that but too tired to dig further. Hopefully it will continue working.

Nice, but be aware that in the next time you deploy your apps, you’ll have to comment again…

Yes, I have it in my notes. But maybe another update will come and solve the problem. I don’t even understand the problem! :confused: