|
Page not found error
|
|
09-Apr-2011, 01:53 PM
Post: #1
|
|||
|
|||
|
Page not found error
Hi,
First of all thanks a lot for providing such a useful review script for people at no cost. I've installed it and embedded it on http://www.delhiinformation.org/restaura...oi_1.html. The page is designed in .php but output as .html using .htaccess. Now the problem is while submittion any comment or review on this page, it comes up to Page No Found error. I checked in the source of http://www.delhiinformation.org/restaura...soi_1.html and found that the path of form submission action is going to <form name="commentics" id="commentics" class="form_styling" action="/restaurants/east-delhi.php?title=aapki-apni-rasoi&id=1#process" method="post"> The problem is that my pages are rewrite into .html action and the form action showing .php. Please help me in this regard and tell me how can I change .php to .html in action given in the form tag. |
|||
|
09-Apr-2011, 02:06 PM
Post: #2
|
|||
|
|||
|
RE: Page not found error
Hi,
This is because $_SERVER['PHP_SELF'] is designed to return the path of the file being executed. You might have more luck using $_SERVER['REQUEST_URI'] This can be changed in comments/includes/template/form.php, line 353. Have you completed the interview? |
|||
|
09-Apr-2011, 02:14 PM
Post: #3
|
|||
|
|||
|
RE: Page not found error
Thanks a ton for helping. It sort out the problem. One more little question, how can I disable question section for verification?
(09-Apr-2011 02:06 PM)Steven Wrote: Hi, |
|||
|
09-Apr-2011, 02:23 PM
Post: #4
|
|||
|
|||
|
RE: Page not found error
That's great!
It's in Layout -> Form -> Enabled. Have you completed the interview? |
|||
|
09-Apr-2011, 02:28 PM
Post: #5
|
|||
|
|||
RE: Page not found error
(09-Apr-2011 02:23 PM)Steven Wrote: That's great! Hi, Thanks for reply. It helped me alot. Thank you so much. There is one more small problem I've just noticed, that is, where http://www.delhiinformation.org/restaura...soi_1.html the form is added. I added reference to the form as per the category page, i.e. east delhi restaurants, but then I noticed the the comment posted on http://www.delhiinformation.org/restaura...soi_1.html was also visible in all the pages related to east delhi restaurants. I then changed $reference to the ID of that page but it stopped showing the comment posted previously as test. Can you help me in this regard please? My East-Delhi.php has so many restaurants listed on it linked from a single table of mysql. $id is referred to the id number of each restaurant. |
|||
|
09-Apr-2011, 03:14 PM
Post: #6
|
|||
|
|||
|
RE: Page not found error
The reference of the page shouldn't make any difference, it's only used for administrative purposes.
Can you post your integration code? Have you completed the interview? |
|||
|
11-Apr-2011, 07:36 AM
Post: #7
|
|||
|
|||
|
RE: Page not found error
Here is the code:
<?php $page_id = "$id"; $reference = "$pageTitle, East Delhi"; $path_to_comments_folder = "../comments/"; define ('IN_COMMENTICS', 'true'); //no need to edit this line require $path_to_comments_folder . "includes/commentics.php"; //no need to edit this line ?> in the above code, $id=$_REQUEST['id']; $pageTitle = $row['name']; (09-Apr-2011 03:14 PM)Steven Wrote: The reference of the page shouldn't make any difference, it's only used for administrative purposes. |
|||
|
11-Apr-2011, 11:29 AM
Post: #8
|
|||
|
|||
|
RE: Page not found error
Where are you getting the $_REQUEST['id'] value from?
I ask because there is no 'id' query parameter in your URL: east-delhi-Aapki-Apni-Rasoi_1.html In Manage -> Pages, have you checked what the custom ID is for each page? Have you completed the interview? |
|||
|
11-Apr-2011, 12:08 PM
Post: #9
|
|||
|
|||
|
RE: Page not found error
Hi,
1 is the id value of the parameter. If you notice, you'll find that east-delhi-Aapki-Apni-Rasoi_1.html, in this url, 1 is the id of the Aapki Apni Rasoi details. This is a MySQL query. the url has the page name in itself, i.e., east-delhi. The original name of the page is east-delhi.php but using .htaccess, have rewritten into .html. (11-Apr-2011 11:29 AM)Steven Wrote: Where are you getting the $_REQUEST['id'] value from? |
|||
|
11-Apr-2011, 12:17 PM
Post: #10
|
|||
|
|||
|
RE: Page not found error
You might want to try these methods instead:
http://www.commentics.org/wiki/doku.php?...many_pages Have you completed the interview? |
|||
|
« Next Oldest | Next Newest »
|
| Possibly Related Threads... | |||||
| Thread: | Author | Replies: | Views: | Last Post | |
| Vote, Flagging not working- even on test page?? | floodrod | 2 | 16 |
Today 12:05 PM Last Post: Steven |
|
| Looong page url | CommiC | 2 | 53 |
09-Jun-2013 03:44 PM Last Post: CommiC |
|
| misaligned on page | ianheslop | 4 | 151 |
15-May-2013 11:46 AM Last Post: ianheslop |
|
| Submitting comment without page reload | johndoe694 | 6 | 267 |
24-Apr-2013 10:09 PM Last Post: johndoe694 |
|
| Comments number on another page. | Edgey | 4 | 539 |
17-Apr-2013 10:31 PM Last Post: aww |
|
| Binding Commentics to specific page on site | johndoe694 | 2 | 213 |
12-Apr-2013 02:11 PM Last Post: johndoe694 |
|
| how i can page add page | Jalilnet | 1 | 237 |
27-Feb-2013 02:33 PM Last Post: Steven |
|
| am live! but comment resend after page refresh. | terungwa | 2 | 415 |
24-Jan-2013 11:30 PM Last Post: terungwa |
|
| alphanumeric value page ID? | herzeleid77 | 3 | 488 |
16-Jan-2013 04:03 PM Last Post: Steven |
|
| How to integrate Commentics to a subdomain page? | page | 1 | 400 |
04-Jan-2013 07:26 AM Last Post: page |
|
User(s) browsing this thread:

Search
Member List
Calendar
Help



