Hello

I had been developing a Drupal site locally and put it up online recently without much problems. Our server runs in PHP Safe Mode, but I've already got most of the website working nicely. The only weird thing that is happening now is that I, as the User 1/Admin with all permissions configured correctly and accordingly, have been unable to add any new nodes. I can manipulate views, add content types, change the appearance, use deltas and contexts, administer users, and do pretty much everything except add new content. I have been working around this by using Devel to generate some nodes, but this is clearly a flawed work flow. Oddly enough, I can view the list of current content and edit any node I please. I just get "Access Denied" when I got to http://www.example.com/node/add. For all content types. And they do show up in the administer menu, so I don't think it has anything to do with the content suddenly being unavailable.

Looking at the action/error log, I find that those "Access Denied" errors are happening to "Anonymous," even though I have clearly logged in. I have tried flushing all the caches, rebuilding permissions, and still no luck. I also tried making another admin account, and that user runs into the same problem. Does anyone know what this might be and how I can fix it? It's kind of important to be able to add content.

Comments

webchick’s picture

Category: bug » support
Priority: Major » Normal

Can you provide steps to reproduce from a clean Drupal 7 installation?

Berdir’s picture

Changing to a support request until someone can prove that this is actually a bug.

The issue queue isn't really a good place to get support, I'd suggest to try http://drupal.stackexchange.com/, there are many dedicated people on there trying to help and answer questions.

Laura Davila’s picture

Thanks for your responses. I wasn't sure how to classify it originally. I cannot remember the specific process as this is one of my first migrated Drupal instances, but I know I was developing locally with MAMP and MySql. I exported my databases and imported them to my live database server. As I said, everything works except node/add.

Laura Davila’s picture

I am still having this issue. I have tried making another user account as an authenticated user and changed permissions so they should be able to add nodes. Still does not work. This happened after a site migration, and I was able to replicate it when I migrated another site and gave it the same .htaccess file. Is there anything that would be coming from that which might be messing things up?

Laura Davila’s picture

Status: Active » Fixed

Solved it!! It had to do with the .htaccess file! I needed to comment the following with regard to SSL Certificates.

# SSL Certificates
#  RewriteCond %{HTTPS} !=on
#  RewriteRule (user|admin) https://%{SERVER_NAME}%{REQUEST_URI} [L,R]
#  RewriteCond %{HTTPS} !=off
#  RewriteRule (node/*/edit|node/add/*) http://%{SERVER_NAME}%{REQUEST_URI} [L,R]

I am not entirely clear on why it suddenly worked, but obviously it has something to do with these rewrite rules. Can anyone explain it to me in layman's terms?

dimapv’s picture

Assigned: Unassigned » dimapv

I have absolutely the same problem. If I try to add new content (node/add) I recive the access denied message. But if I try direct adding new content (node/add/article, for example) - No message, I can make new node. The Laura Davila's solution is not suitable for me... I have last version's module and core, no errors message in apache's logs. The bag appears in developing process, I'm not remember the moment.

dimapv’s picture

Well, I found solution...
http://drupal.org/node/865702#comment-4015758 It's helps for me

Automatically closed -- issue fixed for 2 weeks with no activity.

mssqldestination’s picture

Issue summary: View changes

Hi All,

My site is www.mssqldestination.com

I am facing a Very Strange Issue.

Here is the step I am following. I am using CKEditor

1. Add New Blog Entry
2. Type Heading
3. Paste the content into editor from my .txt file

Click Save, The Blog is not being posted and automatically redirect to Add New blog entry

But, When I type the content and try to Post the Blog gets created.
Earlier I got the Below Error in Log

Type access denied
Date Thursday, April 2, 2015 - 11:10
User Anonymous (not verified)
Location http://www.mssqldestination.com/node/add/blog
Referrer
Message node/add/blog
Severity warning
Hostname 103.246.38.196
Operations

mssqldestination’s picture

Status: Closed (fixed) » Active

Hi All,

My site is www.mssqldestination.com

I am facing a Very Strange Issue.

Here is the step I am following. I am using CKEditor

1. Add New Blog Entry
2. Type Heading
3. Paste the content into editor from my .txt file

Click Save, The Blog is not being posted and automatically redirect to Add New blog entry

But, When I type the content and try to Post the Blog gets created.
Earlier I got the Below Error in Log

Type access denied
Date Thursday, April 2, 2015 - 11:10
User Anonymous (not verified)
Location http://www.mssqldestination.com/node/add/blog
Referrer
Message node/add/blog
Severity warning
Hostname 103.246.38.196
Operations

mssqldestination’s picture

ANyone help pls I am not able to resolve this issue.

Version: 7.14 » 7.x-dev

Core issues are now filed against the dev versions where changes will be made. Document the specific release you are using in your issue comment. More information about choosing a version.