Mysterious Error in Uploading Submissions

Are you responsible for making OJS work -- installing, upgrading, migrating or troubleshooting? Do you think you've found a bug? Post in this forum.

Moderators: jmacgreg, btbell, michael, bdgregg, barbarah, asmecher

Forum rules
The Public Knowledge Project Support Forum is moving to

This forum will be maintained permanently as an archived historical resource, but all new questions should be added to the new forum. Questions will no longer be monitored on this old forum after March 30, 2015.
Posts: 1
Joined: Tue Feb 19, 2008 11:51 pm

Mysterious Error in Uploading Submissions

Postby eurj2 » Wed Feb 20, 2008 2:20 am

Today I got a phone call from some potential authors saying that the upload form was broken. Thinking it was strange (submissions worked earlier this week), I logged in as an author and tried to submit. Everything goes fine until step three, when they actually upload the file from the local machine to the server. After selecting the file and clicking upload, OJS throws an error 406

Code: Select all

Not Acceptable
An appropriate representation of the requested resource /review2/index.php/eurj/author/saveSubmit/3 could not be found on this server.

where the journal is located at . I immediately thought upgrading to a new version would remedy the problem (was running 2.1.1), but the error remains.

Attached is the PHPInfo().

Code: Select all

PHP Version 5.0.4

System    Linux 2.6.9-55.0.2.ELsmp #1 SMP Tue Jun 26 14:30:58 EDT 2007 i686
Build Date    Jul 4 2006 19:41:37
Configure Command    './configure' '--prefix=/usr' '--with-xml' '--enable-bcmath' '--enable-calendar' '--with-curl' '--enable-exif' '--enable-ftp' '--with-gd' '--with-jpeg-dir=/usr/local' '--with-png-dir=/usr' '--with-xpm-dir=/usr/X11R6' '--with-gettext' '--with-imap=/usr/local/imap-2004g' '--enable-mbstring' '--enable-mbstr-enc-trans' '--enable-mbregex' '--with-mcrypt' '--with-mhash' '--enable-magic-quotes' '--with-mysqli' '--with-mysql=/usr' '--with-openssl' '--enable-discard-path' '--with-pear' '--enable-sockets' '--enable-track-vars' '--with-ttf' '--with-freetype-dir=/usr' '--enable-gd-native-ttf' '--enable-versioning' '--with-zip' '--with-zlib'
Server API    CGI
Virtual Directory Support    disabled
Configuration File (php.ini) Path    /home/eurj/public_html/review2/php.ini
PHP API    20031224
PHP Extension    20041030
Zend Extension    220040412
Debug Build    no
Thread Safety    disabled
IPv6 Support    enabled
Registered PHP Streams    php, file, http, ftp, compress.zlib, https, ftps
Registered Stream Socket Transports    tcp, udp, unix, udg, ssl, sslv3, sslv2, tls

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

PHP Credits
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_globals_jit   On   On
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   2047   no value
expose_php   On   On
extension_dir   /usr/lib/php/extensions/no-debug-non-zts-20041030   /usr/lib/php/extensions/no-debug-non-zts-20041030
file_uploads   On   On   #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   .:/home/eurj/public_html/review2/includes:/home/eurj/public_html/review2/classes:/home/eurj/public_html/review2/pages:/home/eurj/public_html/review2/lib:/home/eurj/public_html/review2/lib/smarty:.:/usr/lib/php   .:/usr/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
mail.force_extra_parameters   no value   no value
max_execution_time   30   30
max_input_time   -1   -1
open_basedir   no value   no value
output_buffering   0   0
output_handler   no value   no value
post_max_size   8M   8M
precision   14   14
register_argc_argv   On   On
register_globals   Off   Off
register_long_arrays   On   On
report_memleaks   On   On
report_zend_debug   On   On
safe_mode   Off   Off
safe_mode_exec_dir   /usr/local/php/bin   /usr/local/php/bin
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   100M   100M
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
zend.ze1_compatibility_mode   Off   Off

BCMath support    enabled

Calendar support    enabled

ctype functions    enabled

CURL support    enabled
CURL Information    libcurl/7.15.3 OpenSSL/0.9.7a zlib/

DOM/XML    enabled
DOM/XML API Version    20031129
libxml Version    2.6.22
HTML Support    enabled
XPath Support    enabled
XPointer Support    enabled
Schema Support    enabled
RelaxNG Support    enabled

