Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#1 2006-01-02 21:29:10
- minusf
- Member
- Registered: 2005-02-15
- Posts: 104
getting "Old placeholder file is in the way:" diagnostics
hi there,
just upgraded to 4.0.3 and i started to see this message..
i looked in the code, but it is not obvious for me at the first look what this does,
and i don’t want to make stupid guesses ;-)
as you can see from the pasted diagnostics, “txp” is part of <code>$path_to_site</code>
so it shouldn’t be treated as a placeholder file, becase
a) it’s a directory and not a file
b) it’s part of <code>$path_to_site</code> so it clearly can’t be a placeholder
because it’s one level higher than the actual textpattern site
here’s the diag:
<pre>
Textpattern version: 4.0.3 (r1188)
last_update: 2006-01-02 21:07:46/2006-01-02 21:07:07
Document root: /3w
$path_to_site: /3w/wz.cz/c/charlesbur/txp
Textpattern path: /3w/wz.cz/c/charlesbur/txp/textpattern
Permanent link mode: title_only
open_basedir: .:/tmp:/usr/local/lib/php
upload_tmp_dir: /home/tmp
Temp folder: /3w/wz.cz/c/charlesbur/txp/textpattern/tmp
Site URL: www.charlesbur.wz.cz/txp
PHP version: 4.3.4
Server time: 2006-01-02 22:13:34
MySQL: 4.1.11-log
Locale: C
Server: Apache/2.0.48 (Unix)
Apache version: Apache/2.0.48 (Unix)
php_sapi_mode: apache2handler
os_version: Linux 2.6.10-rc3
Pre-flight check:
————————————
Old placeholder file is in the way: /3w/wz.cz/c/charlesbur/txp/
————————————
.htaccess file contents:
————————————
DirectoryIndex index.php index.html
Options +FollowSymLinks
RewriteBase /txp/
<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 off
————————————
Charset (default/config): czech/utf8
character_set_client: utf8
character_set_connection: utf8
character_set_database: utf8
character_set_results: utf8
character_set_server: latin2
character_set_system: utf8
character_sets_dir: /usr/share/mysql/charsets/
18 Tables: textpattern is latin1, txp_category is latin2, txp_css is latin2, txp_discuss is latin2, txp_discuss_ipban is latin2, txp_discuss_nonce is latin2, txp_file is latin2, txp_form is latin2, txp_image is latin2, txp_lang is latin2, txp_link is latin2, txp_log is latin2, txp_page is latin2, txp_plugin is latin2, txp_prefs is latin2, txp_priv is latin2, txp_section is latin2, txp_users is latin2
PHP extensions: zip, xslt, xml, tokenizer/0.1, standard/4.3.4, session, pcre, overload, mysql, mbstring, imap, iconv, gettext, gd, ftp, exif/1.4 $Id: exif.c,v 1.118.2.25 2003/09/22 23:28:07 iliaa Exp $, domxml/20020815, dba, ctype, bcmath, zlib/1.1, apache2handler
Apache modules: core, mod_access, mod_auth, mod_log_config, mod_env, mod_setenvif, worker, http_core, mod_mime, mod_autoindex, mod_vhost_alias, mod_negotiation, mod_dir, mod_actions, mod_alias, mod_so, mod_deflate, mod_status, sapi_apache2, mod_logio, mod_rewrite, mod_auth_digest
/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)
</pre>
we is experts™
Offline
#2 2006-01-05 12:21:13
- studiozoe
- New Member
- From: Göteborg, Sweden
- Registered: 2004-11-14
- Posts: 8
Re: getting "Old placeholder file is in the way:" diagnostics
Shoot! I think I can be the poster child for the “stupid guesses” you mention! I went ahead and followed the pre-flight instructions to the letter, deleting those “placeholder” files. They’re still being referenced in .htaccess I feel so stupid if I deleted them but shouldn’t have. And have no idea how to get those files back…or at least how to recreate them if necessary.
I anxiously await other responses to your issue from those who know what they’re doing. Dang!
> minusf wrote:
> hi there,
just upgraded to 4.0.3 and i started to see this message..
i looked in the code, but it is not obvious for me at the first look what this does,
and i don’t want to make stupid guesses ;-)
as you can see from the pasted diagnostics, “txp” is part of <code>$path_to_site</code>
so it shouldn’t be treated as a placeholder file, becase
a) it’s a directory and not a file
b) it’s part of <code>$path_to_site</code> so it clearly can’t be a placeholder
because it’s one level higher than the actual textpattern site
/edit: actually, most of my problems went away after I fixed the .htaccess (my upgraded version didn’t transfer during ftp). Once I cleared that up, things moved along well. AND i did delete the so called “placeholder files” just like the pre-flight diagnostic instructed. All is well. (Well almost all…) ;-)
Last edited by studiozoe (2006-01-05 13:33:24)
Offline
#3 2006-01-05 22:29:33
- zem
- Developer Emeritus
- From: Melbourne, Australia
- Registered: 2004-04-08
- Posts: 2,579
Re: getting "Old placeholder file is in the way:" diagnostics
Old placeholder file is in the way: /3w/wz.cz/c/charlesbur/txp/
Is that exactly what it says in diagnostics, or did something get chopped off here? If it’s accurate, that looks like something went wrong in the diagnostic test.
Alex
Offline
#4 2006-01-06 00:23:53
- minusf
- Member
- Registered: 2005-02-15
- Posts: 104
Re: getting "Old placeholder file is in the way:" diagnostics
yes, it’s exactly like that.
i don’t know why is it being considered at all, as i said, “txp” is directory in which the
whole of txp is installed. above this level is only an index file.
actually, you can have a look at it here ;-)
we is experts™
Offline
#5 2006-01-06 00:29:59
- zem
- Developer Emeritus
- From: Melbourne, Australia
- Registered: 2004-04-08
- Posts: 2,579
Re: getting "Old placeholder file is in the way:" diagnostics
Any chance you have a section with an empty name?
This should tell you:
<txp:php>var_dump(safe_rows('name, title', 'txp_section', '1=1'));</txp:php>
Alex
Offline
#6 2006-01-06 09:52:48
- minusf
- Member
- Registered: 2005-02-15
- Posts: 104
Re: getting "Old placeholder file is in the way:" diagnostics
Any chance you have a section with an empty name?
that’s right! the dump contains:
<pre><code> [2]=>
array(2) {
[“name”]=>
string(0) “”
[“title”]=>
string(0) “”
}
</code></pre>
we is experts™
Offline
#7 2006-01-06 09:55:30
- minusf
- Member
- Registered: 2005-02-15
- Posts: 104
Re: getting "Old placeholder file is in the way:" diagnostics
but how is this possible?
i tried clicking on create without filling in a name, no empty section gets created,
the same when i entered just whitespace.
so how can it be? or even a better question, how can i get rid of it? ;-)
we is experts™
Offline
#8 2006-01-07 02:44:45
- zem
- Developer Emeritus
- From: Melbourne, Australia
- Registered: 2004-04-08
- Posts: 2,579
Re: getting "Old placeholder file is in the way:" diagnostics
Perhaps it was created by an old version of Textpattern, by a plugin, by directly modifying the database, etc.
There’s a delete button on the presentation > sections page. Does that not work?
Alex
Offline
#9 2006-01-08 20:55:31
- minusf
- Member
- Registered: 2005-02-15
- Posts: 104
Re: getting "Old placeholder file is in the way:" diagnostics
There’s a delete button on the presentation > sections page. Does that not work?
ehm, the empty section shows up only in the var dump, but it’s not visible on the presentation -> section page…
this smells like an sql query to get rid of it ;-)
do you have such so i don’t nuke my db? ;-)
we is experts™
Offline
#10 2006-02-18 04:01:03
- Mary
- Sock Enthusiast
- Registered: 2004-06-27
- Posts: 6,236
Re: getting "Old placeholder file is in the way:" diagnostics
meb: what files have you got sitting in the root of your Txp site?
Offline
#11 2006-02-18 10:53:56
- minusf
- Member
- Registered: 2005-02-15
- Posts: 104
Re: getting "Old placeholder file is in the way:" diagnostics
meb: what files have you got sitting in the root of your Txp site?
this is not about the files. at least not in my case.
the commands zem posted indeed show an empty named section.
i don’t know how they got there, obviously the the section page
does not accept whitespace only names, it’s checked properly.
my guess is, that there must be some bug in the sections handling
(deleting, renaming)
i was hoping that zem would post an sql query which gets rid of
this empty named section, but he didn’t so far :)
we is experts™
Offline
#12 2006-02-19 00:17:52
- Mary
- Sock Enthusiast
- Registered: 2004-06-27
- Posts: 6,236
Re: getting "Old placeholder file is in the way:" diagnostics
Well, if you guys have something like phpMyAdmin or Rob’s plugin, it’d be easy enough to check and correct.
I’ll check and patch whatever’s allowing this to happen.
Offline