Support Forum

Importer says "Sorry, you are not allowed to access this page."

CA Chris_Andrews
Chris_Andrews
Member

Would like to import bbpress posts into my new simple-press forum.

I installed sp-import into the regular wordpress plugin folder. 

The ‘importer’ link appears in the Forum admin menu.

When I click on it, it takes me to: mysite.com/wp-admin/admin.php?page=sp-import/admin/spimport-setup.php

and that page says “Sorry, you are not allowed to access this page.”

Argh, sometimes WP is so annoying.

Thought that this might be a permissions issue, so I chmod -R 777’d the entire sp-import folder. Didn’t make any difference. 

Suggestions? 

Thanks for any help –

Chris

57 Answers

New Answer

MP Mr Papa
Mr Papa
Member

did you install it as a WP plugin (not SP)?

I assume you also tried going to the WP dashboard and then back to the importer menu?

Are you accessing as SP Admin?

CA Chris_Andrews
Chris_Andrews
Member

> did you install it as a WP plugin (not SP)?

Yep, through the WP dashboard and appears as a wp plugin on the plugins page

> I assume you also tried going to the WP dashboard and then back to the importer menu?

Just tried again to make sure and got the same thing

> Are you accessing as SP Admin?  

hmmm, not sure what you mean by that…. I uploaded both SP and the importer as the WP admin.

MP Mr Papa
Mr Papa
Member

SP and WP admins are two different things.  Not even sure it matters but checking. 

Csn you access all the SP menus?

CA Chris_Andrews
Chris_Andrews
Member

Yes, from ‘forums’ to ‘toolbox, they all load ok. Just the ‘importer’ one that doesn’t.

YS Yellow Swordfish
Yellow Swordfish
Member

Well I just went through the same motions on a test site using the latest WordPress – downloaded; uploaded as a zip and installed; activated. And it all went smoothly. So I do not believe there is any inherent problem with the zip and the code files.

And it is definitely WordPress itself that is throwing you out.

There is one thing I would like to check if you would. Can you visit your server either through ftp or your hosting control panel and take a look at the WP plugins folder. Just check, if you would, the name of the importer folder. It should literally just be ‘sp-import’.

CA Chris_Andrews
Chris_Andrews
Member

Checked and the directory is:  sp-import . 

I’ve tried both manual and automatic install of the importer, setting file permissions to 777, increasing memory, deactivating all my plugins except for Simple:Press and the SP importer, cleared out just about everything in my functions.php to see if there was some conflict there. No joy. 

Ran the debugger (define( ‘WP_DEBUG’, true );) with all plugins except SP and the importer deactivated and my functions.php cleared out and no php errors noted, still just the “Sorry, you are not allowed to access this page.”

Switched themes (to 2011), no difference.

hmmm, stuck for now.

YS Yellow Swordfish
Yellow Swordfish
Member

So what about other WP plugins? Anything active to do with security, user checking, capabilities etc.,, that might be disallowing this? I have been talking to people just over the last week or two who have just used the importer – one of them from bbPress…

CA Chris_Andrews
Chris_Andrews
Member

Not that I have found, I deactivated my Shield plugin, no difference, checked the log it keeps and nothing related to SP and the importer were blocked.

Check my capabilities manager and the SP capabilities are listed there but can’t be edited – I found where they are editable in the SP dashboard and those are all green checked for me.

Please understand that I am not saying that anything is wrong with sp-importer – I’m just trying to figure out how to get around this problem so I can use it – 

Chris

YS Yellow Swordfish
Yellow Swordfish
Member

While we continue to give it some thought here it might be worth you looking at the WP support forums. Just entering that message seems to generate hundreds of hits…

MP Mr Papa
Mr Papa
Member

all else failing, might be worth removing the plugin and then try uploading again in case something went south during the upload…

CA Chris_Andrews
Chris_Andrews
Member

Tried that several times…. thanks though. Still investigating.

Digging into the database, would any of these be affecting me and do they look correct? Or anything else in the database you think I should maybe look at? 

INSERT INTO `wp_sfpermissions` (`permission_id`, `forum_id`, `usergroup_id`, `permission_role`) VALUES
(1, 1, 1, 4),
(2, 1, 2, 4),
(3, 1, 3, 5),
(4, 2, 1, 2),
(5, 2, 2, 4),
(6, 2, 3, 5),
(7, 3, 1, 2),
(8, 3, 2, 4),
(9, 3, 3, 5),
(10, 4, 1, 1),
(11, 4, 2, 4),
(12, 4, 3, 6);

Thanks again for the help!

CA Chris_Andrews
Chris_Andrews
Member

I don’t know what this means, if anything… 

If I try to access the spimport-setup.php file directly, not through admin.php, like this:

mysite.com/wp-content/plugins/sp-import/admin/spimport-setup.php

I get an “HTTP ERROR 500” saying this page isn’t working.

If I try to – directly – access any other url in the SF menu the same way, I get:

“Access denied – you cannot directly call this file”

Does that mean anything? Just grasping at straws now 🙂 But sometimes that provides hints. 

Ran the wp debugger again and logged everything, still no errors there related to spimport-setup.php or any other FS files.

YS Yellow Swordfish
Yellow Swordfish
Member

Sadly no. And as the admin you are not subject to the same permissions as a user in any case.