• behu6338

    (@behu6338)


    Hello,
    I have the Acymailing plugin installed on a WordPress site, using the free version. I want to use the ACF addon to retrieve custom post elements in newsletters. I have ACF Pro installed.

    However, when I try to install the addon, I get a message saying that ACF must be installed. It seems like it doesn’t recognize ACF Pro… Do I need to have both the free and Pro versions of ACF installed? That seems odd.

    Or is there another way to make the Acymailing addon recognize ACF Pro?

    Thanks in advance!

Viewing 12 replies - 1 through 12 (of 12 total)
  • jeremyacy

    (@jeremyacy)

    Hello,

    Our integration has indeed been developed based on the free version of ACF. We assumed that their paid version worked like most other plugins (a main free plugin on the store, and an additional paid plugin that extends the free plugin’s features).

    If the paid version of ACF doesn’t work like that and rather replaces the free version (i.e the free version doesn’t need to be installed), could you give me its main folder name in wp-content/plugins/ ?
    Could you also give me the name of the main file in this folder? It should start with a block like this one:

    <?php
    /*
    * Plugin Name: Advanced Custom Fields (Pro)
    * Description: Something
    * Author: Their company
    * Author URI: https://www.example.com
    * License: GPLv3
    * Version: X.X
    * ...
    */

    I’ll update our integration accordingly.

    Thread Starter behu6338

    (@behu6338)

    Thank you for your response.
    Indeed, the free version of ACF does not need to be installed if the paid version is activated.
    The plugin folder name in wp-content/plugins/ is: advanced-custom-fields-pro.
    The main file in this folder, which starts as you mentioned, is acf.php.

    Thanks in advance!

    jeremyacy

    (@jeremyacy)

    I prepared two modifications to fix this, could you try them and tell me if this works?

    In the file wp-content/plugins/acymailing-integration-for-acf/plugin.php, add this code after the line 19:

    $this->installed = $this->installed || acym_isExtensionActive('advanced-custom-fields-pro/acf.php');

    In the file wp-content/plugins/acymailing/back/dynamics/post/plugin.php, replace the line 596 by:

    $installed = acym_isExtensionActive('advanced-custom-fields/acf.php');
    $installed = $installed || acym_isExtensionActive('advanced-custom-fields-pro/acf.php');
    if (!$installed || !function_exists('acf_get_field_groups')) {

    This should accept the pro version of the ACF plugin when testing if it is installed.

    Thread Starter behu6338

    (@behu6338)

    It’s strange (but a good news), when I’ve try to reinstall the plugin “AcyMailing integration for Advanced Custom Fields (ACF)” just now, it worked well (I didn’t modify the files yet as you ask in your last message). I did updates today, but can’t remember what plugins :/ Did you release an update for AcyMailing ?

    jeremyacy

    (@jeremyacy)

    We indeed released the v10.1.4, but it doesn’t include the modifications I listed in this thread.

    Thread Starter behu6338

    (@behu6338)

    Hi,
    Indeed, I was able to install the ACF add-on, but I cannot use it. When I go to the plugin settings, it indicates that the plugin is not installed.
    I’ve inserted the two code snippets you provided, but this has triggered a critical error on the site. Attached is a screenshot of the modified code in the file acymailing/back/dynamics/post/plugin.php. Perhaps I made a mistake while inserting it?

    Additionally, there’s something odd: at line 7, the { is highlighted in red. Could this be related ?

    Thanks,
    Best regards

    jeremyacy

    (@jeremyacy)

    There is a syntax error, maybe we didn’t have the same version of the plugin.
    You can replace the line 597:

    if (!$installed || !function_exists('acf_get_field_groups')) {

    By this:

    if (!$installed || !function_exists('acf_get_field_groups')) {
    return;
    }
    Thread Starter behu6338

    (@behu6338)

    Hi,
    I replaced the line 597 by the new one ; there’s no critical error anymore, but still can’t use the ACF addon.
    I share you the screenshot of the code of the file plugins/acymailing-integration-for-acf/plugin.php.
    Maybe there’s a syntax error too ?

    Do you want a temporary admin access to my WordPress interface ? Or a ftp access ?

    Bertrand

    jeremyacy

    (@jeremyacy)

    Hello,

    It is strictly forbidden to ask/propose to share access to websites on the WordPress forum.

    On what website do you have the issue?

    Thread Starter behu6338

    (@behu6338)

    Hello,
    Ok, I did’nt know that we can’t propose to share admin access.
    The problem is that the website is under construction, and not accessible to the visitors actually (there’s a coming soon page).
    The url : https://www.mjc-herbasse.fr/

    What about the code that I shared to you for the file plugins/acymailing-integration-for-acf/plugin.php ?
    (previous message). Is it correct ?
    Thanks

    jeremyacy

    (@jeremyacy)

    The code you showed seems to be correct, there is no syntax error.

    Could you send the ACF pro package to us with our contact form so that I could do some tests on our test sites? Maybe there’s something I missed.

    Thread Starter behu6338

    (@behu6338)

    Thanks ! I just sent a message using the contact form on the AcyMailing website.
    (the package includes the modified file with the code snippet you gave me)

Viewing 12 replies - 1 through 12 (of 12 total)

The topic ‘Plugin doesn’t recognize ACF Pro’ is closed to new replies.