Error when saving Content Block edits
What's causing this?
Looks like i will have to downgrade again
I am using a theme structure (as many others do) of a default.php that uses includes of a header.php and a footer.php. With this structure here are a few steps that I found to resolve my problems:
1) Start your default.php with
defined('C5_EXECUTE') or die(_("Access Denied."));
2) For some reason, I had started header.php and footer.php with the code line:
'<?php defined('C5_EXECUTE') or die(_("Access Denied."));?>'
Don't do that. Only needed in the default.php page.
'<?php Loader::element('header_required'); ?>'
Hope this helps someone else. It worked great for me!
**Solved - See "best answer" link in this thread.
I have a couple of sites in development at the same time and I set them up using subfolders under my domain while in development. It turns out that I should have been using sub-domains to contain each site instead. Because I used the "Pretty URLs" option on one of the sites, requiring an ".htaccess" file in the root of my domain, this file caused the conflict, during edit, on my second site. The problem was resolved by creating sub-domains for each of my sites in development and then moving the ".htaccess" file to the root of the subdomain requiring it.
I hope this documentation helps someone else. It would have saved me several hours of frustration.
ANY help is very appreciated.
I don't know if this is a typo or not, but you mention you have a .htaccess in every "subdirectory". I discovered that I needed to setup a "subdomain" for each site I was working on. Could that be the problem?
http://www.sitea.com -> foldera
http://www.siteb.com -> folderb
This makes each folder the root of the given domain. Thus each folder has its own .htaccess.
This setup always worked before. I'm trying a clean reinstall right now. Let's see if it helps.
And thank you for the offer of help! Very much appreciated, but it seems as the clean install resolved the issue.