' character causing entry of FAQs problem

In this board you can talk about general questions about phpMyFAQ

Moderator: Thorsten

jhartstein
Posts: 14
Joined: Tue Apr 18, 2006 4:01 pm

' character causing entry of FAQs problem

Post by jhartstein »

I'm using 1.5.8 with IE and when I try to add a FAQ entry with a ' in it, it doesn't include anything after the '.

So I put the phrase "I can't open the file" in the question field, then submit, and if I look at the entry afterward it shows "I can" then nothing else. It looks like the program is filtering the ' out as if it were code and stopping at that point. This is not in the body of the faq but in the header or "theme" field of the submit form. There is nothing then in the answer field at all since that wasn't even parsed.
matteo
Posts: 572
Joined: Sun Nov 20, 2005 6:53 pm
Location: Italy

Unable to replicate the issue

Post by matteo »

Hi,
I've just tested these entry points below:
  • Add content;
  • Ask question;
  • Open questions;
as an anonymous user and:
  • Create Entry;
  • Approve Records;
as logged author, using the text "I can't open the file" both for theme (if applicable) and content.
No issues here: can you post your PMF server configuration? Log in as the admin and report here the info printed by clicking on the "Startpage", in the menu on your left?
phpMyFAQ QA / Developer
Amazon.co.uk Wishlist
jhartstein
Posts: 14
Joined: Tue Apr 18, 2006 4:01 pm

Here's the info

Post by jhartstein »

phpMyFAQ Version
phpMyFAQ 1.5.8
Server Software
Apache/2.0.53 (Unix) mod_perl/1.99_16 Perl/v5.8.5 mod_ssl/2.0.53 OpenSSL/0.9.7e PHP/4.4.0
PHP Version
PHP 4.4.0
Register Globals
off
Safe Mode
off
Database Client Version
4.1.10
Database Server Version
4.1.10-log
Webserver Interface
APACHE2HANDLER


also config area settings:

Enable automatic content negotiation
active? yes


FAQ Version
1.5.8


Link the attachments below the entries?
active? yes

use Tracking?
active? yes

use Adminlog?
active? yes

Do you want the IP to be checked when checking the UINs in admin.php?
active? no

Number of displayed topics per page
10

Number of news articles
3



Should the template engine parse PHP code? (default: disabled)
active? no

Activate mod_rewrite support? (default: disabled)
active? no

Do you want to enable LDAP support? (default: disabled)
active? no
Thorsten
Posts: 15834
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Post by Thorsten »

Hi,

can you please post a phpinfo() page from your web host?

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
jhartstein
Posts: 14
Joined: Tue Apr 18, 2006 4:01 pm

Here's everything for php

Post by jhartstein »

PHP Version 4.4.0

System Linux intranet 2.6.9-5.ELsmp #1 SMP Wed Jan 5 19:30:39 EST 2005 i686
Build Date Oct 17 2005 15:05:55
Configure Command './configure' '--with-apxs2=/usr/local/apache2/bin/apxs' '--with-mysql=/usr/local/mysql' '--with-mysqli=/usr/local/mysql/bin/mysql_config' '--with-mysql-sock=/tmp/mysql.sock' '--with-sqlite' '--enable-sqlite-utf8' '--with-zlib' '--with-zlib-dir' '--with-bz2' '--with-gd' '--enable-gd' '--enable-gd-native-ttf' '--with-jpeg-dir=/usr/local' '--with-png-dir=/usr/local' '--with-ttf' '--with-freetype-dir=/usr/local' '--with-iconv=/usr/local' '--with-curl=/usr/local' '--enable-track-vars' '--with-gettext' '--with-config-file-path=/usr/local/apache2/conf' '--enable-trans-id' '--enable-ftp' '--with-cpdflib=/usr/local' '--enable-mbstring' '--with-openssl=/usr/local' '--with-magickwand=/usr/local'
Server API Apache 2.0 Handler
Virtual Directory Support disabled
Configuration File (php.ini) Path /usr/local/apache2/conf/php.ini
PHP API 20020918
PHP Extension 20020429
Zend Extension 20050606
Debug Build no
Zend Memory Manager enabled
Thread Safety disabled
Registered PHP Streams php, http, ftp, https, ftps, compress.bzip2, compress.zlib

