Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2009-05-01 17:49:14

patience
New Member
Registered: 2009-04-29
Posts: 6

[resolved] warning: failed to open stream when files are available

After installing a theme and writing a first post, I realized that none of the links on my site worked, so I headed to the diagnostics tab, which I had previously ignored. It told me that my .htaccess file was missing, that my index.php was unavailable (which seemed unlikely to me?), and a few other longer file names were missing, which I can’t recall and didn’t screencap. It seems stupid in retrospect.

I checked my ftp, and the .htaccess and index.php files had gone missing since I installed (though I’m sure they were there when I installed yesterday), so I reuploaded both. The .htaccess file immediately disappeared again. When I went to refresh the diagnostics page, I got this set of errors:

“Warning: include(/home/content/p/a/t/patiencestj/html/textpattern/textpattern/lib/constants.php) [function.include]: failed to open stream: No such file or directory in /home/content/p/a/t/patiencestj/html/textpattern/index.php on line 24

Warning: include() [function.include]: Failed opening ‘/home/content/p/a/t/patiencestj/html/textpattern/textpattern/lib/constants.php’ for inclusion (include_path=’.:/usr/local/php5/lib/php’) in /home/content/p/a/t/patiencestj/html/textpattern/index.php on line 24

Warning: include(/home/content/p/a/t/patiencestj/html/textpattern/textpattern/lib/txplib_misc.php) [function.include]: failed to open stream: No such file or directory in /home/content/p/a/t/patiencestj/html/textpattern/index.php on line 25

Warning: include() [function.include]: Failed opening ‘/home/content/p/a/t/patiencestj/html/textpattern/textpattern/lib/txplib_misc.php’ for inclusion (include_path=’.:/usr/local/php5/lib/php’) in /home/content/p/a/t/patiencestj/html/textpattern/index.php on line 25

Fatal error: Call to undefined function txp_status_header() in /home/content/p/a/t/patiencestj/html/textpattern/index.php on line 28”

I checked the faq and this error should mean that I’m missing these files. However, those files are right where they should be. The other option was that my config file was wrong, but it looks just fine—same as yesterday, at least, and I’ve been able to run textpattern itself just fine for a day. My website’s main page is still displaying properly, but all links are erroring (which was what I was trying to fix in the first place).

This is my second install in three days because of a bug on my host’s end, and I’d really hate to have to do it a third time. On the other hand, I’d probably be really efficient at chnging the css I need to change at this point? Someone please tell me I won’t have to start over.

Offline

#2 2009-05-01 18:36:03

patience
New Member
Registered: 2009-04-29
Posts: 6

Re: [resolved] warning: failed to open stream when files are available

Thanks to the magic of firefox, I was able to get what was previously in the diagnostics box before I made textpattern crash. I hope this helps:

Textpattern version: 4.0.8 (r3085)
Last Update: 2009-04-30 01:04:15/2009-04-29 19:10:49
Document root: /var/chroot/home/content/p/a/t/patiencestj/html (/home/content/p/a/t/patiencestj/html)
$path_to_site: /home/content/p/a/t/patiencestj/html
Textpattern path: /home/content/p/a/t/patiencestj/html/textpattern
Permanent link mode: section_id_title
upload_tmp_dir: /tmp
Temporary directory path: /home/content/p/a/t/patiencestj/html/textpattern/tmp
Site URL: alternatelexicon.com
PHP version: 5.2.8
GD Image Library: version bundled (2.0.34 compatible), supported formats: GIF, JPG, PNG
Server Local Time: 2009-05-01 10:23:55
MySQL: 4.1.22-max-log
Locale: en_US.UTF-8
Server: Apache
PHP Server API: cgi-fcgi
RFC 2616 headers: 0
Server OS: Linux 2.6.18-92.1.10.el5PAE
Active plugins: mkp_version-4.0, zem_contact-0.6

