I love finding great plugins to use in WordPress. One of my often used controls for adding robust form controls to a WP site is the famously complicated CFormsII plugin (by Delicious Days!) it’s a great plugin which allows you to dynamically build forms of any shape size or flavor, track the results with a snazzy data table viewer, and even export the results into XML or CSV.
Apart from the joy I’ve experienced from this plugin, I’ve also had my share of troubles. It’s very finicky to get configured at times. I usually have had no luck getting the cool AJAX functions to work on Windows servers very well, so they end up being disabled, and I’ve also encountered trouble when trying to use this form with SSL, as something, somewhere is being loaded without the proper path, so you see errors when trying to load the page under an SSL certificate.
Today’s problem was that the records (1000’s of them) were no longer showing up in the “Tracking” section. They were in the database, and all were being emailed out, but nothing would show in the record viewer. I was encountering a strange error too:
Webpage error details load-scripts.php Message: Permission denied Line: 19 Char: 27021 Code: 0 URI: http://<mydomain.com>/wp-admin/load-scripts.php?c=1&load=jquery,utils&ver=d24248fe4b0cd62086633fd42ef1019b
What is this all about?
Well, after tearing into things and trying to find some mistake that migrated into the codebase, I was finally able to resolve the issue by de-activating the plugin, and re-activating it once again. Something in the configuration for this plugin in the database must have gotten out of sync, so turning it off and back on reset it to whatever it needed to be happy.
Now, I’m happy too.
P.S.
In case you’re here trying to solve the same problem, you should also ensure that the paths to your WordPress application root are set in the abspath.php file in the /plugins/cforms/ folder. If that is not there, create a file called abspath.php and give it <?php $abspath = ‘C:\\inetpub\\wwwroot\\WordPress\\’; ?> as the content, and save it under the /cforms/ directory.
The next item to check is the sajax_uri variable listed under the /cforms/js/cforms.js file near the top. It should be relative to the root of your WordPress installation:
var sajax_uri = ‘/wp-content/plugins/cforms/lib_ajax.php’;