I have the same problem and have read through all the topics, but still not solved.
Before I upgraded from 1.4.x to 1.5 , I ran into the same problems without prior notice. I check with my hosting, they seemed to have upgraded the LINUX system and the php library (at present php 4.3.11) I think it must be the cause of problem.
But I try to upgrade my Moodle with the hope that it will solve the problem, but in vain. I have only text editor with htmlarea undefined .
Moodle 1.5 gives me also error on every page, that is line 1 , char 1 , error expected object ,code 0 . When I check on line 1 , it is just <?PHP... >
What should I tell my hosting provider to check their configuration for me ?
What is required on the server side in order to make the HTMLEditor work ?
Please help, my moodle site is at http://www.bangkaew.com/elearning/
My site is at
The HTML block just comes up with a text input block when you edit it.
Just a blank site at present it is due to get content this week if the tutors can agree on the details.
I have only just come back to this, working on a Sunday morning is not good. So I have not tried Janne's fix yet.
It is not a major problem for me because if I drop HTML into the text box it works fine and I can edit the code localy and cut and paste it into the text box.
I suppose it would be more of a problem if you just wanted to enter some text.
Thank you, that did not help. After posting I saw the link above and followed instructions with no luck.
http://moodle.org/mod/forum/discuss.php?d=25461
I did these:
1. replaced htmlarea.php
2. changed languages
3. Editor on in Admin/Editor and Profile (disabled/reenabled)
4. removed lines/spaces in config.php
5. cleared cache many times before and after each step, rebooted, etc.
6. IE6 and Firefox
7. changed to several themes
8. ran https://webwork2.math.ohio-state.edu/configcheck.php
I have installed earlier versions of Moodle on the same server under 3 domains about 4 times in the past month and never had an issue with the editor. This is a fresh install of 1.5 (downloaded yesterday). No errors on install. Everything else functioning great as far as I can tell.
Thanks for any advice.
- Janne -
Edit: propably the cause of this is a new cut 'n' page message in line 1882 (hopefully this will fix it).
Thank you Janne, I have tested and have cleared your browser cache.
But it still shows only text editor.
My langauge pack is th, I have also tested the english pack en, But it still shows only text editor.
Have you enabled editor in your site (admin -> editor settings) and in your profile?
- Janne -
I have enabled editor in your site (admin -> editor settings) and in my profile.
and also confirm it appear rightly in my database. no space line in config.php
I have the feeling that the problem might come from my hosting provider, they have upgraded the LINUX system and compiled the php library (at present php 4.3.11) when the problem first occured in 1.4.x and continued to appear in the upgraded 1.5 . Some friend in previous topic said that his problem was solved when his hosting provider fixed their server.
What is that to fix ?
I tried another clean install with new database at another website in the same hosting provider at http://www.bangkaew.org/moodle/ , and the same things happen,
no html editor (eventhrough everything is set)
error page on line 1 char 1 expected object
sideblock can not turn on/off
There is a warning at the beginning of the installation that the php memory limit is 8 mb and may cause trouble lator.
I am asking the hosting provider to increase for me,I am not sure it can be easily done or not ( no answer from them yet ).
Do I have to re-install after hosting provider increases php memory limit ?
Will it be the cause of all troubles ?
Sometimes if there are blank lines in your .php files then the editor can disappear. It did not turn out to be my problem on this thread but Zbigniew came up with a nice routine for checking.
http://moodle.org/mod/forum/discuss.php?d=21995
Thanks, Takemoto San, I went to visit your website, and like your talking robot very much. very interesting, but we seems to talk in different topic
My hosting provider has changed php memory limit to 16 mb and I test a clean install with new database again at http://www.bangkaew.org/moodle with correct setting and clear cache memory. The installation pass well with no warning again, but after I download the config.php file and upload it to its place ( no blank line,checked with Zbigniew ) , the error page on line 1 char 1 expected object come to haunt me again every pages starting from the licence page. I am not sure it is just trivial or not, but when the installation completed successfully, the same thing happens, sideblock can not turn on/off and no html editor toolbar appears even though it show that
Formatting: | HTML format |
This time the error page said that error page on line: 139 char: 1 error: 'HTMLArea' is undefined URL: http://www.bangkaew.org/moodle/mod/forum/post.php?forum=1
on line 139 of post.php , I just found exit;
Is there something wrong with post.php ?
( I uploaded moodle-latest-15.zip to bangkaew.org and extracted it there inside the cPanel. )
Dear Vichien B,
EDIT - Have you tried Jannes new version of edit.php post above - END OF EDIT
Have you solved your editor problem?
I am glad you like my robot. It is about $100 a year from oddcast.com. If you want to share, contact me.
I don't THINK that the memory limit is a problem. For instance I am using (the miss named) "moodle for windows" ("desktop moodle"), and I am told that I have only 8Mb for php when I installl it, but it seems to work fine, with the editor. AFAIK the editor is written in javascript so I don't think that the php memory limit should be a problem.
I seem to remember having a problem with sideblocks before... it was because the theme I was using was not 1.5 compatible. Are you using the standard theme? Might a problem with your theme cause the problems with the editor (I have not heard of this happening but you never know - so make sure you use the standard theme as a test at least).
as for the error "error page on line: 139 char: "
Hmm... that sounds like, rather than a problem with post.php, you might have had a problem during upload such that the files for the editor have not uploaded properly? You could try uploading the html editor folder again. I think that it is in moodle/lib/.
But that sounds unlikely since you used the zip file and unzipped it on the server.
I guess you are using a non English character set. Is there any chance you have included a double byte space " " or some other double byte character in your config.php?
My guess is that your two errors are related.
error page on line 1 char 1 expected object
I have just upgraded from 1.4 to 1.5 and had the same problem. Janne, your attached htmlarea.php was brilliant. It fixed the problem straight away.
Thank you very much
Patrick
I'm just glad that someone got it working (beside me of course
- Janne -
Thank you very much for yur file.
I upgraded my site to 1.5 and the HTML editor disappeared. I uploaded your file and it fixed the problem. Fantastic.
In Moodle1.5 /lib/editor/ has htmlarea.php and htmlarea_bak.php. I think they misplace the right file.
As you said, the Replace button dosn't work, so, I hide it.
Paste button still dosn't work in Firefox, so, I hide it as well.
Thank you again.
Actually htmlarea_bak.php has its own special purpose why it's still hangs in there. In htmlarea_bak.php are all original comments which are stripped from htmlarea.php. And if I remember correctly the version of that file (htmlarea_bak.php) is before editor were upgraded HTMLArea 3.0 RC1 version.
- Janne -
I try again on firefox and avant browser, the irritating page error disappear, maybe something wrong with my IE ver 6.0
I download the latest moodle and extracted in cPanel to replace the current one, but everything is the same , no editor toolbar. I try to change all version of htmlarea.php, but nothing change. I eventually change the name of editor folder, the text editor is still working though I have cleared the cache !
I notice that in the editor setting page ( http://www.bangkaew.com/elearning/admin/editor.php ), the editor button gif doesn't show up, so I try to see it directly like by browsing at http://www.bangkaew.com/lib/editor/images/ed_anchor.gif , every time I browse ,the result keeps changing between
The page cannot be displayed
and
Not Acceptable
An appropriate representation of the requested resource /elearning/lib/editor/images/smallBanner.gif could not be found on this server.
Apache/1.3.33 Server at www.bangkaew.com Port 80
but when I move the editor button gif outside /lib , it can be browsed like
http://www.bangkaew.com/elearning/ed_anchor.gif
I try browsing at http://moodle.org/lib/editor/images/ed_anchor.gif , it is there, nothing Not Acceptable
I try upload new editor folder, it is the same.
editor folder is 755 same with /lib and /images, the cache has been cleared.
The Language is th (Thai) , Locale is th_TH
Will this be related with my no editor toolbar problem ?
Thank Janne , but I don't understand your comment ?
"..when you try to get your htmlarea.php file with direct url.
.."
Why can I get http://moodle.org/lib/editor/images/ed_anchor.gif ?
(while I can't get http://www.bangkaew.com/lib/editor/images/ed_anchor.gif )
http://www.bangkaew.com/lib/editor/htmlarea.php
Why can I get ?
Is this a hosted service? If it is you'll have to contact your hosting provider.
Yes , this service is hosted, I can get http://www.bangkaew.com/elearning/ed_anchor.gif
I wonder what is wrong with my editor folder under /lib , even I delete this folder and clear the cache, I still can allow html editor format with no editor toolbar like before. So changing the htmlarea.php seems to have no effect at all , since the editor folder cannot be reached.
What happen if you delete your editor folder under /lib ?
I have tested a clean install of moodle 1.5 on a new server, and it works with no problem.
no error on page, and the HTML Editor Toolbar returns !
I am quite sure that the problem comes from current server which my hosting provider has just upgraded to php 4.3.11 and configure to make it more secure from hacker and spammail.
Here is the details for your information.
Hope that someone can help me find out the cause of problem.
PHP Version 4.3.11 |
System | Linux host.axzion.com 2.6.10-1.770_FC2smp #1 SMP Sat Feb 26 21:54:45 EST 2005 i686 |
Build Date | Jun 7 2005 16:03:19 |
Configure Command | './configure' '--with-apxs=/usr/local/apache/bin/apxs' '--with-xml' '--enable-bcmath' '--enable-calendar' '--enable-ftp' '--with-gd' '--with-jpeg-dir=/usr/local' '--with-png-dir=/usr' '--with-xpm-dir=/usr/X11R6' '--enable-magic-quotes' '--with-mysql' '--enable-discard-path' '--with-pear' '--enable-sockets' '--enable-track-vars' '--with-ttf' '--with-freetype-dir=/usr' '--enable-gd-native-ttf' '--enable-versioning' '--with-zlib' |
Server API | Apache |
Virtual Directory Support | disabled |
Configuration File (php.ini) Path | /usr/local/Zend/etc/php.ini |
PHP API | 20020918 |
PHP Extension | 20020429 |
Zend Extension | 20021010 |
Debug Build | no |
Thread Safety | disabled |
Registered PHP Streams | php, http, ftp, compress.zlib |
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 | error_log | error_log |
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/lib/php:/usr/local/lib/php | .:/usr/lib/php:/usr/local/lib/php |
log_errors | On | On |
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 | -1 | -1 |
open_basedir | /home/bangk/:/usr/lib/php:/usr/local/lib/php:/tmp | no value |
output_buffering | no value | no value |
output_handler | no value | no value |
post_max_size | 55M | 55M |
precision | 14 | 14 |
register_argc_argv | On | On |
register_globals | On | On |
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 | me@localhost.com | me@localhost.com |
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 | Off | Off |
Zend Optimizer
Optimization Pass 1 | enabled |
Optimization Pass 2 | enabled |
Optimization Pass 3 | enabled |
Optimization Pass 4 | enabled |
Optimization Pass 9 | disabled |
Zend Loader | enabled |
License Path | no value |
apache
APACHE_INCLUDE | no value |
APACHE_TARGET | no value |
Apache Version | Apache/1.3.33 (Unix) PHP/4.3.11 mod_auth_passthrough/1.8 mod_log_bytes/1.2 mod_bwlimited/1.4 FrontPage/5.0.2.2635 mod_ssl/2.8.22 OpenSSL/0.9.7a |
Apache Release | 10333100 |
Apache API Version | 19990320 |
Hostname:Port | www.bangkaew.com:80 |
User/Group | nobody(99)/99 |
Max Requests | Per Child: 0 - Keep Alive: on - Max Per Connection: 150 |
Timeouts | Connection: 300 - Keep-Alive: 3 |
Server Root | /usr/local/apache |
Loaded Modules | mod_dosevasive, mod_php4, mod_security, mod_auth_passthrough, mod_log_bytes, mod_bwlimited, mod_frontpage, mod_ssl, mod_setenvif, mod_so, mod_auth, mod_access, mod_rewrite, mod_alias, mod_userdir, mod_actions, mod_imap, mod_asis, mod_cgi, mod_dir, mod_autoindex, mod_include, mod_status, mod_negotiation, mod_mime, mod_log_config, mod_env, http_core |
Directive | Local Value | Master Value |
---|---|---|
child_terminate | 0 | 0 |
engine | 1 | 1 |
last_modified | 0 | 0 |
xbithack | 0 | 0 |
Apache Environment
Variable | Value |
---|---|
DOCUMENT_ROOT | /home/bangk/public_html |
HTTP_ACCEPT | image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/vnd.ms-powerpoint, application/msword, application/vnd.ms-excel, application/x-shockwave-flash, */* |
HTTP_ACCEPT_LANGUAGE | th |
HTTP_CACHE_CONTROL | max-age=259200 |
HTTP_CONNECTION | keep-alive |
HTTP_COOKIE | MoodleSession=5105f34a855b29861597f57a60074383; MoodleSessionTest=8WRmL8J9fu; MOODLEID_=%25E1%25CD%2510K%25B8%257C%25B5%2519; sessioncookie=c4f121b655323538cf4ec81415561dd2; mosadmin=9c314ffb87e3f3456f0f34b72ade8231; cprelogin=no; webmailsession=aXPAGHZj5ivfuPdt3A57Jh21PwISEpQXMm91Z2yMpahMMXnQxPYAGojtBjDNE761; webmailrelogin=no; sessionid=NMRmUTuA.OKHU; verify=test |
HTTP_HOST | www.bangkaew.com |
HTTP_USER_AGENT | Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; .NET CLR 1.1.4322) |
HTTP_VIA | 1.0 intra.tpa.or.th:8080 (squid/2.5.STABLE1) |
HTTP_X_FORWARDED_FOR | 172.16.11.39 |
PATH | /bin:/usr/bin:/sbin:/usr/sbin:/usr/local/bin:/usr/local/sbin |
REMOTE_ADDR | 203.146.219.2 |
REMOTE_PORT | 57346 |
SCRIPT_FILENAME | /home/bangk/public_html/test.php |
SERVER_ADDR | 203.121.145.83 |
SERVER_ADMIN | webmaster@bangkaew.com |
SERVER_NAME | www.bangkaew.com |
SERVER_PORT | 80 |
SERVER_SIGNATURE | <ADDRESS>Apache/1.3.33 Server at www.bangkaew.com Port 80</ADDRESS> |
SERVER_SOFTWARE | Apache/1.3.33 (Unix) PHP/4.3.11 mod_auth_passthrough/1.8 mod_log_bytes/1.2 mod_bwlimited/1.4 FrontPage/5.0.2.2635 mod_ssl/2.8.22 OpenSSL/0.9.7a |
GATEWAY_INTERFACE | CGI/1.1 |
SERVER_PROTOCOL | HTTP/1.0 |
REQUEST_METHOD | GET |
QUERY_STRING | no value |
REQUEST_URI | /test.php |
SCRIPT_NAME | /test.php |
HTTP Headers Information
HTTP Request Headers | |
---|---|
HTTP Request | GET /test.php HTTP/1.0 |
Accept | image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/vnd.ms-powerpoint, application/msword, application/vnd.ms-excel, application/x-shockwave-flash, */* |
Accept-Language | th |
Cache-Control | max-age=259200 |
Connection | keep-alive |
Cookie | MoodleSession=5105f34a855b29861597f57a60074383; MoodleSessionTest=8WRmL8J9fu; MOODLEID_=%25E1%25CD%2510K%25B8%257C%25B5%2519; sessioncookie=c4f121b655323538cf4ec81415561dd2; mosadmin=9c314ffb87e3f3456f0f34b72ade8231; cprelogin=no; webmailsession=aXPAGHZj5ivfuPdt3A57Jh21PwISEpQXMm91Z2yMpahMMXnQxPYAGojtBjDNE761; webmailrelogin=no; sessionid=NMRmUTuA.OKHU; verify=test |
Host | www.bangkaew.com |
User-Agent | Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; .NET CLR 1.1.4322) |
Via | 1.0 intra.tpa.or.th:8080 (squid/2.5.STABLE1) |
X-Forwarded-For | 172.16.11.39 |
HTTP Response Headers | |
X-Powered-By | PHP/4.3.11 |
Connection | close |
Content-Type | text/html |
bcmath
BCMath support | enabled |
calendar
Calendar support | enabled |
ctype
ctype functions | enabled |
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 |
mysql
MySQL Support | enabled |
---|---|
Active Persistent Links | 0 |
Active Links | 0 |
Client API version | 3.23.49 |
MYSQL_MODULE_TYPE | builtin |
MYSQL_SOCKET | /var/tmp/mysql.sock |
MYSQL_INCLUDE | no value |
MYSQL_LIBS | no value |
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 |
overload
User-Space Object Overloading Support | enabled |
pcre
PCRE (Perl Compatible Regular Expressions) Support | enabled |
PCRE Library Version | 4.5 01-December-2003 |
posix
Revision | $Revision: 1.51.2.3 $ |
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 | On | On |
sockets
Sockets Support | enabled |
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,form=,fieldset= | a=href,area=href,frame=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 |
---|---|
PATH | /bin:/usr/bin:/sbin:/usr/sbin:/usr/local/bin:/usr/local/sbin |
PWD | / |
SHLVL | 1 |
RESTARTSRV | 1 |
_ | /usr/local/apache/bin/httpd |
PHP Variables
Variable | Value |
---|---|
PHP_SELF | /test.php |
_REQUEST["MoodleSession"] | 5105f34a855b29861597f57a60074383 |
_REQUEST["MoodleSessionTest"] | 8WRmL8J9fu |
_REQUEST["MOODLEID_"] | %E1%CD%10K%B8%7C%B5%19 |
_REQUEST["sessioncookie"] | c4f121b655323538cf4ec81415561dd2 |
_REQUEST["mosadmin"] | 9c314ffb87e3f3456f0f34b72ade8231 |
_REQUEST["cprelogin"] | no |
_REQUEST["webmailsession"] | aXPAGHZj5ivfuPdt3A57Jh21PwISEpQXMm91Z2yMpahMMXnQxPYAGojtBjDNE761 |
_REQUEST["webmailrelogin"] | no |
_REQUEST["sessionid"] | NMRmUTuA.OKHU |
_REQUEST["verify"] | test |
_COOKIE["MoodleSession"] | 5105f34a855b29861597f57a60074383 |
_COOKIE["MoodleSessionTest"] | 8WRmL8J9fu |
_COOKIE["MOODLEID_"] | %E1%CD%10K%B8%7C%B5%19 |
_COOKIE["sessioncookie"] | c4f121b655323538cf4ec81415561dd2 |
_COOKIE["mosadmin"] | 9c314ffb87e3f3456f0f34b72ade8231 |
_COOKIE["cprelogin"] | no |
_COOKIE["webmailsession"] | aXPAGHZj5ivfuPdt3A57Jh21PwISEpQXMm91Z2yMpahMMXnQxPYAGojtBjDNE761 |
_COOKIE["webmailrelogin"] | no |
_COOKIE["sessionid"] | NMRmUTuA.OKHU |
_COOKIE["verify"] | test |
_SERVER["DOCUMENT_ROOT"] | /home/bangk/public_html |
_SERVER["HTTP_ACCEPT"] | image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/vnd.ms-powerpoint, application/msword, application/vnd.ms-excel, application/x-shockwave-flash, */* |
_SERVER["HTTP_ACCEPT_LANGUAGE"] | th |
_SERVER["HTTP_CACHE_CONTROL"] | max-age=259200 |
_SERVER["HTTP_CONNECTION"] | keep-alive |
_SERVER["HTTP_COOKIE"] | MoodleSession=5105f34a855b29861597f57a60074383; MoodleSessionTest=8WRmL8J9fu; MOODLEID_=%25E1%25CD%2510K%25B8%257C%25B5%2519; sessioncookie=c4f121b655323538cf4ec81415561dd2; mosadmin=9c314ffb87e3f3456f0f34b72ade8231; cprelogin=no; webmailsession=aXPAGHZj5ivfuPdt3A57Jh21PwISEpQXMm91Z2yMpahMMXnQxPYAGojtBjDNE761; webmailrelogin=no; sessionid=NMRmUTuA.OKHU; verify=test |
_SERVER["HTTP_HOST"] | www.bangkaew.com |
_SERVER["HTTP_USER_AGENT"] | Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; .NET CLR 1.1.4322) |
_SERVER["HTTP_VIA"] | 1.0 intra.tpa.or.th:8080 (squid/2.5.STABLE1) |
_SERVER["HTTP_X_FORWARDED_FOR"] | 172.16.11.39 |
_SERVER["PATH"] | /bin:/usr/bin:/sbin:/usr/sbin:/usr/local/bin:/usr/local/sbin |
_SERVER["REMOTE_ADDR"] | 203.146.219.2 |
_SERVER["REMOTE_PORT"] | 57346 |
_SERVER["SCRIPT_FILENAME"] | /home/bangk/public_html/test.php |
_SERVER["SERVER_ADDR"] | 203.121.145.83 |
_SERVER["SERVER_ADMIN"] | webmaster@bangkaew.com |
_SERVER["SERVER_NAME"] | www.bangkaew.com |
_SERVER["SERVER_PORT"] | 80 |
_SERVER["SERVER_SIGNATURE"] | <ADDRESS>Apache/1.3.33 Server at www.bangkaew.com Port 80</ADDRESS> |
_SERVER["SERVER_SOFTWARE"] | Apache/1.3.33 (Unix) PHP/4.3.11 mod_auth_passthrough/1.8 mod_log_bytes/1.2 mod_bwlimited/1.4 FrontPage/5.0.2.2635 mod_ssl/2.8.22 OpenSSL/0.9.7a |
_SERVER["GATEWAY_INTERFACE"] | CGI/1.1 |
_SERVER["SERVER_PROTOCOL"] | HTTP/1.0 |
_SERVER["REQUEST_METHOD"] | GET |
_SERVER["QUERY_STRING"] | no value |
_SERVER["REQUEST_URI"] | /test.php |
_SERVER["SCRIPT_NAME"] | /test.php |
_SERVER["PATH_TRANSLATED"] | /home/bangk/public_html/test.php |
_SERVER["PHP_SELF"] | /test.php |
_SERVER["argv"] | Array ( ) |
_SERVER["argc"] | 0 |
_ENV["PATH"] | /bin:/usr/bin:/sbin:/usr/sbin:/usr/local/bin:/usr/local/sbin |
_ENV["PWD"] | / |
_ENV["SHLVL"] | 1 |
_ENV["RESTARTSRV"] | 1 |
_ENV["_"] | /usr/local/apache/bin/httpd |
PHP License
This program is free software; you can redistribute it and/or modify it under the terms of the PHP License as published by the PHP Group and included in the distribution in the file: LICENSE This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. If you did not receive a copy of the PHP license, or have any questions about PHP licensing, please contact license@php.net. |
This is just to update my problems for knowledge sharing.
I have moved all my original moodle1.5 and data to another linux webhosting , and all the problem are solved.
html editor toolbar returns (with Janne's script).
sideblock can now turn on/off.
error on page not come again. ( I take some javascript that seems to have conflict with main program out from my instant message shoutblock )
For reference see http://elearning.bangkaew.com
I've the same problem.
I got the "Object expected" in every page and I have no HTML editor.
I wrote to the my hosting provider support staff and I got the following message:
Hello Gerardo,
Other moodle users are reporting issues with the newest php version as well.
The upgrade to php fixes memory leaks and security issues and will need to remain on the server.
You may need to contact Moodle directly for a patch or upgrade until Fantastico updates with a version of Moodle that is compatible.
Thank you.
What can I do to solve this problem. I don't know what to do.
Anyway, now the HTML editor does not work. If I try to access the script directly I get
Not Acceptable
An appropriate representation of the requested resource /moodle/lib/editor/htmlaccess.php could not be found on this server.
Apache/1.3.33 Server at www.harkermoodle.org Port 80
I still have the old 1.4.4 scripts, and I tried acessing the php file there as well. Same result.
Something is clearly going on with the latest version of PHP. The editor did work in 1.5.2 before their "upgrade". Anyone have any ideas or suggestions?
I have my homepage with FluxServices as well.
I'm worry because I don't have any idea about when we will this problem fixed.
I think FlusServices must fix because they claim to be a Moodle hosting service as you said.
Richard,
Martin Dougiamas said Moodle works with PHP 4.3.11 in other forum:
http://moodle.org/mod/forum/discuss.php?d=28777
I'm telling that to FluxServices Support Staff.
Problem solved.
FluxServices found a security configuration problem:
Hello Gerardo,
After some digging through the log files I believe I have found the issue.
"Access denied with code 406. Pattern match "/lib/" at THE_REQUEST."
mod_security is picking up the use of /lib/ and filtering it out as /lib/ off the root of the server is used in many remote attacks.
I have modified the filter which should allow for the usage of /lib/ outside the root for scripts which directories entitled lib such as Moodle.
Give it a shot now.
Richard
I come back to see this topic and am happy to know that there is some solution from the problem on the hosting side.
But I don't understand how to do , can I fix it myself or what should I tell my web-hosting service provider to do ?
what is this ?
mod_security is picking up the use of /lib/ and filtering it out as /lib/ off the root of the server is used in many remote attacks.
I have modified the filter which should allow for the usage of /lib/ outside the root for scripts which directories entitled lib such as Moodle.
My new website at http://www.trizthailand.com/elearning still has the same problem with the old hosting provider,
This is to confirm that the no html editor problem has been solved by modifying the filter which should allow for the usage of /lib/ outside the root for scripts which directories entitled lib such as Moodle.
My hosting provider has disabled mod_security temporarily and the html editor toolbar shows up.
He is finding the way to modify the filter and enable mod_security again.
Anyone can gives the details of modifying the filter ?