Pre-flight check:
————————————
.htaccess file is missing
Missing files: /home/content/p/a/t/patiencestj/html/textpattern/../rpc/index.php, /home/content/p/a/t/patiencestj/html/textpattern/../rpc/TXP_RPCServer.php
Clean URL test failed.
————————————

Charset (default/config): latin1/utf8
character_set_client: utf8
character_set_connection: utf8
character_set_database: utf8
character_set_results: utf8
character_set_server: utf8
character_set_system: utf8
character_sets_dir: /usr/local/mysql-max-4.1.22-unknown-linux-gnu-x86_64-glibc23/share/mysql/charsets/
17 Tables: OK

PHP extensions: zip/1.8.11, libxml, xsl/0.1, xmlwriter/0.1, dom/20031129, xmlreader/0.1, xml, wddx, tokenizer/0.1, session, pcre, SimpleXML/0.1, SPL/0.2, PDO/1.0.4dev, soap, SQLite/2.0-dev, standard/5.2.8, Reflection/0.1, pspell, pdo_sqlite/1.0.1, pdo_mysql/1.0.2, mysqli/0.1, mysql/1.0, mhash, mcrypt, mbstring, json/1.2.1, iconv, hash/1.0, gettext, gd, ftp, filter/0.11.0, exif/1.4 $Id: exif.c,v 1.173.2.5.2.26 2008/08/03 12:11:13 jani Exp $, dba, date/5.2.8, curl, ctype, calendar, bcmath, zlib/1.1, openssl, cgi-fcgi