EXIF Support    enabled
EXIF Version    1.4 $Id: exif.c,v 2005/03/17 17:20:35 iliaa Exp $
Supported EXIF Version    0220
Supported filetypes    JPEG,TIFF

FTP support    enabled

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

GetText Support    enabled

iconv support    enabled
iconv implementation    glibc
iconv library version    2.3.4

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

IMAP c-Client Version    2004

libXML support    active
libXML Version    2.6.22
libXML streams    enabled

Multibyte Support    enabled
Multibyte string engine    libmbfl
Multibyte (japanese) regex support    enabled
Multibyte regex (oniguruma) version    3.7.0

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   utf-8   no value
mbstring.language   neutral   neutral
mbstring.substitute_character   12307   no value

mcrypt support   enabled
Version    2.5.7
Api No    20021217
Supported ciphers    cast-128 gost rijndael-128 twofish arcfour cast-256 loki97 rijndael-192 saferplus wake blowfish-compat des rijndael-256 serpent xtea blowfish enigma rc2 tripledes
Supported modes    cbc cfb ctr ecb ncfb nofb ofb stream

Directive   Local Value   Master Value
mcrypt.algorithms_dir   no value   no value
mcrypt.modes_dir   no value   no value

MHASH support    Enabled
MHASH API Version    20020524

MySQL Support   enabled
Active Persistent Links    1
Active Links    1
Client API version    4.1.22
MYSQL_SOCKET    /var/lib/mysql/mysql.sock
MYSQL_INCLUDE    -I/usr/include/mysql
MYSQL_LIBS    -L/usr/lib -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   no value   no value
mysql.default_user   no value   no value
mysql.max_links   Unlimited   Unlimited
mysql.max_persistent   Unlimited   Unlimited
mysql.trace_mode   Off   Off

MysqlI Support   enabled
Client API version    4.1.22
MYSQLI_SOCKET    /var/lib/mysql/mysql.sock

Directive   Local Value   Master Value
mysqli.default_host   no value   no value
mysqli.default_port   3306   3306
mysqli.default_pw   no value   no value
mysqli.default_socket   no value   no value
mysqli.default_user   no value   no value
mysqli.max_links   Unlimited   Unlimited
mysqli.reconnect   Off   Off

OpenSSL support    enabled
OpenSSL Version    OpenSSL 0.9.7a Feb 19 2003

PCRE (Perl Compatible Regular Expressions) Support    enabled
PCRE Library Version    4.5 01-December-2003

Revision    $Revision: $

Session Support    enabled
Registered save handlers    files user sqlite
Registered serializer handlers    php php_binary

Directive   Local Value   Master Value
session.auto_start   On   Off
session.bug_compat_42   On   On
session.bug_compat_warn   On   On
session.cache_expire   180   180
session.cache_limiter   none   nocache
session.cookie_domain   no value   no value
session.cookie_lifetime   0   0
session.cookie_path   /review2/   /
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   3600   1440
session.gc_probability   1   1
session.hash_bits_per_character   4   4
session.hash_function   0   0   OJSSID   PHPSESSID
session.referer_check   no value   no value
session.save_handler   user   files
session.save_path   no value   no value
session.serialize_handler   php   php
session.use_cookies   On   On
session.use_only_cookies   Off   Off
session.use_trans_sid   0   0

Simplexml support   enabled
Revision    $Revision: $
Schema support    enabled

Sockets Support    enabled

SPL support   enabled
Interfaces    RecursiveIterator, SeekableIterator
Classes    ArrayObject, ArrayIterator, CachingIterator, CachingRecursiveIterator, DirectoryIterator, FilterIterator, LimitIterator, ParentIterator, RecursiveDirectoryIterator, RecursiveIteratorIterator, SimpleXMLIterator

SQLite support   enabled
PECL Module version    2.0-dev $Id: sqlite.c,v 2004/09/26 01:41:40 wez Exp $
SQLite Library    2.8.14
SQLite Encoding    iso8859

Directive   Local Value   Master Value
sqlite.assoc_case   0   0

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

Directive   Local Value   Master Value   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
date.default_latitude   31.7667   31.7667
date.default_longitude   35.2333   35.2333
date.sunrise_zenith   90.83   90.83
date.sunset_zenith   90.83   90.83
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,form=,fieldset=   a=href,area=href,frame=src,form=,fieldset=
user_agent   no value   no value