Zend logo This program makes use of the Zend Scripting Language Engine:
Zend Engine v1.3.0, Copyright (c) 1998-2004 Zend Technologies

PHP Credits
Configuration
PHP Core
Directive Local Value Master Value
allow_call_time_pass_reference On On
allow_url_fopen On On
always_populate_raw_post_data Off Off
arg_separator.input & &
arg_separator.output & &
asp_tags Off Off
auto_append_file no value no value
auto_prepend_file no value no value
browscap no value no value
default_charset no value no value
default_mimetype text/html text/html
define_syslog_variables Off Off
disable_classes no value no value
disable_functions no value no value
display_errors On On
display_startup_errors Off Off
doc_root no value no value
docref_ext no value no value
docref_root no value no value
enable_dl On On
error_append_string no value no value
error_log no value no value
error_prepend_string no value no value
error_reporting 2039 2039
expose_php On On
extension_dir ./ ./
file_uploads On On
gpc_order GPC GPC
highlight.bg #FFFFFF #FFFFFF
highlight.comment #FF8000 #FF8000
highlight.default #0000BB #0000BB
highlight.html #000000 #000000
highlight.keyword #007700 #007700
highlight.string #DD0000 #DD0000
html_errors On On
ignore_repeated_errors Off Off
ignore_repeated_source Off Off
ignore_user_abort Off Off
implicit_flush Off Off
include_path .:/usr/local/lib/php .:/usr/local/lib/php
log_errors Off Off
log_errors_max_len 1024 1024
magic_quotes_gpc On On
magic_quotes_runtime Off Off
magic_quotes_sybase Off Off
max_execution_time 30 30
max_input_time 60 60
open_basedir no value no value
output_buffering no value no value
output_handler no value no value
post_max_size 8M 8M
precision 12 12
register_argc_argv On On
register_globals Off Off
report_memleaks On On
safe_mode Off Off
safe_mode_exec_dir no value no value
safe_mode_gid Off Off
safe_mode_include_dir no value no value
sendmail_from no value no value
sendmail_path /usr/sbin/sendmail -t -i /usr/sbin/sendmail -t -i
serialize_precision 100 100
short_open_tag On On
SMTP localhost localhost
smtp_port 25 25
sql.safe_mode Off Off
track_errors Off Off
unserialize_callback_func no value no value
upload_max_filesize 2M 2M
upload_tmp_dir no value no value
user_dir no value no value
variables_order EGPCS EGPCS
xmlrpc_error_number 0 0
xmlrpc_errors Off Off
y2k_compliance On On

apache2handler
Apache Version Apache/2.0.53 (Unix) mod_perl/1.99_16 Perl/v5.8.5 mod_ssl/2.0.53 OpenSSL/0.9.7e PHP/4.4.0
Apache API Version 20020903
Server Administrator ehernandez@cliquecom.com
Hostname:Port 10.180.0.16:80
User/Group mysql(501)/501
Max Requests Per Child: 0 - Keep Alive: on - Max Per Connection: 100
Timeouts Connection: 300 - Keep-Alive: 15
Virtual Server No
Server Root /usr/local/apache2
Loaded Modules core mod_access mod_auth mod_auth_digest mod_include mod_deflate mod_log_config mod_env mod_headers mod_setenvif mod_ssl prefork http_core mod_mime mod_status mod_autoindex mod_asis mod_cgi mod_negotiation mod_dir mod_imap mod_actions mod_userdir mod_alias mod_rewrite mod_so sapi_apache2 mod_perl

Directive Local Value Master Value
engine 1 1
last_modified 0 0
xbithack 0 0

