Support » Plugin: Contact Form DB » Contact Form DB Shortcode No Longer Working

Viewing 12 replies - 1 through 12 (of 12 total)
  • Plugin Author Michael Simpson

    (@msimpson)

    I see that the HTML of the page suddenly stops. This suggests that PHP is hitting an error and dies when trying to render the page. If you are supposed to have a footer on the page, you are consequently not seeing it. Possibly that is caused by the short code.

    To test, I would copy the short code, then remove it from the page and view it. See if you get your footer. If you do, then the short code is the problem.

    If you recreate the short code in the CFDB short code builder page, then click on it on that page, does it show you results?

    Do you have any error log on your site that you could look at to see what the error is?

    Thread Starter dhobeika

    (@dhobeika)

    I removed the shortcode (and saved it to notepad) and then updated the page, and it loaded fine, so it’s definitely an issue with the shortcode.

    I went into the shortcode creator and tried to recreate it, and then clicked on the link and a blank page came up: http://www.nr4w.com/wp-admin/admin-ajax.php?action=cfdb-export&form=National%20Registry%204%20Wrestling%20Contact%20Form&show=your-name%2Clast-name%2Creferred_by%2Cnew_referral_code&role=Anyone&content=&enc=DT

    In terms of an error log, where would I find that? Is it something that would be in our hosting cpanel, or would I need to install a plugin to wordpress?

    Do you think an update might have messed this up since it was working fine before? Should I try and roll back to a previous version?

    Thanks for your help!

    Thread Starter dhobeika

    (@dhobeika)

    I found server error logs for every site running on my shared hosting box (some other people’s sites problems appear) and php error logs just for this site. Not sure exactly what I’m looking for though…

    Thread Starter dhobeika

    (@dhobeika)

    I also tried changing the theme to 2014 to see if the theme had anything to do with it, and the page still didn’t load. Also tried disabling all the plugins except the contact form ones, and still isn’t working.

    Plugin Author Michael Simpson

    (@msimpson)

    To help debugging, define an error log file where PHP can print error messages. Create a wp-content/plugins/contact-form-7-to-database-extension/php.ini file with a line that points to where a log files should be written:

    error_log=/path/to/error_log.txt

    Then try loading the page and see if the file has any contents.

    Thread Starter dhobeika

    (@dhobeika)

    OK I made a php.ini file and uploaded it to wp-content/plugins/contact-form-7-to-database-extension/

    The php.ini file just contained this:

    error_log=/home/natioos7/public_html/wp-content/plugins/contact-form-7-to-database-extension/error_log.txt

    Then I created a blank error_log.txt file and uploaded it to said locatin.

    However, after I visit http://www.nr4w.com/registration/list-of-registrants/ and then go to http://www.nr4w.com/wp-content/plugins/contact-form-7-to-database-extension/error_log.txt to check, it’s blank. Am I doing something wrong?

    Also, forgot to mention that we have the premium CFDB plugin with the ability to edit the database in the wordpress dashboard, does that affect the locations at all?

    Plugin Author Michael Simpson

    (@msimpson)

    Try adding limit=”10″ to the short code. It may be running out of memory. If that doesn’t help, I may need a login to look at your site.

    Thread Starter dhobeika

    (@dhobeika)

    That must have been the problem, as after limiting it to 10, it’s working: http://www.nr4w.com/registration/list-of-registrants/

    However, we need the page to be able to access all 26,000 entries. We are on a VPS as opposed to a shared host, is there a way to increase the memory limit to the script? Or to just display the first 50 entries but be able to pull from all 26,000 if someone searches for something specific?

    Plugin Author Michael Simpson

    (@msimpson)

    Memory: try this: http://cfdbplugin.com/?page_id=251

    Also add unbuffered=”true” to the short code.

    Thread Starter dhobeika

    (@dhobeika)

    I haven’t even changed the memory limit yet, but adding unbuffered=”true” seems to have fixed it!

    Question — Is there a way to paginate the results/only show the fist 25 or so but still be able to search from the whole database so the inital load is faster? In the shortcode generator, i just see the ability to limit the entries as opposed to paginating them.

    Thanks again for all your help!

    Plugin Author Michael Simpson

    (@msimpson)

    Unfortunately the plugin doesn’t do pagination.

    Plugin Author Michael Simpson

    (@msimpson)

    …but you can do a search form that doesn’t show all the results initially.
    http://cfdbplugin.com/?page_id=680

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘Contact Form DB Shortcode No Longer Working’ is closed to new replies.