/home/content/p/a/t/patiencestj/html/index.php: r2885 (b2215d9fc23dc9aa88c92cdb7e4627f2)
/home/content/p/a/t/patiencestj/html/textpattern/css.php: r2772 (2a3cef700a253208e1140acfb27b7895)
/home/content/p/a/t/patiencestj/html/textpattern/include/txp_admin.php: r3013 (4f25d38445705e8135eafb47fe69c5e6)
/home/content/p/a/t/patiencestj/html/textpattern/include/txp_article.php: r3040 (d5e4b175b1f7eec4ca73a0362b943185)
/home/content/p/a/t/patiencestj/html/textpattern/include/txp_auth.php: r2856 (c6e17d38408910606b38ea6fbb8e97a8)
/home/content/p/a/t/patiencestj/html/textpattern/include/txp_category.php: r3072 (38cb7ab1fca56ec11e66bc7fcb4dcf1d)
/home/content/p/a/t/patiencestj/html/textpattern/include/txp_css.php: r3081 (4a0fc4c539e86aef5eb061d6bbaca5ac)
/home/content/p/a/t/patiencestj/html/textpattern/include/txp_diag.php: r3060 (0116e33dc27867bc7004f788da2fc610)
/home/content/p/a/t/patiencestj/html/textpattern/include/txp_discuss.php: r3071 (9b53af05cd0c1baa8fc99c07c99d3640)
/home/content/p/a/t/patiencestj/html/textpattern/include/txp_file.php: r3069 (0dfc75eaa35e524313a40812dfa82886)
/home/content/p/a/t/patiencestj/html/textpattern/include/txp_form.php: r3069 (3edf3408cd05fe8e82137735b1bce5c7)
/home/content/p/a/t/patiencestj/html/textpattern/include/txp_image.php: r3069 (4c9b3db31c3df354b9055725e9fb2091)
/home/content/p/a/t/patiencestj/html/textpattern/include/txp_import.php: r2812 (4401e213b8b68af2001734ac67b85f51)
/home/content/p/a/t/patiencestj/html/textpattern/include/txp_link.php: r3069 (0fffe5a42a06327c15064d54ddd5f478)
/home/content/p/a/t/patiencestj/html/textpattern/include/txp_list.php: r3069 (256b992e07a9d67acb4334b57fe64cd3)
/home/content/p/a/t/patiencestj/html/textpattern/include/txp_log.php: r3003 (942e39aade8d8ccf4232bfc46c6c9902)
/home/content/p/a/t/patiencestj/html/textpattern/include/txp_page.php: r3056 (d6aa9f8ad7605fbba705c96710cc1802)
/home/content/p/a/t/patiencestj/html/textpattern/include/txp_plugin.php: r3052 (dcd7dc1e43b1479965378dbb802d52e1)
/home/content/p/a/t/patiencestj/html/textpattern/include/txp_prefs.php: r2965 (55a6d6e2fa6994e16566c6e1b19d2e1d)
/home/content/p/a/t/patiencestj/html/textpattern/include/txp_preview.php: r1238 (c3e3678d655eb19ece72af65b763fd1b)
/home/content/p/a/t/patiencestj/html/textpattern/include/txp_section.php: r3072 (0034cc064a65b78900e164d118a0ef8b)
/home/content/p/a/t/patiencestj/html/textpattern/include/txp_tag.php: r2868 (3ac47c5e472b54b5bc27909581120167)
/home/content/p/a/t/patiencestj/html/textpattern/index.php: r3085 (d65f4b0d862d74000e2bcc37260c706f)
/home/content/p/a/t/patiencestj/html/textpattern/lib/IXRClass.php: r2932 (a14c1fa6441a4faf1d097d397bf61841)
/home/content/p/a/t/patiencestj/html/textpattern/lib/admin_config.php: r2812 (b4bb30f62aab58b164ea6c3e6c786b9c)
/home/content/p/a/t/patiencestj/html/textpattern/lib/class.thumb.php: r3041 (45ed990e57ba5daebe11f274b32626c6)
/home/content/p/a/t/patiencestj/html/textpattern/lib/classTextile.php: r2812 (76416becc5a4789efbc543c4681041c3)
/home/content/p/a/t/patiencestj/html/textpattern/lib/constants.php: r3038 (f87766c302fa9275024a06b2351a2411)
/home/content/p/a/t/patiencestj/html/textpattern/lib/taglib.php: r2868 (b804c3222d47e5b24c16bd3731b5eac9)
/home/content/p/a/t/patiencestj/html/textpattern/lib/txplib_admin.php: r3047 (4adad7711c24f49ecd26b24d80d27884)
/home/content/p/a/t/patiencestj/html/textpattern/lib/txplib_db.php: r3029 (ae35ec3566cfab83178eb0bb6cc6adf5)
/home/content/p/a/t/patiencestj/html/textpattern/lib/txplib_forms.php: r3079 (79a5b4411412a41feb64fea544ef1eb2)
/home/content/p/a/t/patiencestj/html/textpattern/lib/txplib_head.php: r3004 (813dd318366c7f823e5c1202e253c7e9)
/home/content/p/a/t/patiencestj/html/textpattern/lib/txplib_html.php: r2981 (1b048fdbe1f6fec8f052274c2b2c0736)
/home/content/p/a/t/patiencestj/html/textpattern/lib/txplib_misc.php: r3074 (804959a9253b0ad9b472ca8d55965382)
/home/content/p/a/t/patiencestj/html/textpattern/lib/txplib_update.php: r2812 (31a52cb8894ab8d0c81c9c8905d8ab60)
/home/content/p/a/t/patiencestj/html/textpattern/lib/txplib_wrapper.php: r2931 (81f3780d9972c5fadd478a13a7204d2a)
/home/content/p/a/t/patiencestj/html/textpattern/publish.php: r3050 (8c4ad513ead711cf336d17fb7605ce63)
/home/content/p/a/t/patiencestj/html/textpattern/publish/atom.php: r3029 (2b7568a730855c05eb275125069c17cb)
/home/content/p/a/t/patiencestj/html/textpattern/publish/comment.php: r3011 (18ab83ecddef7499afdb3ff399973113)
/home/content/p/a/t/patiencestj/html/textpattern/publish/log.php: r2937 (40cfffaca8aa34c71ab0ad7434a95767)
/home/content/p/a/t/patiencestj/html/textpattern/publish/rss.php: r3029 (240cef01dd4aa72d32ebf05baa56ccfe)
/home/content/p/a/t/patiencestj/html/textpattern/publish/search.php: r2812 (e5b4f62da431aec72118414ed2bcd2a2)
/home/content/p/a/t/patiencestj/html/textpattern/publish/taghandlers.php: r3078 (bfb48cb4ffff860c7b2fc7f635988ec5)
/home/content/p/a/t/patiencestj/html/textpattern/update/_to_1.0.0.php: r3047 (f12fd6e63f344f1802c1f17f854b2ad7)
/home/content/p/a/t/patiencestj/html/textpattern/update/_to_4.0.2.php: r3047 (cdd0e5fe346c0702eb414f42f9cfbcc6)
/home/content/p/a/t/patiencestj/html/textpattern/update/_to_4.0.3.php: r3047 (ebef8def3b71b07aa01929f335b7afc6)
/home/content/p/a/t/patiencestj/html/textpattern/update/_to_4.0.4.php: r3047 (8fd20a90592394a65fbd9b0d6c6a388c)
/home/content/p/a/t/patiencestj/html/textpattern/update/_to_4.0.5.php: r2894 (6c60b97917192d4f4c4aa4ee377b6329)
/home/content/p/a/t/patiencestj/html/textpattern/update/_to_4.0.6.php: r3047 (d2f218d57ba0faf018df88825c225e68)
/home/content/p/a/t/patiencestj/html/textpattern/update/_to_4.0.7.php: r3014 (507a199ad584314f9131152eac028433)
/home/content/p/a/t/patiencestj/html/textpattern/update/_to_4.0.8.php: r3057 (836b291ed122ced3759b5909c7d442d4)
/home/content/p/a/t/patiencestj/html/textpattern/update/_update.php: r3085 (c9332d78f697754fab18fae5cfea481f)

