• Resolved hhh96

    (@hhh96)


    When filling in the data to obtain the necessary protein calculation, I do not get any result.

    When inspecting the page I see the following errors:

    Uncaught ReferenceError: FCP is not defined
    at fcpCalculateproteinIntake (fcp-custom.js?ver=1.38:484:358)
    at HTMLButtonElement.onclick (protein-intake-calculator/:920:127)
    fcpCalculateproteinIntake @ fcp-custom.js?ver=1.38:484
    onclick @ protein-intake-calculator/:920

    And I get to a part of the fcp-custom.js code where “FCP.unitGram” says Uncaught ReferenceError: FCP is not defined

    I have the latest version of the plugin 2.0.7 and I tried to restore a previous backup and in 2.0.4 it doesn’t work either.

    Could you help me to solve this so that the plugin works again please?

    Regards,
    Christian

    • This topic was modified 7 months, 4 weeks ago by hhh96.

    The page I need help with: [log in to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author gurcharan singh

    (@gurcharanphp)

    Hey Christian, I did not see any error on the page you mentioned above.

    Can you please re-check it, I suggest you to please remove your browser cache or try it in private window.

    Let me know if you still face any error in the plugin

    Thread Starter hhh96

    (@hhh96)

    Hello,

    now it is working since I had to modify the fcp-custom.js since the original one did not declare some functions or constants at the beginning.

    Comparing with another page that I saw in another support post where I had your plugin working, I copied the code from there and incorporated it into my plugin and so it has been working.

    I guess the problem came from there but I’m not sure. In any case now it is working and that works for me.

    Thanks for your quick response.

    Regards,
    Christian

    Plugin Author gurcharan singh

    (@gurcharanphp)

    Thank you for using this plugin, I will fix the code and update a new version as well soon. Please feel free to give more suggestions to make this plugin more useful.

    Thanks

    Guri

    Plugin Author gurcharan singh

    (@gurcharanphp)

    Hey @hhh96, console error has been fixed please update the plugin, it should be working fine.

    Thread Starter hhh96

    (@hhh96)

    Good morning,

    I have already updated and it works correctly!

    Thank you for your support and the creation of this plugin.

    Regards.
    Christian

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘I get no result when I click on calculate’ is closed to new replies.