Problems, need help? Have a tip or advice? Post it here.
5 posts Page 1 of 1
Hello all! I found CouchCMS a few days ago and I absolutely love it. Documentation is top-notch.

I've started converting one of my websites over to Couch and ran into a problem. In some circumstances, when saving a popup_edit or inline_edit region I'll receive a 403 Forbidden error saying I don't have permission to access /couch/addons/inline/index.php. The following bare-bones template can reproduce the problem (on my server at least).

Code: Select all
<cms:template title='Main'>
   <cms:editable name='news_box' label='News Box' type='richtext' />
   <cms:editable name='main_content' label='Content' type='richtext' />
</cms:template>
<cms:load_edit />
<html>
<head></head>
<body>
<cms:do_shortcodes>
   <cms:show news_box /><cms:popup_edit 'news_box' />
   <cms:show main_content /><cms:popup_edit 'main_content' />
</cms:do_shortcodes>
</body>
</html>


I can edit the main_content region without any problems. But almost any edits to the news_box region (such as making the text bold or adding a new line) results in the Forbidden error when saving. Edits made in the back-end to either region save just fine.

Any idea what could be going on?
Hello and welcome, Thomas.

It clearly seems to be a permission issue.
If your site is online, please grant me temp access (FTP + Couch) and I'll try and see if I can spot something.

Thanks.
PM'ed you the temp credentials.
Thanks Thomas.

I logged-in and studied the problem.
Two things stand out -

1. I ported your template over to my system and everything worked just fine. So no problem with the code.
2. On your server - yes indeed the problem is there.
However even after spending a good couple of hours on it, I fail to see what it could be.

Taking a look at the packets that go out on form-submission, the two editable regions (i.e. one that works and the other that balks) send *exactly* the same data and yet with very different responses from the server.

I renamed the problematic region from 'news_box' to 'news_content' and the server is happy.
Don't know how to explain that.

Well, to be honest, I have seen weirder things as programmer. I find it helpful to attribute such happenings to the 'gremlins in the box' and move on (helps keep my hair on :) ).

So, I am sorry but I think you can just rename the regions to something that is agreeable to your server and continue.

Thanks.
KK, thank you for taking the time to look into my problem. I'm glad it is my server that is crazy rather than myself. I really like your 'gremlins in the box' metaphor. :D

For anyone with the same issue that happens upon this thread, I was using Namecheap for my hosting, and I worked around the problem by just adding '_content' to all my editable regions.
5 posts Page 1 of 1