Apache Environment
Variable Value
HTTP_HOST 10.180.0.16
HTTP_USER_AGENT Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.2) Gecko/20060308 Firefox/1.5.0.2
HTTP_ACCEPT text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
HTTP_ACCEPT_LANGUAGE en-us,en;q=0.5
HTTP_ACCEPT_ENCODING gzip,deflate
HTTP_ACCEPT_CHARSET ISO-8859-1,utf-8;q=0.7,*;q=0.7
HTTP_KEEP_ALIVE 300
HTTP_CONNECTION keep-alive
HTTP_REFERER http://10.180.0.16/phpMyAdmin/main.php? ... general_ci
HTTP_COOKIE pma_lang=en-utf-8; pma_theme=original; pma_collation_connection=utf8_general_ci; pma_charset=iso-8859-1; phpbb2mysql_data=a%3A2%3A%7Bs%3A11%3A%22autologinid%22%3Bs%3A0%3A%22%22%3Bs%3A6%3A%22userid%22%3Bi%3A-1%3B%7D; lang=english
PATH /usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/bin:/bin:/usr/bin:/usr/X11R6/bin:/home/housert/bin
SERVER_SIGNATURE <address>Apache/2.0.53 (Unix) mod_perl/1.99_16 Perl/v5.8.5 mod_ssl/2.0.53 OpenSSL/0.9.7e PHP/4.4.0 Server at 10.180.0.16 Port 80</address>
SERVER_SOFTWARE Apache/2.0.53 (Unix) mod_perl/1.99_16 Perl/v5.8.5 mod_ssl/2.0.53 OpenSSL/0.9.7e PHP/4.4.0
SERVER_NAME 10.180.0.16
SERVER_ADDR 10.180.0.16
SERVER_PORT 80
REMOTE_ADDR 10.180.2.237
DOCUMENT_ROOT /home/www
SERVER_ADMIN ehernandez@cliquecom.com
SCRIPT_FILENAME /home/www/phpMyAdmin/phpinfo.php
REMOTE_PORT 1245
GATEWAY_INTERFACE CGI/1.1
SERVER_PROTOCOL HTTP/1.1
REQUEST_METHOD GET
QUERY_STRING lang=en-utf-8&server=1&collation_connection=utf8_general_ci
REQUEST_URI /phpMyAdmin/phpinfo.php?lang=en-utf-8&server=1&collation_connection=utf8_general_ci
SCRIPT_NAME /phpMyAdmin/phpinfo.php

HTTP Headers Information
HTTP Request Headers
HTTP Request GET /phpMyAdmin/phpinfo.php?lang=en-utf-8&server=1&collation_connection=utf8_general_ci HTTP/1.1
Host 10.180.0.16
User-Agent Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.2) Gecko/20060308 Firefox/1.5.0.2
Accept text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
Accept-Language en-us,en;q=0.5
Accept-Encoding gzip,deflate
Accept-Charset ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive 300
Connection keep-alive
Referer http://10.180.0.16/phpMyAdmin/main.php? ... general_ci
Cookie pma_lang=en-utf-8; pma_theme=original; pma_collation_connection=utf8_general_ci; pma_charset=iso-8859-1; phpbb2mysql_data=a%3A2%3A%7Bs%3A11%3A%22autologinid%22%3Bs%3A0%3A%22%22%3Bs%3A6%3A%22userid%22%3Bi%3A-1%3B%7D; lang=english
Authorization Basic d2ViOmludHJhbmV0MTgxMg==
HTTP Response Headers
X-Powered-By PHP/4.4.0
Keep-Alive timeout=15, max=78
Connection Keep-Alive
Transfer-Encoding chunked
Content-Type text/html

bz2
BZip2 Support Enabled
BZip2 Version 1.0.2, 30-Dec-2001

cpdf
CPDF Support enabled
Version 2.02-r1-2

ctype
ctype functions enabled

curl
CURL support enabled
CURL Information libcurl/7.13.0 OpenSSL/0.9.7e zlib/1.2.1.2 libidn/0.5.6

ftp
FTP support enabled

gd
GD Support enabled
GD Version bundled (2.0.28 compatible)
FreeType Support enabled
FreeType Linkage with freetype
GIF Read Support enabled
GIF Create Support enabled
JPG Support enabled
PNG Support enabled
WBMP Support enabled
XBM Support enabled

gettext
GetText Support enabled

iconv
iconv support enabled
iconv implementation libiconv
iconv library version 1.9

Directive Local Value Master Value
iconv.input_encoding ISO-8859-1 ISO-8859-1
iconv.internal_encoding ISO-8859-1 ISO-8859-1
iconv.output_encoding ISO-8859-1 ISO-8859-1

mbstring
Multibyte Support enabled
Japanese support enabled
Simplified chinese support enabled
Traditional chinese support enabled
Korean support enabled
Russian support enabled
Multibyte (japanese) regex support enabled

