Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#46 2006-01-13 10:16:00

skoggy
Member
From: Westcoast of Sweden
Registered: 2005-03-27
Posts: 209
Website

Re: Commenting not working properly - URL is broken

Ok. I´m back on track.

1. Yes, since april 2005 and never troubled me very much until now(?)

2. Yes.

3. Deleted.

4. They thought the problem is in the index.php file. No changes made on the server, they said.

5. Done it carefully and correct: It´s halfway there: mattiasskoog.se but still some problems as you might see. I am running it in Live mode, still it produces
<code>array(12) { [“id”]=> string(0) “” [“s”]=> string(0) “” [“c”]=> string(0) “” [“q”]=> string(0) “” [“pg”]=> string(0) “” [“p”]=> string(0) “” [“month”]=> string(0) “” [“author”]=> string(0) “” [“request_uri”]=> string(10) “/index.php” [“qs”]=> string(0) “” [“subpath”]=> string(2) “\/” [“req”]=> string(0) “” }</code>
at the top of my page.

And problems are also shown when performaing a search.

Comments work.

Last edited by skoggy (2006-01-13 10:45:14)

Offline

#47 2006-01-13 13:21:36

Sencer
Archived Developer
From: cgn, de
Registered: 2004-03-23
Posts: 1,803
Website

Re: Commenting not working properly - URL is broken

Ok, thanks, that’s very useful feedback. Now please undo the change to in txplib_misc.php (remove the return; we added).

And replace your publish.php with this file:

http://dev.textpattern.com/file/development/4.0/textpattern/publish.php?rev=1221&format=raw

Offline

#48 2006-01-13 16:01:32

skoggy
Member
From: Westcoast of Sweden
Registered: 2005-03-27
Posts: 209
Website

Re: Commenting not working properly - URL is broken

Ok. Here is what happened:

1. Replaced publish.php with your latest version and reedited txplib_misc.php. (back to basic)
Called frontpage and got 404 error

2. From that point I again wrote return; in txplib_misc.php
(but kept your latest version of publish.php)!!!
Called frontpage and get the site the way I want! =)

…The only “bug” I so far seen with this solution is that my Livesearch generates the following:
<code>Warning: unknown_tag in d:\customers\mattiasskoog.se\wwwroot\textpattern\publish.php on line 916</code> But besides that it seems to work (it finds the articles, I can navigate in livesearch and the link is correct).

edit: Comments works the way I want :)

Last edited by skoggy (2006-01-13 16:07:30)

Offline

#49 2006-01-13 16:25:49

Sencer
Archived Developer
From: cgn, de
Registered: 2004-03-23
Posts: 1,803
Website

Re: Commenting not working properly - URL is broken

You’ve basically turned off (by adding that return; line) the ability to specify any HTTP response code. So everything that Textpattern handles will send a “200 OK”.
May not be important/critical, since you are using messy urls anyhow, but something to keep in mind…

Offline

#50 2006-01-13 16:32:07

skoggy
Member
From: Westcoast of Sweden
Registered: 2005-03-27
Posts: 209
Website

Re: Commenting not working properly - URL is broken

Anything I can do to get rid of the message? Don´t look too nice when performing a search…

Offline

#51 2006-01-13 17:08:58

Sencer
Archived Developer
From: cgn, de
Registered: 2004-03-23
Posts: 1,803
Website

Re: Commenting not working properly - URL is broken

That error-message is generated by the plugin, but it may well be due to other side-effects unrelated to the plugin.

Turn on debug-mode and see if you can find out more about what is causing that error. (Go here: http://www.mattiasskoog.se/?ls=test and view source.)

Offline

#52 2006-01-13 17:44:55

skoggy
Member
From: Westcoast of Sweden
Registered: 2005-03-27
Posts: 209
Website

Re: Commenting not working properly - URL is broken

Hmm, that page says this:

Notice: Undefined variable: comments_count in d:\customers\mattiasskoog.se\wwwroot\textpattern\publish.php on line *775*<br />
^

But the source code also warn about an unknown tag on line 916 + some htlm regarding *a few*(!?) of the articles and divs & classes used there. Beats me but I´ll look into this over the next period of time. Does this tell you anything?

Last edited by skoggy (2006-01-13 17:46:22)

Offline

#53 2006-01-18 14:18:39

skoggy
Member
From: Westcoast of Sweden
Registered: 2005-03-27
Posts: 209
Website

Re: Commenting not working properly - URL is broken

Been a few days of looking into this for me. But I sorry to say that I haven´t found any solution yet.

Offline

Board footer

Powered by FluxBB