Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
File path error (after moving site)
Something in Textpattern is holding onto the path where my website used to be. I moved to a new server, so the path to the site is different. I changed this in config.php, but when I go to diagnostics it says this:
File Upload Path is not writable: /home/ashgroun/public_html/current/files
But that’s where my site used to be. In the actual diagnostic, it says this:
Document root: /home/ashground/mysite.com (/home/.dolittle/ashground/andcuriouser.com)
$path_to_site: /home/.dolittle/ashground/andcuriouser.com/current
Textpattern path: /home/ashground/andcuriouser.com/current/textpattern
… and /home/ashground/andcuriouser.com/current/textpattern is the right directory, so I know everything is mostly okay.
So, what didn’t update? And will it be a problem?
Edit—
Oh, this can’t be good.
First, my log isn’t updating when people visit.
Second, I can’t post. When I try to publish, it says “Article posted”, but nothing appears on either the article list or the site itself.
Other than that path error in the diagnostics, nothing else appears to be wrong. Thoughts?
Edit—
Ahhh! The one article I managed to post yesterday doesn’t have a number! Its permlink:
http://www.andcuriouser.com/current/article//as-jimmy-fallon-would-say-and-were-back
I deleted the article I posted and then I can post a new one, but only one, and it doesn’t have a number either.
Seriously, if anyone has any idea what’s going on, please help.
Last edited by ashground (2006-05-04 18:59:14)
Offline
Re: File path error (after moving site)
There are 3 fields in txp_prefs that you might want to look at:
path_to_site C:\var-www 2 publish text_input 0
tempdir C:\var-www\textpattern\tmp 1 admin text_input 0
file_base_path C:\var-www\files 1 admin text_input 0
This is from my local Windows environment.
We Love TXP . TXP Themes . TXP Tags . TXP Planet . TXP Make
Offline
Re: File path error (after moving site)
That fixed my file error problem, but I still can’t post — it still wants to post articles with an article ID of “0”. Also, my logs still aren’t updating. Any ideas?
Last edited by ashground (2006-05-04 20:49:33)
Offline
#4 2006-05-05 01:12:30
- Mary
- Sock Enthusiast
- Registered: 2004-06-27
- Posts: 6,236
Re: File path error (after moving site)
Aaron, change your production mode to debugging. Then try and post a quick meaningless article, and access the public side of your site as well. Do you get any error messages or warnings?
Offline
Re: File path error (after moving site)
I get the following errors:
—
<code>An error occurred in the following tag: <txp:permlink> -> Notice: Undefined variable: ID
An error occurred in the following tag: <txp:comments_invite /> -> Notice: Undefined variable: ID
An error occurred in the following tag: <txp:mdn_count section=“article” /> -> Notice: Undefined variable: category
An error occurred in the following tag: <txp:mdn_count section=“article” /> -> Notice: Undefined variable: category
An error occurred in the following tag: <txp:mdn_count section=“article” /> -> Notice: Undefined variable: intersection
An error occurred in the following tag: <txp:mdn_count category=“reviews” /> -> Notice: Undefined variable: section
An error occurred in the following tag: <txp:mdn_count category=“reviews” /> -> Notice: Undefined variable: section
An error occurred in the following tag: <txp:mdn_count category=“reviews” /> -> Notice: Undefined variable: intersection
An error occurred in the following tag: <txp:mdn_count category=“no rhyme” /> -> Notice: Undefined variable: section
An error occurred in the following tag: <txp:mdn_count category=“no rhyme” /> -> Notice: Undefined variable: section
An error occurred in the following tag: <txp:mdn_count category=“no rhyme” /> -> Notice: Undefined variable: intersection
An error occurred in the following tag: <txp:mdn_count section=“personal” /> -> Notice: Undefined variable: category
An error occurred in the following tag: <txp:mdn_count section=“personal” /> -> Notice: Undefined variable: category
An error occurred in the following tag: <txp:mdn_count section=“personal” /> -> Notice: Undefined variable: intersection
An error occurred in the following tag: <txp:mdp_calendar /> -> Textpattern Warning: Unknown tag</code>
—
None of those seem to be what’s breaking, though. The new article didn’t appear (either in the admin article listing or the public site), the last article still doesn’t have an ID number. But there are absolutely no errors.
(Sorry, added code tags)
Last edited by ashground (2006-05-05 05:36:56)
Offline
#6 2006-05-05 06:59:32
- Mary
- Sock Enthusiast
- Registered: 2004-06-27
- Posts: 6,236
Re: File path error (after moving site)
Now, the above errors, on what page did you get these? The front page? On any/every page?
Offline
Re: File path error (after moving site)
Those were from the front page. On the individual article page, you get pretty much the same errors:
<code>
An error occurred in the following tag: <txp:nhn_comments_form /> -> Notice: Undefined variable: out
An error occurred in the following tag: <txp:mdn_count section=“article” /> -> Notice: Undefined variable: category
An error occurred in the following tag: <txp:mdn_count section=“article” /> -> Notice: Undefined variable: category
An error occurred in the following tag: <txp:mdn_count section=“article” /> -> Notice: Undefined variable: intersection
An error occurred in the following tag: <txp:mdn_count category=“reviews” /> -> Notice: Undefined variable: section
An error occurred in the following tag: <txp:mdn_count category=“reviews” /> -> Notice: Undefined variable: section
An error occurred in the following tag: <txp:mdn_count category=“reviews” /> -> Notice: Undefined variable: intersection
An error occurred in the following tag: <txp:mdn_count category=“no rhyme” /> -> Notice: Undefined variable: section
An error occurred in the following tag: <txp:mdn_count category=“no rhyme” /> -> Notice: Undefined variable: section
An error occurred in the following tag: <txp:mdn_count category=“no rhyme” /> -> Notice: Undefined variable: intersection
An error occurred in the following tag: <txp:mdn_count section=“personal” /> -> Notice: Undefined variable: category
An error occurred in the following tag: <txp:mdn_count section=“personal” /> -> Notice: Undefined variable: category
An error occurred in the following tag: <txp:mdn_count section=“personal” /> -> Notice: Undefined variable: intersection
An error occurred in the following tag: <txp:mdp_calendar /> -> Textpattern Warning: Unknown tag
</code>
Offline
Re: File path error (after moving site)
Did you get an error message when posting the article?
Can ou how us your high-level diagnostics?
Offline
Re: File path error (after moving site)
There are no errors when posting. It just says “Article posted”.
High-level diagnostics:
<code>
Textpattern version: 4.0.2 (r1076)
last_update: 2005-11-07 16:45:04/2006-05-03 06:59:50
Document root: /home/ashground/andcuriouser.com (/home/.dolittle/ashground/andcuriouser.com)
$path_to_site: /home/.dolittle/ashground/andcuriouser.com/current
Textpattern path: /home/ashground/andcuriouser.com/current/textpattern
Permanent link mode: section_id_title
Temp folder: /home/.dolittle/ashground/andcuriouser.com/current/textpattern/tmp
Site URL: www.andcuriouser.com/current
PHP version: 4.4.2
Register globals: 1
Server time: 2006-05-05 00:23:40
MySQL: 5.0.18-standard-log
Locale: en_GB.UTF-8
Server: Apache/1.3.33 (Unix) mod_throttle/3.1.2 DAV/1.0.3 mod_fastcgi/2.4.2 mod_gzip/1.3.26.1a PHP/4.4.2 mod_ssl/2.8.22 OpenSSL/0.9.7e
- 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> ————————————Charset (default/config): latin1/utf8
character_set_client: utf8
character_set_connection: utf8
character_set_database: latin1
character_set_results: utf8
character_set_server: latin1
character_set_system: utf8
character_sets_dir: /data/mysql/ronna/share/mysql/charsets/
20 Tables: textpattern is latin1, txp_category is latin1, txp_css is latin1, txp_discuss is latin1, txp_discuss_ipban is latin1, txp_discuss_nonce is latin1, txp_file is latin1, txp_form is latin1, txp_image is latin1, txp_lang is latin1, txp_link is latin1, txp_log is latin1, txp_log_mention is latin1, txp_page is latin1, txp_plugin is latin1, txp_prefs is latin1, txp_priv is latin1, txp_section is latin1, txp_tcm_ratings is latin1, txp_users is latin1
PHP extensions: xslt, xml, tokenizer/0.1, standard/4.4.2, session, pspell, posix, overload, mysql, mcrypt, mbstring, gettext, gd, ftp, exif/1.4 $Id: exif.c,v 1.118.2.37.2.4 2006/01/01 13:46:52 sniper Exp $, domxml/20020815, curl, ctype, calendar, zlib/1.1, pcre, openssl, Zend Optimizer
/include/txp_category.php: r901 (ced49a43561099e1652fccb7880b8f66)
/include/txp_plugin.php: r902 (20ba701396c318619a4e00681af8b228)
/include/txp_auth.php: r928 (4cfa9ec7960f80308c9392cec5722616)
/include/txp_form.php: r947 (c0e4393328985742bd81cda61d10d5ed)
/include/txp_section.php: r904 (3575f34afd7bf1400ecb7926483fcbd2)
/include/txp_tag.php: r982 (c4f3b1cd5aa07a45f6218ec2a6befe0f)
/include/txp_list.php: r1042 (e85d2de1c63b41f0e5bdcf268e3c487b)
/include/txp_page.php: r876 (e22dc37b465b87757722732a225b25f3)
/include/txp_discuss.php: r1056 (1e6c25bf973a445a9e6ff710064f01f9)
/include/txp_prefs.php: r1026 (6c0696f2147c45276380a7438dbd1575)
/include/txp_log.php: r906 (68c4f32b70ce41a349f197b6bba6c200)
/include/txp_preview.php: r628 (a16f84b6610fc66db0bce51e25b7af34)
/include/txp_image.php: r1042 (d9c8518ac976a9f21af59c9012818546)
/include/txp_article.php: r1049 (7dfdffb58a90570e8ad90debc1017b0c)
/include/txp_css.php: r922 (0c596d9968052b89581d1ca65a77c5de)
/include/txp_admin.php: r1074 (7e87ff0e29101593fb170b1a2de9fd59)
/include/txp_link.php: r1042 (f4e99d4b37e5c80f3c9fb2f1b1c08e3d)
/include/txp_diag.php: r1075 (d4b97f820b0ea9abe593cb74bf3891c2)
/lib/admin_config.php: r877 (9aea12193cc76eea1964eb0383ec6513)
/lib/txplib_misc.php: r1064 (c4b8079db64c3fbe57ea961181d88512)
/lib/taglib.php: r628 (493878f922262157601c26a999a1c478)
/lib/txplib_head.php: r1055 (a8e03ea3e927ddde5fc25434a506dfb7)
/lib/classTextile.php: r1072 (52c3c2efdde23f52efdd0d7728c6986f)
/lib/txplib_html.php: r1002 (e8f4c2552170d92d5d353dae725c8bba)
/lib/txplib_db.php: r1064 (7dc8e32e097645d4340de2f809896521)
/lib/IXRClass.php: r765 (2efb0fb05b55c634072b0bae9af38bdd)
/lib/txplib_forms.php: r950 (74da2c67abe4786c353ea416c13656eb)
/publish/taghandlers.php: r1067 (1e9624108bdd485003629ae239619414)
/publish/atom.php: r1037 (30aea53e1c1fce877a10d2d9fa3ce90c)
/publish/log.php: r864 (c3d16d3dfe375819a19fcd62398e4b86)
/publish/comment.php: r1057 (7db181efda097083988e47eb00960915)
/publish/search.php: r884 (80f942f1dc301857c2fa9dcb16aa1246)
/publish/rss.php: r1037 (6848c34e120c99b6889b7f19c421b076)
/publish.php: r1073 (700374ed1a9cb57b5afc355ac977daad)
/index.php: r1076 (482a2e752575c2b7b620a86520b99303)
/css.php: r944 (df1c754417bdfb4e97a2c83ae5b454ee)
</code>
Offline
Re: File path error (after moving site)
Is it possible that the problem was caused by switching database names? I updated config.php to point to the new database, but perhaps there’s some part of Textpattern that is still looking for the old one… but I’d see an error then, wouldn’t I?
The only problems I see is that new articles aren’t given an article ID and the log isn’t updating. Commenting on existing articles still works. Obviously, you can’t comment on the newest article since it doesn’t have an article ID (breaking its permlink).
Offline
Re: File path error (after moving site)
You are running a not up-to-date installation of textpattern. The changelog of 4.0.3 says:
Improve mysql5-compatibility
Please update to 4.0.3. (The error only appears when a few different configuration issues come together. Though it has been fixed since December and went into the 4.0.3 release).
Offline
Re: File path error (after moving site)
I updated to 4.0.3 — the problem is still there. It says “Article posted”, but the first article I try to post doesn’t have an ID, and any article I try to post after that doesn’t show up anywhere at all.
Do you have some free time to look into this, Sencer? Unless you have any other ideas. I could give you access to my phpMyAdmin and Textpattern install. Only if you have some time to spare, of course. I’d really appreciate it. My site is pretty much dead in the water until I figure out what this problem is.
Edit —
I took at look at my Textpattern database, and the only difference about the first new post is that the ID is 0. Anything posted after that (that didn’t show up on the site) doesn’t show up in the database, either.
Last edited by ashground (2006-05-06 19:53:56)
Offline