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

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Post Reply
tcarroll
New Member
New Member
Posts: 3
Joined: Fri Jan 25, 2008 1:54 pm

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

Post 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?
Last edited by tcarroll on Fri Feb 08, 2008 3:08 pm, edited 1 time in total.
Pierre M.

Re: pretty URLs with mod_rewrite breaks editing global content blocks

Post 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.
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm

Re: pretty URLs with mod_rewrite breaks editing global content blocks

Post by calguy1000 »

and when you remove the .htaccess it works again?
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
kendo451

Re: pretty URLs with mod_rewrite breaks editing global content blocks

Post by kendo451 »

There has been a bug in Edit Global Content since 1.1.  This problem does not have to do with .htaccess
adsilva
New Member
New Member
Posts: 7
Joined: Thu Jan 31, 2008 7:32 pm

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

Post 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.
Post Reply

Return to “CMSMS Core”