Hey there, Awesome Customers!

Just a heads up: We'll be taking a breather to celebrate International Workers' Day (May 1st and 2nd - Wednesday and Thursday) and Orthodox Easter from Good Friday (May 3rd) through Easter Monday (May 6th). So, from May 1st to May 6th, our team will be off enjoying some well-deserved downtime.

During this time, our customer support will be running on a smaller crew, but don't worry! We'll still be around to help with any urgent matters, though it might take us a bit longer than usual to get back to you.

We'll be back in action at full throttle on May 7th (Tuesday), ready to tackle your questions and requests with gusto!

In the meantime, you can explore our documentation for Amelia and wpDataTables. You'll find loads of helpful resources, including articles and handy video tutorials on YouTube (Amelia's YouTube Channel and wpDataTables' YouTube Channel). These gems might just have the answers you're looking for while we're kicking back.

Thanks a bunch for your understanding and support!

Catch you on the flip side!

Warm regards,

TMS

Okay
  Public Ticket #3452388
Custom Fields is not working
Closed

Comments

  • Tai Chang started the conversation

    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!

  •  386
    Stefan replied

    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

    wpDataTables: FAQ | Facebook | Twitter | InstagramFront-end and back-end demo | Docs

    Amelia: FAQ | Facebook | Twitter | InstagramAmelia 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

  •   Tai Chang replied privately
  • Tai Chang replied

    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!


  •  386
    Stefan replied

    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 :

    <?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.

    Kind Regards, 

    Stefan Petrov
    [email protected]

    Rate my support

    wpDataTables: FAQ | Facebook | Twitter | InstagramFront-end and back-end demo | Docs

    Amelia: FAQ | Facebook | Twitter | InstagramAmelia 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

  • Tai Chang replied

    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

  •  386
    Stefan replied

    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:

    if ( empty( $data['screens'] ) || ! empty( $data['screens'] ) && in_array( $screen_id, $data['screens'] ) ) {

    and replace it with:

    if ( (empty( $data['screens'] ) || ! empty( $data['screens'] ) && in_array( $screen_id, $data['screens'] ))  && substr($screen_id, 0, 6) !== 'amelia') {

    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.

    7259304784.png

    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

    wpDataTables: FAQ | Facebook | Twitter | InstagramFront-end and back-end demo | Docs

    Amelia: FAQ | Facebook | Twitter | InstagramAmelia 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

  • Tai Chang replied

    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

  • Tai Chang replied

    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

  •  386
    Stefan replied

    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 

    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.

    Kind Regards, 

    Stefan Petrov
    [email protected]

    Rate my support

    wpDataTables: FAQ | Facebook | Twitter | InstagramFront-end and back-end demo | Docs

    Amelia: FAQ | Facebook | Twitter | InstagramAmelia 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

  • Tai Chang replied

    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

  •  386
    Stefan replied

    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 :

    <?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.

    6123004579.png
    8846285644.png

    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

    wpDataTables: FAQ | Facebook | Twitter | InstagramFront-end and back-end demo | Docs

    Amelia: FAQ | Facebook | Twitter | InstagramAmelia 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

  •   Tai Chang replied privately
  •  386
    Stefan replied

    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

    wpDataTables: FAQ | Facebook | Twitter | InstagramFront-end and back-end demo | Docs

    Amelia: FAQ | Facebook | Twitter | InstagramAmelia 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