mbstring extension makes use of "streamable kanji code filter and converter", which is distributed under the GNU Lesser General Public License version 2.1.

Directive Local Value Master Value
mbstring.detect_order no value no value
mbstring.encoding_translation Off Off
mbstring.func_overload 0 0
mbstring.http_input pass pass
mbstring.http_output pass pass
mbstring.internal_encoding no value no value
mbstring.language neutral neutral
mbstring.substitute_character no value no value

mysql
MySQL Support enabled
Active Persistent Links 0
Active Links 1
Client API version 4.1.10
MYSQL_MODULE_TYPE external
MYSQL_SOCKET /tmp/mysql.sock
MYSQL_INCLUDE -I/usr/local/mysql/include/mysql
MYSQL_LIBS -L/usr/local/mysql/lib/mysql -lmysqlclient

Directive Local Value Master Value
mysql.allow_persistent On On
mysql.connect_timeout 60 60
mysql.default_host no value no value
mysql.default_password no value no value
mysql.default_port no value no value
mysql.default_socket /tmp/mysql.sock /tmp/mysql.sock
mysql.default_user no value no value
mysql.max_links Unlimited Unlimited
mysql.max_persistent Unlimited Unlimited
mysql.trace_mode Off Off

openssl
OpenSSL support enabled
OpenSSL Version OpenSSL 0.9.7e 25 Oct 2004

overload
User-Space Object Overloading Support enabled

pcre
PCRE (Perl Compatible Regular Expressions) Support enabled
PCRE Library Version 5.0 13-Sep-2004

posix
Revision $Revision: 1.51.2.4 $

session
Session Support enabled
Registered save handlers files user

Directive Local Value Master Value
session.auto_start Off Off
session.bug_compat_42 On On
session.bug_compat_warn On On
session.cache_expire 180 180
session.cache_limiter nocache nocache
session.cookie_domain no value no value
session.cookie_lifetime 0 0
session.cookie_path / /
session.cookie_secure Off Off
session.entropy_file no value no value
session.entropy_length 0 0
session.gc_divisor 100 100
session.gc_maxlifetime 1440 1440
session.gc_probability 1 1
session.name PHPSESSID PHPSESSID
session.referer_check no value no value
session.save_handler files files
session.save_path /tmp /tmp
session.serialize_handler php php
session.use_cookies On On
session.use_only_cookies Off Off
session.use_trans_sid Off Off

standard
Regex Library Bundled library enabled
Dynamic Library Support enabled
Path to sendmail /usr/sbin/sendmail -t -i

Directive Local Value Master Value
assert.active 1 1
assert.bail 0 0
assert.callback no value no value
assert.quiet_eval 0 0
assert.warning 1 1
auto_detect_line_endings 0 0
default_socket_timeout 60 60
safe_mode_allowed_env_vars PHP_ PHP_
safe_mode_protected_env_vars LD_LIBRARY_PATH LD_LIBRARY_PATH
url_rewriter.tags a=href,area=href,frame=src,input=src,form=,fieldset= a=href,area=href,frame=src,input=src,form=,fieldset=
user_agent no value no value

tokenizer
Tokenizer Support enabled

xml
XML Support active
XML Namespace Support active
EXPAT Version 1.95.6

zlib
ZLib Support enabled
Compiled Version 1.2.1.2
Linked Version 1.2.1.2

Directive Local Value Master Value
zlib.output_compression Off Off
zlib.output_compression_level -1 -1
zlib.output_handler no value no value

Additional Modules
Module Name

