• Resolved 14oangus

    (@14oangus)


    Hi Konrad,

    On a certain setup (summarized at the end), I get this error where the edit page dies with the message “Link not found.” The issue doesn’t exist when ACF Extended is not activated and this is the log message when the edit page loads.

    PHP Notice: Undefined index: link_id in /nas/content/live/cardinalpeakd/wp-admin/link.php on line 116

    It looks like this link.php file is mistakenly accessed with the setup. In other cases, the edit page loads fine and link.php file is not accessed.

    I’m not sure if this will help but when link.php is accessed, I can see in the logs that an “action” called “acfe/flexible/layout_preview” is recorded.

    These are the plugin versions I’m using. Both the dev and the live sites have the same issue.

    Dev: ACF PRO – 6.2.4 | ACFE – 0.8.9.5

    Live: ACF PRO – 6.3.6 | ACFE – 0.9.0.7 (both latest)

    Please have a look when you have a chance and feel free to let me know if you need more information from me.

    Thank you for the time!

    The setup that’s giving me the issues is as follows. Please also refer to the screenshots.

    “Content Groups” Field Group (Flexible Content) -> “Simple” Layout -> “Simple” Component Field -> “Simple” Component (Flexible Content) -> Any Layout

    If no layout is added to the “Simple” component, the issue is not present (see the “OK Screen” attachment).

    Content Groups Field Group Settings

    Simple Component Settings
    OK Screen
    Adding Simple Layout to Content Groups
    Adding Layout to Simple
    Error Screen

    No issue when ACFE deactivated
    • This topic was modified 2 months, 1 week ago by 14oangus.
Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Konrad Chmielewski

    (@hwk-fr)

    Hello,

    Thanks for the feedback and the detailed report.

    It looks like you have some custom code in your “Simple” Dynamic Preview template file, and that code trigger this error. In your setup, the “Simple” layout points to the following PHP template file: /wp-content/themes/cardinalpeak/flexible-content.php.

    To make sure the error come from here, I would suggest to rename your file to something different in your FTP/folder. You can rename it to flexible-content-test.php. By doing this, your file is not executed and the Dynamic Preview is not displayed anymore. If the error is gone, then it means the faulty code is in this template file.

    This would also explain why the error can be only seen with ACF Extended. Since the Dynamic Render/Preview feature for the Flexible Content is added by ACF Extended.

    Let me know if you found something.

    Thanks!

    Regards.

    Thread Starter 14oangus

    (@14oangus)

    Hi Konrad,

    You’re 100% right. The custom file is indeed the origin of the issue.

    I apologize for not being able to spot this earlier as I took over the site only a while ago and am still figuring out how the custom theme and some plugins work.

    Thanks a ton for pointing me at the right direction in such a short time when the problem is not even derived from the plugin. Really appreciate it. Keep up the good work!

    Cheers,

    Angus

    Plugin Author Konrad Chmielewski

    (@hwk-fr)

    Hello,

    No problem, you’re welcome! I’m glad to hear that you managed to find the root of the issue!

    If you enjoy this plugin and its support, feel free to submit a review, it always helps and it’s much appreciated ??

    Have a nice day!

    Regards.

Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.