Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2009-03-09 21:45:53

cuervo
New Member
Registered: 2009-03-09
Posts: 8

[resolved] [Solved] Invalid CRT Parameter Detected in txp_prefs.php

Though not new to web design and construction, I am new to CMS. I have installed TextPattern without trouble, according to the messages I received during the installation. But, when I direct my browser to TextPattern, these messages appear above the preferences in the ‘Basic’ tab:

Warning: Invalid CRT parameters detected in C:\Apache2\htdocs\textpattern\textpattern\include\txp_prefs.php on line 358

Warning: Invalid CRT parameters detected in C:\Apache2\htdocs\textpattern\textpattern\include\txp_prefs.php on line 360

There are 25 such lines, all referencing one of the same two lines in the PHP file. I have searched the forum, How-To’s and Documentation without finding any reference to this error message. Indeed, I have searched the Internet without finding anything I thought was relevant to this error message.

Can anyone shed some light here? Thanks for your time.

Offline

#2 2009-03-09 21:48:03

cuervo
New Member
Registered: 2009-03-09
Posts: 8

Re: [resolved] [Solved] Invalid CRT Parameter Detected in txp_prefs.php

I meant to include the two lines from txp_prefs.php:

Line 358 $daynum = is_numeric(strftime(‘%e’)) ? ‘%e’ : ‘%d’;

Line 360 $daynumord = is_numeric(substr(trim(strftime(‘%Oe’)), 0, 1)) ? ‘%Oe’ : $daynum;

Offline

#3 2009-03-10 05:39:47

wet
Developer Emeritus
From: Schoerfling, Austria
Registered: 2005-06-06
Posts: 3,330
Website Mastodon

Re: [resolved] [Solved] Invalid CRT Parameter Detected in txp_prefs.php

Please post the output from the “Diagnostics” tab.

Offline

#4 2009-03-10 13:02:20

cuervo
New Member
Registered: 2009-03-09
Posts: 8

Re: [resolved] [Solved] Invalid CRT Parameter Detected in txp_prefs.php

OK, here it is:

Textpattern version: 4.0.8 (r3085)
Last Update: 2009-03-08 02:51:49/2009-01-23 19:20:55
Document root: C:/Apache2/htdocs (C:\Apache2\htdocs)
$path_to_site: C:\Apache2\htdocs\textpattern
Textpattern path: C:\Apache2\htdocs\textpattern\textpattern
Permanent link mode: section_id_title
Temporary directory path: C:\Apache2\htdocs\textpattern\textpattern\tmp
Site URL: localhost
PHP version: 5.2.3
GD Image Library: unavailable
Server Local Time: 2009-03-10 17:55:37
MySQL: 5.0.67-community-nt
Locale: English_United States.1252
Server: Apache/2.2.2 (Win32)
PHP Server API: cgi-fcgi
RFC 2616 headers: 0
Server OS: Windows NT 5.1

Pre-flight check:
————————————
C:\Apache2\htdocs\textpattern\textpattern\setup\ still exists
Site URL preference might be incorrect: localhost/textpattern
Clean URL test failed.
————————————

.htaccess file contents:
————————————
#DirectoryIndex index.php index.html

#Options +FollowSymLinks
#Options -Indexes
<IfModule mod_rewrite.c> RewriteEngine On #RewriteBase /relative/web/path/

RewriteCond %{REQUEST_FILENAME} -f [OR] RewriteCond %{REQUEST_FILENAME} -d RewriteRule ^(.+) – [PT,L]

RewriteCond %{REQUEST_URI} !=/favicon.ico RewriteRule ^(.*) index.php

RewriteCond %{HTTP:Authorization} !^$ RewriteRule .* – [E=REMOTE_USER:%{HTTP:Authorization}]
</IfModule>

#php_value register_globals 0

————————————

Charset (default/config): latin1/utf8
character_set_client: utf8
character_set_connection: utf8
character_set_database: latin1
character_set_filesystem: binary
character_set_results: utf8
character_set_server: latin1
character_set_system: utf8
character_sets_dir: C:\MySQL\MySQL Server 5.0\share\charsets\
17 Tables: OK

PHP extensions: Zend Core/2.0.1, com_dotnet/0.1, ctype, session, filter/0.11.0, hash/1.0, iconv, json/1.2.1, openssl, pcre, Reflection/0.1, date/5.2.3, libxml, standard/5.2.3, zlib/1.1, SimpleXML/0.1, dom/20031129, SPL/0.2, PDO/1.0.4dev, wddx, xml, xmlreader/0.1, xmlwriter/0.1, cgi-fcgi, xsl/0.1, soap, pdo_informix/1.0.1, pdo_ibm/1.1.0, sockets, ibm_db2/1.6.0, mysql/1.0, Zend Optimizer, Zend Debugger

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

Offline

#5 2009-03-11 09:46:57

wet
Developer Emeritus
From: Schoerfling, Austria
Registered: 2005-06-06
Posts: 3,330
Website Mastodon

Re: [resolved] [Solved] Invalid CRT Parameter Detected in txp_prefs.php

Please amend the two offending lines as indicated below and report back on the results:

Line 358:

$daynum = is_numeric(@strftime('%e')) ? '%e' : '%d';

Line 360:

$daynumord = is_numeric(substr(trim(@strftime('%Oe')), 0, 1)) ? '%Oe' : $daynum;

Offline

#6 2009-03-11 13:15:33

cuervo
New Member
Registered: 2009-03-09
Posts: 8

Re: [resolved] [Solved] Invalid CRT Parameter Detected in txp_prefs.php

wet,

That got rid of the error messages. Thanks so much for taking the time to help me with this.

Can you give me an idea of what was going on? I am new to PHP. And, what is a CRT parameter?

Thanks again,

cuervo

Last edited by cuervo (2009-03-11 14:28:14)

Offline

#7 2009-03-12 08:14:50

wet
Developer Emeritus
From: Schoerfling, Austria
Registered: 2005-06-06
Posts: 3,330
Website Mastodon

Re: [resolved] [Solved] Invalid CRT Parameter Detected in txp_prefs.php

cuervo wrote:

Can you give me an idea of what was going on?

PHP passes the format strings %e and %Oe it receives for strftime() on to the underlying C language runtime library which in turn relies on the operating system to do the actual conversion from date values to a human-readable string.

Obviously, operating systems differ in their capabilities in this field, so you received a warning that this particular format strings weren’t understood. We expect that behaviour and use %d as a fallback in that case, but the warnings appeared nevertheless (Although I have never come across them anywhere else…)

By prefixing the strftime() call with @ PHP is instructed to suppress the output of any warnings.

And, what is a CRT parameter?

A parameter passed into one of the functions which constitute the C Language Runtime Library (CRT)

Offline

#8 2009-03-12 12:38:20

cuervo
New Member
Registered: 2009-03-09
Posts: 8

Re: [resolved] [Solved] Invalid CRT Parameter Detected in txp_prefs.php

wet,

Very interesting. You folks clearly know your stuff. Thanks for the info.

cuervo

Offline

#9 2009-03-20 15:58:30

azinck
New Member
Registered: 2009-03-20
Posts: 1

Re: [resolved] [Solved] Invalid CRT Parameter Detected in txp_prefs.php

FWIW, I just installed Textpattern for the first time today to give it a try and saw the same errors cuervo saw.

Last edited by azinck (2009-03-20 15:58:47)

Offline

Board footer

Powered by FluxBB