• Resolved DarkSnowy

    (@darksnowy)


    (Newsletter Version is 3.4.8)

    ‘admin.php?page=newsletter_users_edit’ and ‘admin.php?page=newsletter_emails_theme’ are failing the user_can_access_admin_page() function at line 1646 of wp-admin\includes\plugin.php:

    if ( !isset($_registered_pages[$hookname]) )
    return false;

    I have deleted wp-content/extensions/newsletter/emails and reinstalled manualy with an FTP (not the zip) but the problem persists.
    What information do you require in order to help me with this problem?

    http://wordpress.org/plugins/newsletter/

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Stefano Lissa

    (@satollo)

    You FTP’ed the emails folder of the plugin in the worng place. There is not an extension named “emails”, this is the problem. Delete the extensions folder and reinstall the plugin.

    Thread Starter DarkSnowy

    (@darksnowy)

    I can see how I wasn’t completely clear in my original post.
    However I had seen the last time you dealt with this issue on other form and already tried deleting the extensions folder and reinstalling the plugin.
    I don’t know why there was a newsletter folder in extensions to begin with however I had auto-installed the plugin the first time.

    The ‘get_plugin_page_hookname()’ function returns ‘nmedia-file-upload_page_newsletter_emails_theme’
    So WordPress is complaining that this is not set in $_registered_pages[]

    Plugin Author Stefano Lissa

    (@satollo)

    Hi, actually I really don’t know what is the nmedia-file-upload_page_newsletter_emails_theme.
    Are you sure now in the extensions folder there is not a newsletter/emails subfolder?

    It can be there, but only to contain themes.

    Thread Starter DarkSnowy

    (@darksnowy)

    I deleted the whole extensions folder now, so I’m sure.
    nmedia-file-upload_page_newsletter_emails_theme is simply the hookname given to the page ../wp-admin/admin.php?page=newsletter_emails_theme

    When you try to access a page on the WordPress menu or submenu it tests to make sure the page is in $_registered_pages.
    From what I can see this page isn’t even on the WordPress menu so I’m not clear on why it is being tested at all.
    I have this same version of Newsletters installed onto a second WordPress site with the same version of WordPress and I am not having this problem on the second site. So this is very strange to me and I need help.

    Plugin Author Stefano Lissa

    (@satollo)

    Hi, I resally cannot understand why there is such hook attached to my pages. nmedia remeber you something? Have you a plugin that recall that hook?

    I wonder if tghere is a plugin doing something wrong.

    Thread Starter DarkSnowy

    (@darksnowy)

    The error seems to be stemming from the pages not being in the WordPress menu.
    I have edited the WordPress code to allow access to the pages so it works currently, so long as I don’t update WordPress without making the changes again.
    Is it possible for you to have all your pages in the WordPress menu some time in the future? Perhaps you could use Tabs on your pages like some plugins are doing?

    Thread Starter DarkSnowy

    (@darksnowy)

    I found what was conflicting!
    For those not able or willing to alter WordPress, removing the plugin ‘Nmedia File Uploader Plugin’ fixed all problems.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘You do not have sufficient permissions to access this page’ is closed to new replies.