Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#37 2006-01-12 16:27:33

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

Re: Commenting not working properly - URL is broken

Oh, I’m sorry, skoggy. I had only fixed the part of the url that is displayed, not the actual url, so you were still downloading the old buggy version.

Fixed the link, just to be sure here it is again:

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

Offline

#38 2006-01-12 17:12:30

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

Re: Commenting not working properly - URL is broken

Yes! By that I mean: It works.
Can I stick with this file on my server?

edit: Comments work again: on my site

edit 2: Oh, almost forgot… Thanx Sencer!

OR, MAYBE NO? After replacing the publish.php file i no longer can access my site via the correct url (www.mattiasskoog.se) but it works if i type in a url like this: www.mattiasskoog.se/index.php?id=122

in other word: directly to an article.

Related to the changes made in the publish.php file?

Last edited by skoggy (2006-01-12 18:23:48)

Offline

#39 2006-01-12 21:27:43

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

Re: Commenting not working properly - URL is broken

skoggy, the error-page is created by IIS, hence I doubt that PHP is even invoked. My guess is that the problem is unrelated, and only coincided with this. (Especially given that changing back the file doesn’t have an effect).

Is it possible that the index.php file is missing in your web-root directory? Is .htaccess still in place? The only remaining thing could be server-related issues…

edit: Can you post the content of your .htaccess file please.

Last edited by Sencer (2006-01-12 21:31:09)

Offline

#40 2006-01-12 21:40:24

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

Re: Commenting not working properly - URL is broken

First of all, sorry for posting a new topic. I blame it on panic…

From diagnosis:
<code>Innehåll i .htaccess-filen:
————————————
#DirectoryIndex index.php index.html
#Options +FollowSymLinks
#RewriteBase /relative/web/path/

<IfModule mod_rewrite.c> RewriteEngine On RewriteCond %{REQUEST_FILENAME} -f [OR] RewriteCond %{REQUEST_FILENAME} -d RewriteRule ^(.+) – [PT,L]

RewriteRule ^(.*) index.php </IfModule>

#php_value register_globals 0

————————————</code>

Offline

#41 2006-01-12 22:39:36

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

Re: Commenting not working properly - URL is broken

That seems to be a stock .htaccess.

Sorry, I think you’ll need an IIS expert to solve this problem. Try getting in touch with your host. Check your webserver and php error logs for any indications. I don’t know what might be going on there.

Offline

#42 2006-01-12 22:54:36

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

Re: Commenting not working properly - URL is broken

Hmm… very strange. I´m really thankful for your efforts. This might sound like critisim but it isn´t

-Everything worked like a clock until I tested your “special” version of publish.php

Perhaps totally unrelated as you hinted before, specially since it had no effect to rewrite it with the old file. Even tried replacing all of the textpattern-files in the 4.0.3 release with no luck.

Offline

#43 2006-01-12 23:04:34

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

Re: Commenting not working properly - URL is broken

There’s no magic in that php-file, and nothing that produces any permanent side-effects.

Just to be sure: Can you post your high level diagnostics?

Offline

#44 2006-01-12 23:22:27

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

Re: Commenting not working properly - URL is broken

shure thing:

<code>Textpattern-version: 4.0.3 (r1188)
last_update: 2006-01-04 15:58:02/2006-01-12 21:34:26
Dokument-rot:
$path_to_site: d:\customers\mattiasskoog.se\wwwroot
Textpattern-sökväg: d:\customers\mattiasskoog.se\wwwroot\TEXTPATTERN
Permanentlänk-läge: messy
upload_tmp_dir: C:\PHP\uploadtemp
Tillfällig mapp: C:\WINNT\Temp
Sajt-URL: www.mattiasskoog.se
PHP-version: 5.0.3
server_time: 2006-01-13 00:21:47
MySQL: 4.0.23-standard-log
Locale: Swedish_Sweden.1252
Server: Microsoft-IIS/5.0
php_sapi_mode: cgi-fcgi
os_version: Windows NT 5.0

Förkontroll:
————————————
path_to_site är otillgänglig: d:\customers\mattiasskoog.se\wwwroot
————————————

Charset (default/config): latin1_swedish_ci/latin1
character_set: latin1
character_sets: latin1 big5 czech euc_kr gb2312 gbk latin1_de sjis tis620 ujis dec8 dos german1 hp8 koi8_ru latin2 swe7 usa7 cp1251 danish hebrew win1251 estonia hungarian koi8_ukr win1251ukr greek win1250 croat cp1257 latin5
18 Tables: OK

