• Resolved mwassmer

    (@mwassmer)


    I added a link (“a” tag) to my subtitle and now I can’t update my form. Clearly, the link caused the problem. I deactivated the plugin, deleted the files, reinstalled the plugin, and reactivated the plugin, but that didn’t help. My old form still shows up in the dashboard. I tried to find the link in the database so I could manually remove it, but I can’t locate it in the database. I’m not sure how to fix this problem.

    https://wordpress.org/plugins/optin-forms/

Viewing 13 replies - 1 through 13 (of 13 total)
  • Hi mwassmer,

    send me the login details through http://codeleon.com/contact so I can fix this for you.

    Thanks!

    Thread Starter mwassmer

    (@mwassmer)

    Thanks for the reply, Boris. However, I don’t think it would smart for me to send out my admin login credentials. Could you please describe the fix, or at least describe the cause of the problem so I can try to fix it? Others in a similar situation may also benefit from the information if you post it here.

    Hi mwassmer,

    the problem is that you have added a link tag to the code, and probably copied one character too many, which broke the HTML of the admin area.

    You would need to deregister the setting which is affected, either by deleting it from the database, or by adding a line of code to the functions.php file, which will delete the setting for you.

    Which form number are you using? Tell me that and I will send you a step-by-step walkthrough.

    Thread Starter mwassmer

    (@mwassmer)

    Thanks Boris, a step-by-step walkthrough would be great! I’m using form number 05.

    Here’s what to do:

    1. Login to your WordPress installation
    2. Click on Plugins in the navigation menu
    3. Click on Editor from the submenu options
    4. On the right side of the screen, under “Select plugin to edit” choose Optin Forms and click on the Select button
    5. On the right side, where the Plugin Files are listed, find file optin-forms/includes/functions.php and click on it
    6. The contents of the file will be loaded in the text field. Scroll all the way down and add the following code at the end of the file, but one line above ?>

    Code to add:
    unregister_setting( 'optinforms-settings-group', 'optinforms_form5_subtitle' );

    Once you’ve added the code, click on the Update File button below.

    Click on Optin Forms in the navigation menu and see whether your admin area is fixed.

    If the answer is yes, repeat the previous steps to delete the line from the file (but only the line of code you have added, be careful not to delete anything else). Click on Update File button again once you’re done deleting the file.

    There you go.

    Thread Starter mwassmer

    (@mwassmer)

    When I followed the instructions, I got an error that crashed my site:

    Fatal error: Call to undefined function unregister_setting() in /home/wp_mmmapc/livetozero.com/wp-content/plugins/optin-forms/includes/functions.php on line 682

    Therefore, I had to manually delete the plugin files using my FTP client to get the site back up and running.

    It sounds like the setting didn’t exist in your database, which would mean the plugin didn’t install correctly, or modifications have been made to the database.

    Either way, I am glad you were able to fix it by deleting the plugin files.

    Thread Starter mwassmer

    (@mwassmer)

    Unfortunately, deleting the plugin files didn’t fix the original OptIn Forms problem that was apparently caused by entering the link. Deleting the plugin files only got my site up and running after it crashed as a result of adding the unregister_setting function call.

    Hi mwassmer,

    I think the best way for you to solve this is to find a developer you trust who will look into your installation. I wish I could help you further, but without having the chance to inspect what may be wrong, it will be just plain guessing.

    Thread Starter mwassmer

    (@mwassmer)

    Boris – Could you let me know where the plugin stores subtitles in the database? I’d like to try to go in and manually delete that entry in the database.

    Sure, it’s in the wp_options table (although your installation may have a different prefix instead of wp_). You would need to look for optinforms_form5_subtitle.

    Let me know if you were able to fix it.

    Thread Starter mwassmer

    (@mwassmer)

    Boris – I just send you a message via the Contact form on your website.

    I just answered your email 😉

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

The topic ‘Problems after adding link in form subtitle’ is closed to new replies.