Skip Navigation

This is the technical support forum for WPML - the multilingual WordPress plugin.

Everyone can read, but only WPML clients can post here. WPML team is replying on the forum 6 days per week, 22 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 -
- 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 -

Supporter timezone: Asia/Ho_Chi_Minh (GMT+07:00)

Tagged: 

This topic contains 5 replies, has 3 voices.

Last updated by Long Nguyen 1 year, 1 month ago.

Assisted by: Long Nguyen.

Author Posts
April 17, 2024 at 2:48 pm #15533492

francescoC-72

Good morning everyone. I added a composer.json file into WPML Multilingual CMS, String Translation and WooCommerce Multilingual & Multicurrency to use them as php composer packages without problems.

Now I made the same with Advanced Custom Fields Multilingual and when I active the plugin, it give a fatal error.

If I replace the vendor directory with the original one, it works.

Please, can you advice me about a solution?

My composer.json file

{
"name": "mtosuite/acfml",
"authors": [
{
"name": "???",
"email": "???@???.com"
}
],
"description": "",
"license": "proprietary",
"type": "wordpress-plugin",
"config": {
"allow-plugins": {
"composer/installers": true
}
},
"require": {}
}

April 18, 2024 at 7:15 am #15535557

Nigel
WPML Supporter since 02/2016

Timezone: Europe/Madrid (GMT+02:00)

Hi there

Before this is taken by a colleague, can we get some more information?

In particular, you mention that with ACFML when you activate the plugin it generates a fatal error.

Do you have details of the error from your logs (including the reported call stack)?

That might help identify where this is going wrong.

April 18, 2024 at 8:21 am #15536045

francescoC-72

Good morning Nigel, here is an error message

[Wed Apr 17 14:33:14.835087 2024] [proxy_fcgi:error] [pid 82404:tid 140270771185408] [client 37.100.213.41:0] AH01071: Got error 'PHP message: PHP Fatal error: Uncaught Error: Class "ACFML\\Container\\Config" not found in /home/???/wmntmhffnm/public_html/wp-content/plugins/acfml/wpml-acf.php:34\nStack trace:\n#0 /home/???/wmntmhffnm/public_html/wp-includes/class-wp-hook.php(324): acfmlInit()\n#1 /home/???/wmntmhffnm/public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters()\n#2 /home/???/wmntmhffnm/public_html/wp-includes/plugin.php(517): WP_Hook->do_action()\n#3 /home/???/wmntmhffnm/public_html/wp-content/plugins/sitepress-multilingual-cms/sitepress.class.php(523): do_action()\n#4 /home/???/wmntmhffnm/public_html/wp-includes/class-wp-hook.php(324): SitePress->init()\n#5 /home/???/wmntmhffnm/public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters()\n#6 /home/???/wmntmhffnm/public_html/wp-includes/plugin.php(517): WP_Hook->do_action(...', referer: hidden link???/wp-admin/plugins.php?activate=true&plugin_status=all&paged=1&s=

April 19, 2024 at 4:51 am #15541680

Long Nguyen
WPML Supporter since 02/2022

Languages: English (English )

Timezone: Asia/Ho_Chi_Minh (GMT+07:00)

Hi Francesco,

Thank you for contacting WPML support, I’m happy to help you with this issue.

According to the error log, I see that the file wp-content/plugins/acfml/classes/Container/Config.php or the class Config in the file is missing. It could be an error while downloading the plugin ACFML to your site. Please try to delete the current ACFML plugin, clear composer cache and re-download it to your site to see if it helps.

Looking forward to your reply.
Thanks

April 22, 2024 at 8:09 am #15548564

francescoC-72

Good morning Long, it does not resolve the problem.

The problem starts when I do "composer update"; it alter something into the vendor directory and it give the error.

April 22, 2024 at 9:52 am #15549295

Long Nguyen
WPML Supporter since 02/2022

Languages: English (English )

Timezone: Asia/Ho_Chi_Minh (GMT+07:00)

Hi,

Currently, installing WPML plugins via Composer is not officially supported so I'm not sure what's wrong with Composer on your site. I suggest you use 3rd party project where the version can be handled as a placeholder: hidden link

or manually download ACFML plugin and install it on your site. Refer to this ticket https://wpml.org/forums/topic/failing-to-download-wpml-zip-packages-via-composer/

If you are not able to accomplish this, I would recommend you contact one of our certified partners who will be more than happy to help you with this. In this link, you will find a list of our certified partners: https://wpml.org/contractors/

Thanks.

The topic ‘[Closed] Make Advanced Custom Fields Multilingual a php composer package’ is closed to new replies.