Tokenizer Support    enabled

XML Support    active
XML Namespace Support    active
libxml2 Version    2.6.22

ZLib Support    enabled
Compiled Version    1.1.4
Linked Version

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

Variable   Value
PATH    /usr/local/bin:/usr/bin:/bin
DOCUMENT_ROOT    /home/eurj/public_html
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_CHARSET    ISO-8859-1,utf-8;q=0.7,*;q=0.7
HTTP_ACCEPT_ENCODING    gzip,deflate
HTTP_ACCEPT_LANGUAGE    en-us,en;q=0.5
HTTP_CONNECTION    keep-alive
HTTP_COOKIE    OJSSID=a18cc56d71dbbeef845262d496db790a; FontSize=3; ColorCSS=default; ScreenType=wide; JATheme=ja_villadi; 43dbd693514d50742268727a26064773=b9f9cdfb527308af4b1bf3d3ba68b141; logintheme=cpanel; cprelogin=no; cpsession=closed; font-size=Medium
HTTP_USER_AGENT    Mozilla/5.0 (Macintosh; U; Intel Mac OS X; en-US; rv: Gecko/20080201 Firefox/
REMOTE_PORT    49979
SCRIPT_FILENAME    /home/eurj/public_html/review2/index.php
SERVER_SOFTWARE    Apache/1.3.36 (Unix) mod_auth_passthrough/1.8 mod_log_bytes/1.2 mod_bwlimited/1.4 FrontPage/ mod_ssl/2.8.27 OpenSSL/0.9.7a PHP-CGI/0.1b
QUERY_STRING    no value
REQUEST_URI    /review2/index.php/index/admin/phpInfo
SCRIPT_NAME    /review2/index.php
PATH_INFO    no value
ORIG_PATH_TRANSLATED    /home/eurj/public_html/index/admin/phpInfo
ORIG_PATH_INFO    /index/admin/phpInfo
ORIG_SCRIPT_NAME    /review2/index.php
ORIG_SCRIPT_FILENAME    /home/eurj/public_html/review2/index.php

PHP Variables
Variable   Value
_REQUEST["OJSSID"]   a18cc56d71dbbeef845262d496db790a
_REQUEST["FontSize"]   3
_REQUEST["ColorCSS"]   default
_REQUEST["ScreenType"]   wide
_REQUEST["JATheme"]   ja_villadi
_REQUEST["43dbd693514d50742268727a26064773"]   b9f9cdfb527308af4b1bf3d3ba68b141
_REQUEST["logintheme"]   cpanel
_REQUEST["cprelogin"]   no
_REQUEST["cpsession"]   closed
_REQUEST["font-size"]   Medium
_COOKIE["OJSSID"]   a18cc56d71dbbeef845262d496db790a
_COOKIE["FontSize"]   3
_COOKIE["ColorCSS"]   default
_COOKIE["ScreenType"]   wide
_COOKIE["JATheme"]   ja_villadi
_COOKIE["43dbd693514d50742268727a26064773"]   b9f9cdfb527308af4b1bf3d3ba68b141
_COOKIE["logintheme"]   cpanel
_COOKIE["cprelogin"]   no
_COOKIE["cpsession"]   closed
_COOKIE["font-size"]   Medium
_SERVER["PATH"]   /usr/local/bin:/usr/bin:/bin
_SERVER["DOCUMENT_ROOT"]   /home/eurj/public_html
_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_CHARSET"]   ISO-8859-1,utf-8;q=0.7,*;q=0.7
_SERVER["HTTP_ACCEPT_LANGUAGE"]   en-us,en;q=0.5
_SERVER["HTTP_COOKIE"]   OJSSID=a18cc56d71dbbeef845262d496db790a; FontSize=3; ColorCSS=default; ScreenType=wide; JATheme=ja_villadi; 43dbd693514d50742268727a26064773=b9f9cdfb527308af4b1bf3d3ba68b141; logintheme=cpanel; cprelogin=no; cpsession=closed; font-size=Medium
_SERVER["HTTP_USER_AGENT"]   Mozilla/5.0 (Macintosh; U; Intel Mac OS X; en-US; rv: Gecko/20080201 Firefox/
_SERVER["SCRIPT_FILENAME"]   /home/eurj/public_html/review2/index.php
_SERVER["SERVER_SOFTWARE"]   Apache/1.3.36 (Unix) mod_auth_passthrough/1.8 mod_log_bytes/1.2 mod_bwlimited/1.4 FrontPage/ mod_ssl/2.8.27 OpenSSL/0.9.7a PHP-CGI/0.1b
_SERVER["QUERY_STRING"]   no value
_SERVER["REQUEST_URI"]   /review2/index.php/index/admin/phpInfo
_SERVER["SCRIPT_NAME"]   /review2/index.php
_SERVER["PATH_INFO"]   no value
_SERVER["ORIG_PATH_TRANSLATED"]   /home/eurj/public_html/index/admin/phpInfo
_SERVER["ORIG_PATH_INFO"]   /index/admin/phpInfo
_SERVER["ORIG_SCRIPT_NAME"]   /review2/index.php
_SERVER["ORIG_SCRIPT_FILENAME"]   /home/eurj/public_html/review2/index.php
_SERVER["PHP_SELF"]   /review2/index.php


_SERVER["argc"]   0
_ENV["PATH"]   /usr/local/bin:/usr/bin:/bin
_ENV["DOCUMENT_ROOT"]   /home/eurj/public_html
_ENV["HTTP_ACCEPT"]   text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
_ENV["HTTP_ACCEPT_CHARSET"]   ISO-8859-1,utf-8;q=0.7,*;q=0.7
_ENV["HTTP_ACCEPT_ENCODING"]   gzip,deflate
_ENV["HTTP_ACCEPT_LANGUAGE"]   en-us,en;q=0.5
_ENV["HTTP_CONNECTION"]   keep-alive
_ENV["HTTP_COOKIE"]   OJSSID=a18cc56d71dbbeef845262d496db790a; FontSize=3; ColorCSS=default; ScreenType=wide; JATheme=ja_villadi; 43dbd693514d50742268727a26064773=b9f9cdfb527308af4b1bf3d3ba68b141; logintheme=cpanel; cprelogin=no; cpsession=closed; font-size=Medium
_ENV["HTTP_USER_AGENT"]   Mozilla/5.0 (Macintosh; U; Intel Mac OS X; en-US; rv: Gecko/20080201 Firefox/
_ENV["REMOTE_PORT"]   49979
_ENV["SCRIPT_FILENAME"]   /home/eurj/public_html/review2/index.php
_ENV["SERVER_SOFTWARE"]   Apache/1.3.36 (Unix) mod_auth_passthrough/1.8 mod_log_bytes/1.2 mod_bwlimited/1.4 FrontPage/ mod_ssl/2.8.27 OpenSSL/0.9.7a PHP-CGI/0.1b
_ENV["QUERY_STRING"]   no value
_ENV["REQUEST_URI"]   /review2/index.php/index/admin/phpInfo
_ENV["SCRIPT_NAME"]   /review2/index.php
_ENV["PATH_INFO"]   no value
_ENV["PATH_TRANSLATED"]   no value
_ENV["ORIG_PATH_TRANSLATED"]   /home/eurj/public_html/index/admin/phpInfo
_ENV["ORIG_PATH_INFO"]   /index/admin/phpInfo
_ENV["ORIG_SCRIPT_NAME"]   /review2/index.php
_ENV["ORIG_SCRIPT_FILENAME"]   /home/eurj/public_html/review2/index.php

After further nosing around with the site, it appears there is another error 406 on pgs. 4 and 5 of the Journal Setup when saving the changes. It also throws an error when looking at abstracts in past issues.

Code: Select all

Fatal error: Call to undefined method Request::isbot() in /home/eurj/public_html/review2/pages/article/ on line 168

Posts: 10015
Joined: Wed Aug 10, 2005 12:56 pm

Re: Mysterious Error in Uploading Submissions

Postby asmecher » Thu Feb 21, 2008 11:31 pm

Hi eurj2,

That error message about the Request::isBot function is odd -- are you sure you're running the OJS 2.2 version of classes/core/, or is it possible that your installation is a mix of the two?

As for the 406 error, are you using a firewall? I've seen a firewall block certain requests on one or two occasions that were perfectly valid, but triggered over-zealous firewall rules.

Alec Smecher
Public Knowledge Project Team

Return to “OJS Technical Support”

Who is online

Users browsing this forum: No registered users and 2 guests