PHP-tillägg: bcmath, calendar, com_dotnet/0.1, ctype, ftp, iconv, odbc/1.0, pcre, session, SPL, SQLite, standard/5.0.3, tokenizer/0.1, zlib/1.1, libxml, dom/20031129, SimpleXML, wddx, xml, gd, mssql, mysql
/include/txp_category.php: r1154 (dffd7979531373149c74e3eedfbb50e2)
/include/txp_plugin.php: r1167 (c2c7d7fc1e4918c79cd3658c62e4fbda)
/include/txp_auth.php: r1166 (3e2eaca7b151e14561125ab68e722203)
/include/txp_form.php: r947 (c0e4393328985742bd81cda61d10d5ed)
/include/txp_section.php: r1154 (d85c1ce405fccd9dac364c8ef4eb72eb)
/include/txp_tag.php: r1134 (3e2dfbd6fdccf0693c147ba22a9705e7)
/include/txp_list.php: r1042 (e85d2de1c63b41f0e5bdcf268e3c487b)
/include/txp_page.php: r876 (e22dc37b465b87757722732a225b25f3)
/include/txp_discuss.php: r1170 (1e56e08cc95c255783410076db12529f)
/include/txp_prefs.php: r1170 (c806be1b1f238e75a5ff6b7cf8432d17)
/include/txp_log.php: r906 (68c4f32b70ce41a349f197b6bba6c200)
/include/txp_preview.php: r628 (a16f84b6610fc66db0bce51e25b7af34)
/include/txp_image.php: r1168 (e8ec79ff9b3a21c356ee23da7973b1f0)
/include/txp_article.php: r1170 (88689d7469d16c13d51bd4adff03ebd7)
/include/txp_css.php: r922 (0c596d9968052b89581d1ca65a77c5de)
/include/txp_admin.php: r1074 (7e87ff0e29101593fb170b1a2de9fd59)
/include/txp_link.php: r1154 (7c0c55ff6580793dff0626f169e64ad6)
/include/txp_diag.php: r1154 (5d66b90f7e7720dd0e3526ca1b24cf89)
/lib/admin_config.php: r877 (9aea12193cc76eea1964eb0383ec6513)
/lib/txplib_misc.php: r1170 (7000a1b27aa40c90978211e6cff358ec)
/lib/taglib.php: r628 (493878f922262157601c26a999a1c478)
/lib/txplib_head.php: r1183 (fb85b66b4e379476935233f844844bef)
/lib/classTextile.php: r1141 (b066c2bfa94a26ae3d70b245dcf81369)
/lib/txplib_html.php: r1166 (bd11de6e6daa3391eab75a46db55ae36)
/lib/txplib_db.php: r1170 (5a2c3a1e328cd343a067cbb8fd25cd79)
/lib/IXRClass.php: r765 (2efb0fb05b55c634072b0bae9af38bdd)
/lib/txplib_forms.php: r950 (74da2c67abe4786c353ea416c13656eb)
/publish/taghandlers.php: r1188 (4e8eaeb0543d8fde09d6e423af4253b9)
/publish/atom.php: r1117 (14c1aa23c708898d7723b3d6b9c89050)
/publish/log.php: r864 (c3d16d3dfe375819a19fcd62398e4b86)
/publish/comment.php: r1187 (d55dde574418d2eaf6a394d703056d9a)
/publish/search.php: r884 (80f942f1dc301857c2fa9dcb16aa1246)
/publish/rss.php: r1099 (ce0d82b9435d8f1de01c8e2b6c585f93)
/publish.php: r1186 (d5c20bf2298e87969575f9e622bf2797)
/index.php: r1172 (52f753ebb51c1f7d5312485d9dbad7e4)
/css.php: r944 (df1c754417bdfb4e97a2c83ae5b454ee)
</code>

Offline

#45 2006-01-13 08:15:27

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

Re: Commenting not working properly - URL is broken

1. Did you always have this preflight check failing, or is this something new:

Förkontroll:
————————————
path_to_site är otillgänglig: d:\customers\mattiasskoog.se\wwwroot
————————————

2. Have you checked that index.php is in your webroot directory?

3. Please delete .htaccess (you’re using messy urls anyhow…).

4. What has your hosting-support said to your problem?

5. We’ll try to debug a few things. In publish.php find this line: $is_404 = 0; and after it, put: var_dump($out);.
At the same time open textpattern/lib/txplib_misc.php and find this
if (substr(php_sapi_name(), 0, 3) == 'cgi') and before it put: return;

Now, call your front page, and tell us whether you are seeing any difference.

Offline

#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

Board footer

Powered by FluxBB