Page 1 of 1

pretty URLs with mod_rewrite breaks editing global content blocks [solved]

Posted: Fri Jan 25, 2008 2:07 pm
by tcarroll
[UPDATE - this was caused by a conflict between GCB and Archiver module. After removing Archiver all is well.]

I'm running CMSMS 1.2.3. Added the .htaccess file below, and all is working well except when editing a global content block (Content -> Global Content Blocks --> --> )

The URL prior to clicking submit is: http://www.sitename.org/cms/admin/edithtmlblob.php?htmlblob_id=1

After submit, I get a blank page at: http://www.sitename.org/cms/admin/edithtmlblob.php

.htaccess is as follows (copied straight off the CMSMS web site example):
# BEGIN Optional settings

# Turns off directory browsing
# not absolutely essential, but keeps people from snooping around without
# needing empty index.html files everywhere
Options -Indexes

# Deny access to config.php
# This can be useful if php ever breaks or dies
# Use with caution, this may break other functions of CMSms that use a config.php
# file.  This may also break other programs you have running under your CMSms
# install that use config.php.  You may need to add another .htaccess file to those
# directories to specifically allow config.php.

order allow,deny
deny from all


# Sets your 403 error document
# not absolutely essential to have,
# or you may already have error pages defined elsewhere
# ErrorDocument 403 /forbidden403.shtml

# No sense advertising what we are running
ServerSignature Off

# END Optional Settings

# BEGIN CMSMS and Rewrite Rules
# Make sure you have Options FollowSymLinks
# and Allow on

RewriteEngine On

# Might be needed in a subdirectory
#RewriteBase /

# URL Filtering helps stop some hack attempts
#IF the URI contains a "http:"
RewriteCond %{QUERY_STRING} http\: [OR]
#OR if the URI contains a "["
RewriteCond %{QUERY_STRING} \[ [OR]
#OR if the URI contains a "]"
RewriteCond %{QUERY_STRING} \] [OR]
#OR if the URI contains a ""
RewriteCond %{QUERY_STRING} (\|%3E) [NC,OR]
#OR script trying to set a PHP GLOBALS variable via URL
RewriteCond %{QUERY_STRING} GLOBALS(=|\[|\%[0-9A-Z]{0,2}) [OR]
#OR any script trying to modify a _REQUEST variable via URL
RewriteCond %{QUERY_STRING} _REQUEST(=|\[|\%[0-9A-Z]{0,2})
RewriteRule ^.*$ - [F,L]
# END Filtering

# CMSMS Rewriting
# Set assume mod_rewrite to true in config.php and clear CMSMS cache
RewriteCond %{REQUEST_FILENAME} !-f [NC]
RewriteCond %{REQUEST_FILENAME} !-d [NC]
RewriteRule ^(.+)$ index.php?page=$1 [QSA]
# END CMSMS

# END Rewrite rules
Any suggestions?

Re: pretty URLs with mod_rewrite breaks editing global content blocks

Posted: Fri Jan 25, 2008 10:31 pm
by Pierre M.
Hello,

if "all is working" except you "get a blank page" (no 404, no 403) when editing a GCB, I don't think it is a matter of URL rewriting (but I can be wrong as I don't know how edithtmlblob.php works).

What about a broken upload ? (of edithtmlblob.php & such)
What about a hosting issue ? (memory limit, time limit...)

Please look at the source of this "blank page". Is it blank or truncated ?
Please review your http logS and try to set debug to true.

Pierre M.

PS : try another browser on another computer, but I don't bet on this.

Re: pretty URLs with mod_rewrite breaks editing global content blocks

Posted: Fri Jan 25, 2008 11:42 pm
by calguy1000
and when you remove the .htaccess it works again?

Re: pretty URLs with mod_rewrite breaks editing global content blocks

Posted: Mon Feb 04, 2008 3:15 pm
by kendo451
There has been a bug in Edit Global Content since 1.1.  This problem does not have to do with .htaccess

Re: pretty URLs with mod_rewrite breaks editing global content blocks [solved]

Posted: Tue Mar 04, 2008 4:12 pm
by adsilva
I have a similiar problem but the GCB edits fine.  i get a blank page after "submit" when I am editing Pages. also I don't have the Archiver Module installed.

i did move my files from one host to another just as described earlier.