| Post |
|
Stacey - Guest
3:26 am - August 21, 2008
|
| |
|
Please replace the ??? with your data!
[desc]: Hello!
I am trying to insert a form in my post found at http://onlyreversemortgageinfo.com/avoid-seven-costly-mistakes-made-by-most-home-buyers; when I click on the cfII button in my editor, a box came up and instead of allowing me to choose which form I wanted, it brought up my home page. So I resorted to using the <--cforms-->> code you suggested in another post. That seemed to work fine.
However, I am running into an issue when I submit the form. After submitting, the page stays on "one moment please". So I tried to hard code in the path for the lib_ajax.php file is located on my drive (http://www.onlyreversemortgageinfo.com/wp-content/plugins/cforms/lib_ajax.php) and that didn't work. I reverted back to leaving the file as is. Even when I type the file name in my browser, it doesn't register and I get a 404 error.
I installed Firebug as you suggested and it is telling there is a 404 error and it is referencing cforms.js line 20.
I looked at my error logs on the server and I didn't see anything that was referencing this issue. I always clear my cache and reload my browser prior to each test to see if the form worked. I also only have ajax enabled as you suggested with no WP Comment, etc.
I searched the FAQ's and all the other posts that seem to have the same issue, but I can't seem to fix it on my own.
1) Due to the cfII button not working in the editor, is that related to the issue with the "one moment please?"
2) Can you help me determine why my site hangs after hitting submit?
Many thanks, stacey
|
|
|
Oliver
- Admin
7:35 am - August 21, 2008
posts 3656 |
| |
|
First off, thanks for the detailed post, and the attempt to trouble shoot. A refreshing change to the typical 'something is broken' inquiry. ;-)
1) Due to the cfII button not working in the editor, is that related to the issue with the "one moment please?"
could be, but not necessarily. I've seen occasions where the web server was configured with security rules (.htacess/mod_security -> FAQ) that prevented cforms from doing all kinds of things.
Other times is was a file permission issue. In either case it may be something you need to get in touch with your provider and tell them your observations, based on the log files they should be able to tell why the 404 happens.
2) Can you help me determine why my site hangs after hitting submit?
Sure, but a URL to the form would be helpful. :-)
What is firebug telling you about (1) ?
|
|
|
Stacey - Guest
5:45 pm - August 21, 2008
|
| |
|
Thanks for the reply. I will contact my hosting company about the 404 error.
In the meantime, you can find the form at:
http://onlyreversemortgageinfo.com/avoid-seven-costly-mistakes-made-by-most-home-buyers
If that web address is too long, you can find it at http://www.onlyreversemortgage.com, click on free reports under the category, then click on Avoid Seven Costly Mistakes Made by Home Buyers.
For the cfII button issue, Firebug gives me this:
<?xml version='1.0' standalone='yes'?><wp_ajax><response action='autosave_33'><autosave id='33' position='1'><response_data><![CDATA[Draft Saved at 9:39:46 am.]]></response_data></autosave></response></wp_ajax>
for file:
http://onlyreversemortgageinfo.com/wp-admin/admin-ajax.php?action=autosave&autosave=0&autosavenonce=6c389c9c9b&catslist=16%2C20&comment_status=open&content=The+information+about+The+five+myths+of+credit+repair+goes+here.&excerpt=&ping_status=open&post_ID=33&post_author=1&post_name=the-five-myths-of-credit-repair&post_title=The+Five+Myths+of+Credit+Repair&post_type=post&tags_input=credit%2Cfree
I also changed the permissions to 777 to see if that would help with these issues and it didn't, so I changed them back to the original status.
Many thanks for your help.
Stacey
|
|
|
Oliver
- Admin
7:08 pm - August 21, 2008
posts 3656 |
| |
|
Right, the form feedback confirms the suspicion that the server apparently has an issue with calling PHP files directly.
Do you have issue with other Ajax driven areas in WP?
If not, are the file permissions the same as the one for cforms (lib_ajax.php)?
Have you checked your .htaccess file for odd security related entries?
Can you try and add the below to your .htaccess file:
<IfModule mod_security.c> SecFilterEngine Off SecFilterScanPOST Off </IfModule>
|
|
|
Stacey - Guest
7:38 pm - August 21, 2008
|
| |
|
I believe the only other ajax area is SmoothGallery2.0 which is what creates the rotating images on the home page. I didn't have a problem installing and getting that to work initially.
The file permission for SmoothGallery is 755 which is the same as lib_ajax.php.
After adding the information you supplied, this is what my .htaccess file states:
# BEGIN WordPress <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] </IfModule>
<IfModule mod_security.c> SecFilterEngine Off SecFilterScanPOST Off </IfModule> # END WordPress
Also, my hosting company is bluehost. Have you experienced many problems with them as it relates to not calling the php function correctly?
Kind regards, Stacey
|
|
|
Oliver
- Admin
8:07 pm - August 21, 2008
posts 3656 |
| |
|
not with bluehost but with go-daddy, which I believe are the worst.
if the modified .htaccess file didn't fix it, I'm afraid your hosting company is the only one that can shed some light on why this is happening.
|
|
|
Stacey - Guest
9:20 pm - August 21, 2008
|
| |
|
My apologies, your .htaccess file DID fix it. I forgot that I was playing around with the permissions in my frustration and forgot to change the wp-content folder back to 755. Everything (other than the cfII button) seems to working.
Thanks again for all your help!
Kind regards,
Stacey
|
|
|
Oliver
- Admin
9:48 pm - August 21, 2008
posts 3656 |
| |
|
whew. glad that it works now.
|
|