Environment
Variable Value
HOSTNAME intranet
SHELL /bin/bash
TERM vt100
HISTSIZE 1000
SSH_CLIENT ::ffff:10.180.5.187 2605 22
SSH_TTY /dev/pts/1
USER housert
LD_LIBRARY_PATH /usr/local/apache2/lib:
LS_COLORS no=00:fi=00:di=01;34:ln=01;36:pi=40;33:so=01;35:bd=40;33;01:cd=40;33;01:or=01;05;37;41:mi=01;05;37;41:ex=01;32:*.cmd=01;32:*.exe=01;32:*.com=01;32:*.btm=01;32:*.bat=01;32:*.sh=01;32:*.csh=01;32:*.tar=01;31:*.tgz=01;31:*.arj=01;31:*.taz=01;31:*.lzh=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.gz=01;31:*.bz2=01;31:*.bz=01;31:*.tz=01;31:*.rpm=01;31:*.cpio=01;31:*.jpg=01;35:*.gif=01;35:*.bmp=01;35:*.xbm=01;35:*.xpm=01;35:*.png=01;35:*.tif=01;35:
PATH /usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/bin:/bin:/usr/bin:/usr/X11R6/bin:/home/housert/bin
MAIL /var/spool/mail/housert
PWD /etc/init.d
INPUTRC /etc/inputrc
LANG en_US.UTF-8
SSH_ASKPASS /usr/libexec/openssh/gnome-ssh-askpass
HOME /root
SHLVL 4
LOGNAME housert
SSH_CONNECTION ::ffff:10.180.5.187 2605 ::ffff:10.180.0.16 22
LESSOPEN |/usr/bin/lesspipe.sh %s
G_BROKEN_FILENAMES 1
_ /usr/local/apache2/bin/httpd

