Announcement

Collapse
No announcement yet.

Undefined Constant Error

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Undefined Constant Error

    We have had the WordPress Connect plug in for several years, and in late December, the form wasn't showing up correctly on our web site.While trying to debug, I deleted the existing Form group and Account from the database, and re-installed the newest plug-in update.

    I am able to install the and activate the plug-in (after removing the extraneous "/" on line 92 of clickandpledge_form.php), and when I try to re-enter our organization info in Settings, it recognizes the C&P Account # and the GUID and brings up the correct nickname when I click Verify, but when I try to save, I get the following error:
    WordPress version 5.9
    Current theme: Neve (version 3.1.4)
    Current plugin: Click & Pledge Connect (version 02.2112010000-WP5.8.2)
    PHP version 8.0.14

    Error Details
    =============
    An error of type E_ERROR was caused in line 407 of the file /home/mirrorst/public_html/wp-content/plugins/click-pledge-connect/Functions/functionscnp.php. Error message: Uncaught Error: Undefined constant "txtcnpacntid" in /home/mirrorst/public_html/wp-content/plugins/click-pledge-connect/Functions/functionscnp.php:407
    Stack trace:
    #0 /home/mirrorst/public_html/wp-content/plugins/click-pledge-connect/cnpSettings.php(49): CNPCF_addSettings('wp_cnp_forminfo', Array)
    #1 /home/mirrorst/public_html/wp-includes/class-wp-hook.php(307): cnp_formssettings('')
    #2 /home/mirrorst/public_html/wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters('', Array)
    #3 /home/mirrorst/public_html/wp-includes/plugin.php(474): WP_Hook->do_action(Array)
    #4 /home/mirrorst/public_html/wp-admin/admin.php(259): do_action('click-pledge_pa...')
    #5 {main}
    thrown

    I have tried deleting and re-installing the plug-in several times and continue to get the same error. Please help!

    Thanks,

    Suzanne


  • #2
    Good day @mirrorstage

    Please submit a support ticket at https://support.clickandpledge.com/s/ with FTP and Admin login details as well as the website URL so we can review your entire configuration. Include the link to this post in the ticket for reference and add 'Attn: Forums' in your case subject line.

    Please let us know when you have submitted the ticket. Do not post the requested information in this forum as this is a public forum.
    Regards,
    Click & Pledge Support Department

    On Salesforce? Help us by rating our app: Click & Pledge Donor Management on AppExchange

    Join us @ the educational webinars: https://clickandpledge.com/webinars/
    Live Support available Join between 3:00 - 3:30 p.m. ET Monday - Thursday: https://clickandpledge.com/webinars/
    Are you on Salesforce? Join us at the Power of Us Hub: https://powerofus.force.com/0F980000000CjpC

    Comment


    • #3
      I sent the requested information via email in response to the earlier support ticket I opened. The subject line of the email is Attn: Forums Re: Critical Error with C&P Connect for WordPress [ ref:_00D30obtq._5004v1ifg7B:ref ].

      I await further assistance and instruction.

      Thanks,

      Suzanne

      Comment


      • #4
        Good day @mirrorstage

        Thank you for sharing the details via support ticket. We tried to review your instance but there is a firewall enabled that requires whitelisting the IP.

        Here is our developer IP: 49.206.36.215

        If you please whitelist it so that our developer will review your configuration.

        Looking forward to hearing back from you.
        Regards,
        Click & Pledge Support Department

        On Salesforce? Help us by rating our app: Click & Pledge Donor Management on AppExchange

        Join us @ the educational webinars: https://clickandpledge.com/webinars/
        Live Support available Join between 3:00 - 3:30 p.m. ET Monday - Thursday: https://clickandpledge.com/webinars/
        Are you on Salesforce? Join us at the Power of Us Hub: https://powerofus.force.com/0F980000000CjpC

        Comment


        • #5
          The IP 49.206.36.215 has now been whitelisted for access. Thanks.

          Comment


          • #6
            Good day @mirrorstage

            My apologies. The IP which I shared was dynamic. Here are the static IPs of the developer: 202.63.103.194 and 183.82.99.179 can you please whitelist them?
            Regards,
            Click & Pledge Support Department

            On Salesforce? Help us by rating our app: Click & Pledge Donor Management on AppExchange

            Join us @ the educational webinars: https://clickandpledge.com/webinars/
            Live Support available Join between 3:00 - 3:30 p.m. ET Monday - Thursday: https://clickandpledge.com/webinars/
            Are you on Salesforce? Join us at the Power of Us Hub: https://powerofus.force.com/0F980000000CjpC

            Comment


            • #7
              Those two IP addresses are now whitelisted, as well. Hopefully we can get this resolved soon!

              Comment


              • #8
                Similar issue as OP, we have Click&Pledge Connect in use on another website where it is currently working so I am familiar with this plugin but I am trying to activate it on a different WordPress site so I can embed a donation form onto it but it keeps causing a critical error. I am able to install and activate the plug-in (after removing the extraneous "/" on line 92 of clickandpledge_form.php), and when I try to re-enter our organization info in Settings, it recognizes the C&P Account # and the GUID and brings up the correct nickname when I click Verify, but when I try to save, I get the following error:

                When seeking help with this issue, you may be asked for some of the following information:
                WordPress version 5.9.3
                Current plugin: Click & Pledge Connect (version 02.2112010000-WP5.8.2)
                PHP version 8.0.16



                Error Details
                =============
                An error of type E_ERROR was caused in line 407 of the file /wp-content/plugins/click-pledge-connect/Functions/functionscnp.php. Error message: Uncaught Error: Undefined constant "txtcnpacntid" in /wp-content/plugins/click-pledge-connect/Functions/functionscnp.php:407
                Stack trace:

                #0 /wp-content/plugins/click-pledge-connect/cnpSettings.php(49): CNPCF_addSettings('wp_m9xtz7a1vw_c...', Array)
                Home /wp-includes/class-wp-hook.php(307): cnp_formssettings('')
                Forum /wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters('', Array)
                Blogs /wp-includes/plugin.php(474): WP_Hook->do_action(Array)
                Groups /wp-admin/admin.php(259): do_action('click-pledge_pa...')
                Uncategorized Groups {main}
                thrown

                I have tried deleting and re-installing the plug-in several times and continue to get the same error. I have submitted a ticket with this error as well.
                Last edited by wbadmn; 04-21-2022, 12:36 PM.

                Comment


                • #9
                  We still haven't gotten it to work. C&P Support wasn't able to connect with my web site using FTP, unfortunately, and we reached a bit of a stalemate.We ended up embedding a widget donation form on our donation page as a workaround, while trying to get it resolved. If you figure out the solution, please share here! Thanks!

                  Comment


                  • #10
                    Good day wbadmn

                    Please submit a support ticket at https://support.clickandpledge.com/s/ with FTP and Admin login details as well as the website URL so we can review your entire configuration. Include the link to this post in the ticket for reference and add 'Attn: Forums' in your case subject line.

                    Please let us know when you have submitted the ticket. Do not post the requested information in this forum as this is a public forum.
                    Regards,
                    Click & Pledge Support Department

                    On Salesforce? Help us by rating our app: Click & Pledge Donor Management on AppExchange

                    Join us @ the educational webinars: https://clickandpledge.com/webinars/
                    Live Support available Join between 3:00 - 3:30 p.m. ET Monday - Thursday: https://clickandpledge.com/webinars/
                    Are you on Salesforce? Join us at the Power of Us Hub: https://powerofus.force.com/0F980000000CjpC

                    Comment


                    • #11
                      Good day mirrorstage

                      We are able to login into FTP with the details you shared in the ticket and fixed the issue. We have installed our plugin and tested it with our test account.

                      Please review it and let us know if you see any issues.
                      Regards,
                      Click & Pledge Support Department

                      On Salesforce? Help us by rating our app: Click & Pledge Donor Management on AppExchange

                      Join us @ the educational webinars: https://clickandpledge.com/webinars/
                      Live Support available Join between 3:00 - 3:30 p.m. ET Monday - Thursday: https://clickandpledge.com/webinars/
                      Are you on Salesforce? Join us at the Power of Us Hub: https://powerofus.force.com/0F980000000CjpC

                      Comment


                      • #12
                        I was able to add the Mirror Stage Click & Pledge account, but am still unable to add the Form groups & forms from our existing account. Please advise on how to proceed--thanks!

                        Comment

                        Working...
                        X