Offline

#3 2009-05-01 20:09:53

els
Moderator
From: The Netherlands
Registered: 2004-06-06
Posts: 7,458

Re: [resolved] warning: failed to open stream when files are available

It looks like you have a ‘textpattern’ folder inside your ‘textpattern’ folder. Not according to your diagnostics, but according to the warnings. It’s probably best to re-install, but if you really hate that you can also try to move the files to where they belong. The folders and files listed here should be in /path/to/html/. If your intention was to install it in a subdirectory of your site (site.com/subdir/) then place everything in /html/subdir/. In that case you should enter site.com/subdir as your site URL in Admin > preferences. It’s best not to name that directory ‘textpattern’ because that name is already in use.

Last edited by els (2009-05-01 20:11:23)

Offline

#4 2009-05-01 23:56:58

patience
New Member
Registered: 2009-04-29
Posts: 6

Re: [resolved] warning: failed to open stream when files are available

I’m glad you can read the warnings, but that’s not the case—textpattern was installed onto the base directory. A reinstall it is, then. I assume I’ll need to wipe everything I have already install off first?

Offline

#5 2009-05-02 00:00:30

patience
New Member
Registered: 2009-04-29
Posts: 6

Re: [resolved] warning: failed to open stream when files are available

I do see, now that I’m looking, that there are documented issues with my host (godaddy), so it might all lead back to this—I know exactly why I had to reinstall the first time, and it was a godaddy issue. Gross. Well, I’m getting really efficient at this.

Offline

#6 2009-05-02 09:12:03

els
Moderator
From: The Netherlands
Registered: 2004-06-06
Posts: 7,458

Re: [resolved] warning: failed to open stream when files are available

patience wrote:

I’m glad you can read the warnings, but that’s not the case—textpattern was installed onto the base directory.

Well, it seems to think otherwise: /home/content/p/a/t/patiencestj/html/textpattern/textpattern/lib/constants.php

A reinstall it is, then. I assume I’ll need to wipe everything I have already install off first?

Yes, that would be best.

Offline

Board footer

Powered by FluxBB