VirtueMart Forum

VirtueMart 2 + 3 + 4 => Virtuemart Development and bug reports => Topic started by: hazael on November 16, 2022, 16:08:17 PM

Title: Call to undefined function parse_ini_file() [J3][VM7.0.7]
Post by: hazael on November 16, 2022, 16:08:17 PM
Call to undefined function parse_ini_file()

I'm looking for a bug and can't find it. I literally have 2 cloned pages. One is in the domain and the other is in the subdomain.
The error only appears in PHP8 on the subdomain page - directly on the product page (I don't use a custom template)

the error relates to the vmcrypt.php file in line:
$content = parse_ini_file($keyPath .DS. $file);

The strangest thing is that a copy of Virtuemart in a different folder does not show this error
Any problem with the vmm.ini file? Where should this file be located?
Title: Re: Call to undefined function parse_ini_file() [J3][VM7.0.7]
Post by: pinochico on November 16, 2022, 21:49:24 PM
joomla and VM on PHP8 in subfolder?

It is function?
Title: Re: Call to undefined function parse_ini_file() [J3][VM7.0.7]
Post by: hazael on November 17, 2022, 11:23:00 AM
I commented it out and end of problem. But of course I'm waiting for a safe solution
Title: Re: Call to undefined function parse_ini_file() [J3][VM7.0.7]
Post by: pinochico on November 18, 2022, 11:26:10 AM
ok, thanks.


We don't use subfolder anytime, because problems was anytime for old joomla 2/3 with others app...
But we have a lot's of servers, then use only domain (not subfolders)
Title: Re: Call to undefined function parse_ini_file() [J3][VM7.0.7]
Post by: hazael on November 20, 2022, 11:46:33 AM
Quote from: pinochico on November 18, 2022, 11:26:10 AM
But we have a lot's of servers, then use only domain (not subfolders)
the page is not in a subfolder but in a subdomain:  domain.com  and subdomain.domain.com
both sides are in independent folders.
Title: Re: Call to undefined function parse_ini_file() [J3][VM7.0.7]
Post by: Jumbo! on November 22, 2022, 06:46:37 AM
parse_ini_file function is disabled in your PHP8 settings. You need to contact your hosting service provider and enable it in the PHP settings.
Title: Re: Call to undefined function parse_ini_file() [J3][VM7.0.7]
Post by: hazael on November 22, 2022, 10:58:58 AM
LOL
You're right, I didn't notice it. I turned off this function myself :D

disable_functions =exec,passthru,shell_exec,system,proc_open,popen,parse_ini_file,show_source,curl_multi_exec
I have a dedicated server. When I installed the new server I forgot to change the PHP settings. I was convinced I had done it.
But the strange thing is that the site works on PHP7.4 when this function is blocked.
Anyway, thanks to Jumbo :)