We recently bought and install Amelia version 6.6 on our WP website. When using the Custom Fields function, it does not work as expected.
We entered the Amelia Custom Field setting page, clicked on the Add Custom Field button, and see the popup of different type of custom fields for select.
Once selected (any one), NOTHING happened on screen, except a message popup says 【custom field has been added】.
How can we make the custom field function to work proper? Thanks!
Issues like this usually occur when there is a conflict either with the theme currently active on your website, or most likely another plugin you have installed. (most probably caching plugin)
Can you please change the theme and see if the issue is resolved? If not, then please deactivate all other plugins except for our plugin, refresh the page where the issue is, and see if it is resolved (it should be). If it is, then start activating other plugins one by one, and after each activation refresh the page to see if the issue reoccurred.
After deactivate all plugins and reactivate them one by one, it is confirmed that Amelia plugin has conflict with LearnPress plugin, therefore cause the problem. Once deactivate the LearnPress plugin, the custom field function of Amelia can work properly.
Funny thing is, I tried to deactivate LearnPress, then define all needed custom fields in Amelia, then reactivate LearnPress. Despite the backend of Amelia custom fields defined are not shown, the front end form of Amelia booking can display those defined custom fields properly as expected.
Above is our current temp solution to resolve the plugin conflicts between Amelia and LearnPress. It would be great if your team can find out the root cause of this conflict and resolve it completely.
A possible workaround for conflict between the Amelia and LearnPress -
Here is a function/hook, that you can add to a PHP file, this is going to exclude the LearnPress only for pages where Amelia's booking is, but it will be active on other areas of the site, so you can use both plugins as active.
Open the PHP file with any text/code editor, and find this file:
mu-plugins/functions.php
Add this code :
<?php
function wpamelia_exclude_conflict_plugins($plugins)
{ if (!empty($_GET['page']) && strpos($_GET['page'], 'wpamelia') !== false) { foreach ($plugins as $key => $plugin) { if (false !== strpos($plugin, 'simply-schedule-appointments/simply-schedule-appointments.php')) { unset($plugins[$key]); } } } return $plugins;
}
add_filter('option_active_plugins', 'wpamelia_exclude_conflict_plugins');
?>
You can check this article that will help you to Find, Access, and Edit functions.php in WordPress.
Also, there shouldn't be any issues with the MaxCoach theme. You can try this workaround above and then test it and let us know if it works.
Per what you wrote below, I add these codes into my website and the problem remains. It cannot resolve the no show of custom fields in Amelia custom field setup page at backend, when activating the LearnPress plugin. However, the frontend booking form custom fields has no impact, despite the backend can't see the custom fields to edit.
Please, try this workaround. It should work specifically to resolve the LearnPress conflict.
The authors of this plugin load all LearnPress scripts on each admin page (which is wrong, they should load their scripts only on their pages, as we are doing).
This conflict can be fixed by modifying the Learnpress plugin code OR disabling LearnPress plugin. If you wish to modify Learnpress plugin code (or I could do it for you), you need to do the next replacement:
In file: ../wp-content/plugins/learnpress/inc/admin/class-lp-admin-assets.php (line #196) search for the:
And of course, if you update the LearnPress plugin you will have to replace again this line of code in LearnPress plugin in order to not load their scripts on Amelia pages.
Let us know if this helps. If you need us to edit this code for you, we need FTP Credentials, if you don't know them you can check with your Hosting Support, Then we can log in to your FTP and edit this code,
And we also need a link to your WP-Admin with Admin credentials, so that we can check if the issue is fixed.
Thanks for the info. I will try to update the LearnPress code myself and check if the issue has resolved. Will get back to you soon after testing. Thanks!
I traced both the free version and paid version of LearnPress plugin file as shown in the directory you mentioned below. However, both files have no such line of php code to be replaced.
Are you sure you give the right file directory? Which version (free or paid? version number) of LearnPress you were referring to to see the command line as you shown?
Sorry for the late reply. Looking back at the functions.php file and the script we sent previously, we missed the part where the name of the plugin needs to be included instead of ''simply-schedule-appointments".
So, the correct script is
function wpamelia_exclude_conflict_plugins($plugins) { if (!empty($_GET['page']) && strpos($_GET['page'], 'amelia') !== false) { foreach ($plugins as $key => $plugin) { if (false !== strpos($plugin, 'learnpress/learnpress.php')) { unset($plugins[$key]); } } } return $plugins; } add_filter('option_active_plugins', 'wpamelia_exclude_conflict_plugins');
Please, try this script i let us know if it works.
1) I could not find ../wp-content/plugins/learnpress/inc/admin/class-lp-admin-assets.php (line #196) in LearnPress plugin codes, to implement the change you mentioned in your previous message.
2) I add your current message codes into our WP website as a code snippet and activate it, but the issue remain unchaged.
Please kindly advise how exactly I need to do in order to resolve the plugin conflict between Amelia and LearnPress found on the Amelia backend custom field creation page?
In regards to what I sent before, my apologies, that was some old solution that does not work anymore, so you can just ignore that about editing the LearnPress Code.
2. In regards to the function we sent, we see you are trying it as a snippet, that will not work.
Apologies for that as well, we did not send you the full instructions on where that code needs to go.
This is a function/hook, it can not be used as a script, because this is a PHP code. It is going to exclude the LearnPress only for pages where Amelia's booking is, but it will be active on other areas of the site, so you can use both plugins as active.
Add this code to functions.php of your mu-plugins ( must use plugins) folder :
<?php
function wpamelia_exclude_conflict_plugins($plugins)
{
if (!empty($_GET['page']) && strpos($_GET['page'], 'amelia') !== false) {
foreach ($plugins as $key => $plugin) {
if (false !== strpos($plugin, 'learnpress/learnpress.php')) {
unset($plugins[$key]);
}
}
}
return $plugins;
}
add_filter('option_active_plugins', 'wpamelia_exclude_conflict_plugins');
If you are not sure where your 'mu-plugins' folder is , the default path is found in ../wp-content/mu-plugins.
If it does not exist on your hosting server, you can create a new folder via FTP and create a file named functions.php there.
To change the default directory manually, define WPMU_PLUGIN_DIR and WPMU_PLUGIN_URL in wp-config.php. You can also reach out to your hosting support if you need help to do that.
You can see more details about this here. Let us know if that works to solve this issue on your site.
If you are not able to do this, we can do it for you, if that is the case, we will require access.
Please send us the WP-Admin URL Administrator user credentials and FTP credentials.
Just make sure to send this in a PRIVATE reply, for security reasons, so then only we can see the credentials.
Thanks for the feedback. This has been reported already, but I'll make sure that I forward this case to the developers, as well. Hopefully, the fix will be implemented in future versions, but, unfortunately, can't promise ETA at this moment.
Please feel free to search through our feature suggestion page, to see if someone may have already suggested this feature. If you can't see it, feel free to add your suggestion there, and as more people vote, the feature will move higher on the priority list.
You can certainly follow our changeLog page if you'd like, where we state any changes/new features/bug fixes during updates and our newsletter, so you're informed about new features, bug fixes, freebies, etc.
Please, feel free to open a new ticket if you have questions regarding other topics.
Hi.
We recently bought and install Amelia version 6.6 on our WP website. When using the Custom Fields function, it does not work as expected.
We entered the Amelia Custom Field setting page, clicked on the Add Custom Field button, and see the popup of different type of custom fields for select.
Once selected (any one), NOTHING happened on screen, except a message popup says 【custom field has been added】.
How can we make the custom field function to work proper? Thanks!
Hello Tai,
thanks for reaching out to us.
Issues like this usually occur when there is a conflict either with the theme currently active on your website, or most likely another plugin you have installed. (most probably caching plugin)
Can you please change the theme and see if the issue is resolved? If not, then please deactivate all other plugins except for our plugin, refresh the page where the issue is, and see if it is resolved (it should be). If it is, then start activating other plugins one by one, and after each activation refresh the page to see if the issue reoccurred.
Please, let us know if it works.
Kind Regards,
Stefan Petrov
[email protected]
Rate my support
Try our FREE mapping plugin! MapSVG - easy Google maps, interactive SVG maps, and floor plans, choropleth maps and much more - https://wordpress.org/plugins/mapsvg-lite-interactive-vector-maps/
wpDataTables: FAQ | Facebook | Twitter | Instagram | Front-end and back-end demo | Docs
Amelia: FAQ | Facebook | Twitter | Instagram | Amelia demo sites | Docs | Discord Community
You can try wpDataTables add-ons before purchasing on these sandbox sites:
Powerful Filters | Gravity Forms Integration for wpDataTables | Formidable Forms Integration for wpDataTables | Master-Detail Tables
Hi Stefan,
After deactivate all plugins and reactivate them one by one, it is confirmed that Amelia plugin has conflict with LearnPress plugin, therefore cause the problem. Once deactivate the LearnPress plugin, the custom field function of Amelia can work properly.
Funny thing is, I tried to deactivate LearnPress, then define all needed custom fields in Amelia, then reactivate LearnPress. Despite the backend of Amelia custom fields defined are not shown, the front end form of Amelia booking can display those defined custom fields properly as expected.
Above is our current temp solution to resolve the plugin conflicts between Amelia and LearnPress. It would be great if your team can find out the root cause of this conflict and resolve it completely.
Thanks!
Hello Tai,
A possible workaround for conflict between the Amelia and LearnPress -
Here is a function/hook, that you can add to a PHP file, this is going to exclude the LearnPress only for pages where Amelia's booking is, but it will be active on other areas of the site, so you can use both plugins as active.
Open the PHP file with any text/code editor, and find this file:
mu-plugins/functions.php
Add this code :
You can check this article that will help you to Find, Access, and Edit functions.php in WordPress.
Also, there shouldn't be any issues with the MaxCoach theme. You can try this workaround above and then test it and let us know if it works.
Kind Regards,
Stefan Petrov
[email protected]
Rate my support
Try our FREE mapping plugin! MapSVG - easy Google maps, interactive SVG maps, and floor plans, choropleth maps and much more - https://wordpress.org/plugins/mapsvg-lite-interactive-vector-maps/
wpDataTables: FAQ | Facebook | Twitter | Instagram | Front-end and back-end demo | Docs
Amelia: FAQ | Facebook | Twitter | Instagram | Amelia demo sites | Docs | Discord Community
You can try wpDataTables add-ons before purchasing on these sandbox sites:
Powerful Filters | Gravity Forms Integration for wpDataTables | Formidable Forms Integration for wpDataTables | Master-Detail Tables
Hi Stefan
Per what you wrote below, I add these codes into my website and the problem remains. It cannot resolve the no show of custom fields in Amelia custom field setup page at backend, when activating the LearnPress plugin. However, the frontend booking form custom fields has no impact, despite the backend can't see the custom fields to edit.
Rgs, Tai
Hello Tai,
Sorry for the late reply.
Please, try this workaround. It should work specifically to resolve the LearnPress conflict.
The authors of this plugin load all LearnPress scripts on each admin page (which is wrong, they should load their scripts only on their pages, as we are doing).
This conflict can be fixed by modifying the Learnpress plugin code OR disabling LearnPress plugin. If you wish to modify Learnpress plugin code (or I could do it for you), you need to do the next replacement:
In file: ../wp-content/plugins/learnpress/inc/admin/class-lp-admin-assets.php (line #196) search for the:
and replace it with:
And of course, if you update the LearnPress plugin you will have to replace again this line of code in LearnPress plugin in order to not load their scripts on Amelia pages.
Let us know if this helps. If you need us to edit this code for you, we need FTP Credentials, if you don't know them you can check with your Hosting Support, Then we can log in to your FTP and edit this code,
And we also need a link to your WP-Admin with Admin credentials, so that we can check if the issue is fixed.
Kind Regards,
Stefan Petrov
[email protected]
Rate my support
Try our FREE mapping plugin! MapSVG - easy Google maps, interactive SVG maps, and floor plans, choropleth maps and much more - https://wordpress.org/plugins/mapsvg-lite-interactive-vector-maps/
wpDataTables: FAQ | Facebook | Twitter | Instagram | Front-end and back-end demo | Docs
Amelia: FAQ | Facebook | Twitter | Instagram | Amelia demo sites | Docs | Discord Community
You can try wpDataTables add-ons before purchasing on these sandbox sites:
Powerful Filters | Gravity Forms Integration for wpDataTables | Formidable Forms Integration for wpDataTables | Master-Detail Tables
Hello Stefan
Thanks for the info. I will try to update the LearnPress code myself and check if the issue has resolved. Will get back to you soon after testing. Thanks!
Rgs, Tai
Hi Stefan
I traced both the free version and paid version of LearnPress plugin file as shown in the directory you mentioned below. However, both files have no such line of php code to be replaced.
Are you sure you give the right file directory? Which version (free or paid? version number) of LearnPress you were referring to to see the command line as you shown?
Rgs, Tai
Hello Tai,
Sorry for the late reply. Looking back at the functions.php file and the script we sent previously, we missed the part where the name of the plugin needs to be included instead of ''simply-schedule-appointments".
So, the correct script is
Please, try this script i let us know if it works.
Kind Regards,
Stefan Petrov
[email protected]
Rate my support
Try our FREE mapping plugin! MapSVG - easy Google maps, interactive SVG maps, and floor plans, choropleth maps and much more - https://wordpress.org/plugins/mapsvg-lite-interactive-vector-maps/
wpDataTables: FAQ | Facebook | Twitter | Instagram | Front-end and back-end demo | Docs
Amelia: FAQ | Facebook | Twitter | Instagram | Amelia demo sites | Docs | Discord Community
You can try wpDataTables add-ons before purchasing on these sandbox sites:
Powerful Filters | Gravity Forms Integration for wpDataTables | Formidable Forms Integration for wpDataTables | Master-Detail Tables
Hi Stefan
1) I could not find ../wp-content/plugins/learnpress/inc/admin/class-lp-admin-assets.php (line #196) in LearnPress plugin codes, to implement the change you mentioned in your previous message.
2) I add your current message codes into our WP website as a code snippet and activate it, but the issue remain unchaged.
Please kindly advise how exactly I need to do in order to resolve the plugin conflict between Amelia and LearnPress found on the Amelia backend custom field creation page?
Rgs, Tai
Hello Tai,
In regards to what I sent before, my apologies, that was some old solution that does not work anymore, so you can just ignore that about editing the LearnPress Code.
2. In regards to the function we sent, we see you are trying it as a snippet, that will not work.
Apologies for that as well, we did not send you the full instructions on where that code needs to go.
This is a function/hook, it can not be used as a script, because this is a PHP code. It is going to exclude the LearnPress only for pages where Amelia's booking is, but it will be active on other areas of the site, so you can use both plugins as active.
Add this code to functions.php of your mu-plugins ( must use plugins) folder :
If you are not sure where your 'mu-plugins' folder is , the default path is found in ../wp-content/mu-plugins.
If it does not exist on your hosting server, you can create a new folder via FTP and create a file named functions.php there.
To change the default directory manually, define WPMU_PLUGIN_DIR and WPMU_PLUGIN_URL in wp-config.php. You can also reach out to your hosting support if you need help to do that.
You can see more details about this here. Let us know if that works to solve this issue on your site.
If you are not able to do this, we can do it for you, if that is the case, we will require access.
Please send us the WP-Admin URL Administrator user credentials and FTP credentials.
Just make sure to send this in a PRIVATE reply, for security reasons, so then only we can see the credentials.
Thank you. Looking forward to hearing from you.
Kind Regards,
Stefan Petrov
[email protected]
Rate my support
Try our FREE mapping plugin! MapSVG - easy Google maps, interactive SVG maps, and floor plans, choropleth maps and much more - https://wordpress.org/plugins/mapsvg-lite-interactive-vector-maps/
wpDataTables: FAQ | Facebook | Twitter | Instagram | Front-end and back-end demo | Docs
Amelia: FAQ | Facebook | Twitter | Instagram | Amelia demo sites | Docs | Discord Community
You can try wpDataTables add-ons before purchasing on these sandbox sites:
Powerful Filters | Gravity Forms Integration for wpDataTables | Formidable Forms Integration for wpDataTables | Master-Detail Tables
Hello Tai,
Thanks for the feedback. This has been reported already, but I'll make sure that I forward this case to the developers, as well. Hopefully, the fix will be implemented in future versions, but, unfortunately, can't promise ETA at this moment.
Please feel free to search through our feature suggestion page, to see if someone may have already suggested this feature. If you can't see it, feel free to add your suggestion there, and as more people vote, the feature will move higher on the priority list.
You can certainly follow our changeLog page if you'd like, where we state any changes/new features/bug fixes during updates and our newsletter, so you're informed about new features, bug fixes, freebies, etc.
Please, feel free to open a new ticket if you have questions regarding other topics.
Kind Regards,
Stefan Petrov
[email protected]
Rate my support
Try our FREE mapping plugin! MapSVG - easy Google maps, interactive SVG maps, and floor plans, choropleth maps and much more - https://wordpress.org/plugins/mapsvg-lite-interactive-vector-maps/
wpDataTables: FAQ | Facebook | Twitter | Instagram | Front-end and back-end demo | Docs
Amelia: FAQ | Facebook | Twitter | Instagram | Amelia demo sites | Docs | Discord Community
You can try wpDataTables add-ons before purchasing on these sandbox sites:
Powerful Filters | Gravity Forms Integration for wpDataTables | Formidable Forms Integration for wpDataTables | Master-Detail Tables