Call to undefined function parse_ini_file() [J3][VM7.0.7]

Started by hazael, November 16, 2022, 16:08:17 PM

Previous topic - Next topic

hazael

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?

pinochico

www.minijoomla.org  - new portal for Joomla!, Virtuemart and other extensions
XML Easy Feeder - feeds for FB, GMC,.. from products, categories, orders, users, articles, acymailing subscribers and database table
Virtuemart Email Manager - customs email templates
Import products for Virtuemart - from CSV and XML
Rich Snippets - Google Structured Data
VirtueMart Products Extended - Slider with products, show Others bought, Products by CF ID and others filtering products

hazael

I commented it out and end of problem. But of course I'm waiting for a safe solution

pinochico

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)
www.minijoomla.org  - new portal for Joomla!, Virtuemart and other extensions
XML Easy Feeder - feeds for FB, GMC,.. from products, categories, orders, users, articles, acymailing subscribers and database table
Virtuemart Email Manager - customs email templates
Import products for Virtuemart - from CSV and XML
Rich Snippets - Google Structured Data
VirtueMart Products Extended - Slider with products, show Others bought, Products by CF ID and others filtering products

hazael

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.

Jumbo!

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.

hazael

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 :)