PHP Variables
Variable Value
PHP_SELF /phpMyAdmin/phpinfo.php
PHP_AUTH_USER web
PHP_AUTH_PW intranet1812
_REQUEST["lang"] english
_REQUEST["server"] 1
_REQUEST["collation_connection"] utf8_general_ci
_REQUEST["pma_lang"] en-utf-8
_REQUEST["pma_theme"] original
_REQUEST["pma_collation_connection"] utf8_general_ci
_REQUEST["pma_charset"] iso-8859-1
_REQUEST["phpbb2mysql_data"] a:2:{s:11:\"autologinid\";s:0:\"\";s:6:\"userid\";i:-1;}
_GET["lang"] en-utf-8
_GET["server"] 1
_GET["collation_connection"] utf8_general_ci
_COOKIE["pma_lang"] en-utf-8
_COOKIE["pma_theme"] original
_COOKIE["pma_collation_connection"] utf8_general_ci
_COOKIE["pma_charset"] iso-8859-1
_COOKIE["phpbb2mysql_data"] a:2:{s:11:\"autologinid\";s:0:\"\";s:6:\"userid\";i:-1;}
_COOKIE["lang"] english
_SERVER["HTTP_HOST"] 10.180.0.16
_SERVER["HTTP_USER_AGENT"] Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.2) Gecko/20060308 Firefox/1.5.0.2
_SERVER["HTTP_ACCEPT"] text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
_SERVER["HTTP_ACCEPT_LANGUAGE"] en-us,en;q=0.5
_SERVER["HTTP_ACCEPT_ENCODING"] gzip,deflate
_SERVER["HTTP_ACCEPT_CHARSET"] ISO-8859-1,utf-8;q=0.7,*;q=0.7
_SERVER["HTTP_KEEP_ALIVE"] 300
_SERVER["HTTP_CONNECTION"] keep-alive
_SERVER["HTTP_REFERER"] http://10.180.0.16/phpMyAdmin/main.php? ... general_ci
_SERVER["HTTP_COOKIE"] pma_lang=en-utf-8; pma_theme=original; pma_collation_connection=utf8_general_ci; pma_charset=iso-8859-1; phpbb2mysql_data=a%3A2%3A%7Bs%3A11%3A%22autologinid%22%3Bs%3A0%3A%22%22%3Bs%3A6%3A%22userid%22%3Bi%3A-1%3B%7D; lang=english
_SERVER["PATH"] /usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/bin:/bin:/usr/bin:/usr/X11R6/bin:/home/housert/bin
_SERVER["SERVER_SIGNATURE"] <address>Apache/2.0.53 (Unix) mod_perl/1.99_16 Perl/v5.8.5 mod_ssl/2.0.53 OpenSSL/0.9.7e PHP/4.4.0 Server at 10.180.0.16 Port 80</address>
_SERVER["SERVER_SOFTWARE"] Apache/2.0.53 (Unix) mod_perl/1.99_16 Perl/v5.8.5 mod_ssl/2.0.53 OpenSSL/0.9.7e PHP/4.4.0
_SERVER["SERVER_NAME"] 10.180.0.16
_SERVER["SERVER_ADDR"] 10.180.0.16
_SERVER["SERVER_PORT"] 80
_SERVER["REMOTE_ADDR"] 10.180.2.237
_SERVER["DOCUMENT_ROOT"] /home/www
_SERVER["SERVER_ADMIN"] ehernandez@cliquecom.com
_SERVER["SCRIPT_FILENAME"] /home/www/phpMyAdmin/phpinfo.php
_SERVER["REMOTE_PORT"] 1245
_SERVER["GATEWAY_INTERFACE"] CGI/1.1
_SERVER["SERVER_PROTOCOL"] HTTP/1.1
_SERVER["REQUEST_METHOD"] GET
_SERVER["QUERY_STRING"] lang=en-utf-8&server=1&collation_connection=utf8_general_ci
_SERVER["REQUEST_URI"] /phpMyAdmin/phpinfo.php?lang=en-utf-8&server=1&collation_connection=utf8_general_ci
_SERVER["SCRIPT_NAME"] /phpMyAdmin/phpinfo.php
_SERVER["PHP_SELF"] /phpMyAdmin/phpinfo.php
_SERVER["PATH_TRANSLATED"] /home/www/phpMyAdmin/phpinfo.php
_SERVER["PHP_AUTH_USER"] web
_SERVER["PHP_AUTH_PW"] intranet1812
_SERVER["argv"]

Array
(
[0] => lang=en-utf-8&server=1&collation_connection=utf8_general_ci
)

_SERVER["argc"] 1
_ENV["HOSTNAME"] intranet
_ENV["SHELL"] /bin/bash
_ENV["TERM"] vt100
_ENV["HISTSIZE"] 1000
_ENV["SSH_CLIENT"] ::ffff:10.180.5.187 2605 22
_ENV["SSH_TTY"] /dev/pts/1
_ENV["USER"] housert
_ENV["LD_LIBRARY_PATH"] /usr/local/apache2/lib:
_ENV["LS_COLORS"] no=00:fi=00:di=01;34:ln=01;36:pi=40;33:so=01;35:bd=40;33;01:cd=40;33;01:or=01;05;37;41:mi=01;05;37;41:ex=01;32:*.cmd=01;32:*.exe=01;32:*.com=01;32:*.btm=01;32:*.bat=01;32:*.sh=01;32:*.csh=01;32:*.tar=01;31:*.tgz=01;31:*.arj=01;31:*.taz=01;31:*.lzh=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.gz=01;31:*.bz2=01;31:*.bz=01;31:*.tz=01;31:*.rpm=01;31:*.cpio=01;31:*.jpg=01;35:*.gif=01;35:*.bmp=01;35:*.xbm=01;35:*.xpm=01;35:*.png=01;35:*.tif=01;35:
_ENV["PATH"] /usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/bin:/bin:/usr/bin:/usr/X11R6/bin:/home/housert/bin
_ENV["MAIL"] /var/spool/mail/housert
_ENV["PWD"] /etc/init.d
_ENV["INPUTRC"] /etc/inputrc
_ENV["LANG"] en_US.UTF-8
_ENV["SSH_ASKPASS"] /usr/libexec/openssh/gnome-ssh-askpass
_ENV["HOME"] /root
_ENV["SHLVL"] 4
_ENV["LOGNAME"] housert
_ENV["SSH_CONNECTION"] ::ffff:10.180.5.187 2605 ::ffff:10.180.0.16 22
_ENV["LESSOPEN"] |/usr/bin/lesspipe.sh %s
_ENV["G_BROKEN_FILENAMES"] 1
_ENV["_"] /usr/local/apache2/bin/httpd
Thorsten
Posts: 15834
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Post by Thorsten »

Hi,

I tested with the same php.ini and it works for me... :-(

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
jhartstein
Posts: 14
Joined: Tue Apr 18, 2006 4:01 pm

is it possible that..

Post by jhartstein »

Here's my chain of usage:

I installed the 1.5.7 version. the following files were altered for templating:

index.php
language_en.php
colors.css
contact.tpl
index.tpl
config.php

then I added 1.5.8 to the site, copied over these files changed files.
ran the upgrade script

would there be a possibility that the MySQL settings could also affect things?

Variable Session value Global value
back log 50 50
basedir /usr/local/mysql/ /usr/local/mysql/
binlog cache size 32768 32768
bulk insert buffer size 8388608 8388608
character set client utf8 utf8
character set connection utf8 utf8
character set database utf8 utf8
character set results utf8 utf8
character set server utf8 utf8
character set system utf8 utf8
character sets dir /usr/local/mysql/share/mysql/charsets/ /usr/local/mysql/share/mysql/charsets/
collation connection utf8_general_ci utf8_general_ci
collation database utf8_general_ci utf8_general_ci
collation server utf8_general_ci utf8_general_ci
concurrent insert ON ON
connect timeout 5 5
datadir /usr/local/mysql/var/ /usr/local/mysql/var/
date format %Y-%m-%d %Y-%m-%d
datetime format %Y-%m-%d %H:%i:%s %Y-%m-%d %H:%i:%s
default week format 0 0
delay key write ON ON
delayed insert limit 100 100
delayed insert timeout 300 300
delayed queue size 1000 1000
expire logs days 0 0
flush OFF OFF
flush time 0 0
ft boolean syntax + -><()~*:""&| + -><()~*:""&|
ft max word len 84 84
ft min word len 4 4
ft query expansion limit 20 20
ft stopword file (built-in) (built-in)
group concat max len 1024 1024
have archive NO NO
have bdb NO NO
have compress YES YES
have crypt YES YES
have csv NO NO
have example engine NO NO
have geometry YES YES
have innodb YES YES
have isam NO NO
have ndbcluster NO NO
have openssl NO NO
have query cache YES YES
have raid NO NO
have rtree keys YES YES
have symlink YES YES
init connect
init file
init slave
innodb additional mem pool size 1048576 1048576
innodb autoextend increment 8 8
innodb buffer pool awe mem mb 0 0
innodb buffer pool size 8388608 8388608
innodb data file path ibdata1:10M:autoextend ibdata1:10M:autoextend
innodb data home dir
innodb fast shutdown ON ON
innodb file io threads 4 4
innodb file per table OFF OFF
innodb flush log at trx commit 1 1
innodb flush method
innodb force recovery 0 0
innodb lock wait timeout 50 50
innodb locks unsafe for binlog OFF OFF
innodb log arch dir
innodb log archive OFF OFF
innodb log buffer size 1048576 1048576
innodb log file size 5242880 5242880
innodb log files in group 2 2
innodb log group home dir ./ ./
innodb max dirty pages pct 90 90
innodb max purge lag 0 0
innodb mirrored log groups 1 1
innodb open files 300 300
innodb table locks ON ON
innodb thread concurrency 8 8
interactive timeout 28800 28800
join buffer size 131072 131072
key buffer size 16777216 16777216
key cache age threshold 300 300
key cache block size 1024 1024
key cache division limit 100 100
language /usr/local/mysql/share/mysql/english/ /usr/local/mysql/share/mysql/english/
large files support ON ON
license GPL GPL
local infile ON ON
locked in memory OFF OFF
log OFF OFF
log bin ON ON
log error
log slave updates OFF OFF
log slow queries OFF OFF
log update OFF OFF
log warnings 1 1
long query time 10 10
low priority updates OFF OFF
lower case file system OFF OFF
lower case table names 0 0
max allowed packet 1047552 1047552
max binlog cache size 4294967295 4294967295
max binlog size 1073741824 1073741824
max connect errors 10 10
max connections 100 100
max delayed threads 20 20
max error count 64 64
max heap table size 16777216 16777216
max insert delayed threads 20 20
max join size 4294967295 4294967295
max length for sort data 1024 1024
max relay log size 0 0
max seeks for key 4294967295 4294967295
max sort length 1024 1024
max tmp tables 32 32
max user connections 0 0
max write lock count 4294967295 4294967295
myisam data pointer size 4 4
myisam max extra sort file size 2147483648 2147483648
myisam max sort file size 2147483647 2147483647
myisam recover options OFF OFF
myisam repair threads 1 1
myisam sort buffer size 8388608 8388608
net buffer length 8192 8192
net read timeout 30 30
net retry count 10 10
net write timeout 60 60
new OFF OFF
old passwords OFF OFF
open files limit 1024 1024
pid file /usr/local/mysql/var/intranet.pid /usr/local/mysql/var/intranet.pid
port 3306 3306
preload buffer size 32768 32768
protocol version 10 10
query alloc block size 8192 8192
query cache limit 1048576 1048576
query cache min res unit 4096 4096
query cache size 0 0
query cache type ON ON
query cache wlock invalidate OFF OFF
query prealloc size 8192 8192
range alloc block size 2048 2048
read buffer size 258048 258048
read only OFF OFF
read rnd buffer size 520192 520192
relay log purge ON ON
rpl recovery rank 0 0
secure auth OFF OFF
server id 1 1
skip external locking ON ON
skip networking OFF OFF
skip show database OFF OFF
slave net timeout 3600 3600
slow launch time 2 2
socket /tmp/mysql.sock /tmp/mysql.sock
sort buffer size 524280 524280
sql mode
storage engine MyISAM MyISAM
sync binlog 0 0
sync replication 0 0
sync replication slave id 0 0
sync replication timeout 0 0
sync frm ON ON
system time zone EST EST
table cache 64 64
table type MyISAM MyISAM
thread cache size 0 0
thread stack 196608 196608
time format %H:%i:%s %H:%i:%s
time zone SYSTEM SYSTEM
tmp table size 33554432 33554432
tmpdir
transaction alloc block size 8192 8192
transaction prealloc size 4096 4096
tx isolation REPEATABLE-READ REPEATABLE-READ
version 4.1.10-log 4.1.10-log
version comment Source distribution Source distribution
version compile machine i686 i686
version compile os pc-linux-gnu pc-linux-gnu
wait timeout 28
jhartstein
Posts: 14
Joined: Tue Apr 18, 2006 4:01 pm

okay, weird methodology at play possible answer

Post by jhartstein »

Ok, I looked at things closer and I might have figured more of the issue.


It looks like the issue is actually not just the ' character. What's goinjg on is I'm cutting and pasting from a word document into the faq form. The text being grabbed was a headline text from word. When I simply type directly the phrase "I can't install" it works fine, if I use the copied text it bombs out. I would guess this is a classic windows Word problem where they are placing weirdo formating characters that are blowing things up.

So it isn't a direct issue with phpmyfaq. Although you might want to look at things to see what isn't being filtered out. the text was in 14 pt + normal format, with bold on.

obvious answer for me: convert to a plain text file.

Thank you for looking into this for me though.
Thorsten
Posts: 15834
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Post by Thorsten »

Hi,

what did you changed in index.php?

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
jhartstein
Posts: 14
Joined: Tue Apr 18, 2006 4:01 pm

I added copyright data info

Post by jhartstein »

I took the copyright info listed on the contact page.tpl and moved it to the index.php file so it displays at the bottom of the page. I prefer in our theme to have it show up down there than float in the middle of the page right under the contact us text blocks. added it to the main template vars area basically.
Thorsten
Posts: 15834
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Post by Thorsten »

Hi,

really strange. It seems that the quoting does not work in your installation... I'll have to investigate this.

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
Thorsten
Posts: 15834
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Post by Thorsten »

Hi,

can you please enable the debug mode in inc/init.php and post the queries which will be performed when you save a record or save a question.

Thank you!

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
jhartstein
Posts: 14
Joined: Tue Apr 18, 2006 4:01 pm

magic quotes of fun

Post by jhartstein »

I suspect this is a "magic quotes" issue from Word. It's putting the gibberish ascii characters in the form and the form isn't liking it. combine that with the fck editor and it ends up blowing up. I'm really not sure if this is something that you can compensate for. I looked at the logs and it doesn't show anything weird, but the database just can't handle the ' or " that's not a regular version.
Thorsten
Posts: 15834
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Post by Thorsten »

Hi,

I found some bugfixes in MySQL 4.1.11 and 4.1.12 which fixed problems with some characters. I think there's the problem...

bye
Thorstenl
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
jhartstein
Posts: 14
Joined: Tue Apr 18, 2006 4:01 pm

yes, very likely

Post by jhartstein »

Yes, it's likely it's a MySQL thing. I looked at the debug info and that looked fine for the php side of the sql queries. I suspect that the database can't handle the essentially gibberish characters from Word. I worked around it by converting to a text file and replacing all instances of the funky characters and it worked fine.

Maybe something to note for people in a FAQ or something.
Post Reply