| Post |
|
Guest
| acorn 3:25 pm January 14, 2009
| |
|
|
Hi,
I have been troubling over this for hours and have read most of the posts on here regarding the subject but im still stumped. Im using cforms on IIS6 and get a 404 file not found error everytime i try to access a php file in the js subdirectory. I think that this is to do with the "index.php/date/link" style permalinks that wordpress provides as it works when i go back to the ?=123 style links. Is there any way that i can keep the permalinks *and* insert a form into a post? Apache/linux is not an option (unfortunately ) .How hard would it be to move the files into a different directory (eg. parent)? Any help would be greatly appreciated.
more info:
URL: http://www.acornrecruitment.net/info/
IIS6 on win2k3
wordpress is in a virtual directory called info
php mime type and permissions (afaik!) are set correctly – other php files in other directories work fine – just the js one that is an issue.
Thanks.
Tom.
|
|
|
Admin
| Oliver Munich, Germany posts 6237 6:07 pm January 14, 2009
| |
|
|
are you talking about js/insertdialog25.php ?
what is the 404 about (can you make a screenshot) ? the above file per se or a file the above PHP file can't load/include?
check your abspath.php and content file in your cforms server folder.
|
|
|
|
|
Guest
| acorn 1:07 pm January 15, 2009
| |
|
|
thanks for the reply.
Yes, that is the file im talking about. Since then, i have moved the wp installation into the root so its no longer in a virtual directory and changed all the appropriate paths to point at the new location however, im still getting the same problem. If i browse to the js directory in a web browser, i can see all the files and open any except the php ones. If i click on a php file, i get the 404 error again. This behavior only happens in the js directory.
The abspath.php file is pointing at the wp installation and i dont have a file named content
i have uploaded a screenshot at http://www.acornrecruitment.ne…../broke.jpg
All i did was press the tinymce cforms button and then pressed printscreen.
i have firebug open in that shot so you can see where it fails.
thanks,
Tom.
p.s. if i change the extenstion of the file to html or anything else, it is served by iis.
|
|
|
Admin
| Oliver Munich, Germany posts 6237 6:57 pm January 15, 2009
| |
|
|
so you even get the 404 when you try and copy/paste the URL into your browser Location Bar field?
if that's the case, the I guess it's one of the below
- server side config or security settings issue
- .htaccess issue
- file permissions issue
PS: re: abspath.php, I meant to check the content of the aforementioned file ;-)
|
|
|
|
|
Guest
| acorn 2:04 pm January 16, 2009
| |
|
|
the plot thickens…
if i comment out the line:
require_once($abspath.'wp-blog-header.php');
the page loads fine (but crashes). My abspath.php contains:
<?php $abspath = 'D:\\\\inetpub\\\\wwwroot\\\\acornrecruitment.net\\\\'; ?>
which is the correct path. I added the \\\\ at the end to see if that fixed it but it still doesnt work; nor with /
i have enabled parent paths in iis but that hasnt seemed to help. Even hardcoding the path into require_once doesnt work which leads me to think this is a problem to do with wp-blog-header.php
|
|
|
Guest
| acorn 2:40 pm January 16, 2009
| |
|
|
think i may have fixed it.
i added
header("HTTP/1.0 200 OK", true, 200);
to the line after require_once as directed in the following post
http://wordpress.org/support/t…..pic/167319
now when i click the button, i get a box popup with all the forms i have made 
it looks like its fixed – for now anyway.
thanks for your help
tom.
|
|
|
Admin
| Oliver Munich, Germany posts 6237 6:46 pm January 16, 2009
| |
|
|
thanks for sharing the solution!
|
|
|
|