WordPress.org

Ready to get started?Download WordPress

Forums

Publish 2 Ping.fm
Plugin uses bad add_menu_page arguments (5 posts)

  1. Chris Jean
    Member
    Posted 3 years ago #

    In the php/admin.php file is the following section:

    $page = add_submenu_page('options-general.php',
        'Publish 2 Ping.fm Settings',
        'Publish 2 Ping.fm', 9, basename(__FILE__),
        array(&$this, 'printAdminPage'));

    The "basename(__FILE__)" turns into "admin.php". So, this section of code declares that the plugin's admin menu page is located at domain.com/wp-admin/admin.php. Since most generic admin pages are accessed as domain.com/wp-admin/admin.php?page=pagename, this section of code is causing issues with some plugin and theme admin pages. Affected pages simply produce the following error:

    You do not have sufficient permissions to access this page.

    Changing "basename(__FILE__)" to "publish-2-pingfm" fixes the issue.

  2. cingcong
    Member
    Posted 3 years ago #

    Woaaa.. THIS IS THE RIGHT SOLUTION! This took me losing a day to solve this problem cause. I'm trying to install publish 2 ping FM in bbc6.info but it always triggering permission error on wassup plugin. Now, the two work again like a charm.

    Thanks to post your solution Chris Jean!! you are the saviour ! I love you Man!

  3. Aaron Frankel
    Member
    Posted 3 years ago #

    AHHHH HAAAAAA!!! Thanks Chris. Nice work.

  4. ELMIT
    Member
    Posted 3 years ago #

    Chris, thank you very much!!!

  5. wesleywilliams
    Member
    Posted 2 years ago #

    Hi, we had the same problem with one of our client and found the fix before reading this thread. We fixed the plugin for them and uploaded to our server, if you are not sure how to fix it yourself or if it has not been updated by the developer, the fix is based on version 1.1.
    Feel free to download it from our server, the only thing we changed was the fix for the permissions.

    Hope this helps someone,

    http://cdn.plugindynamo.com/plugins/publish-2-pingfm/publish-2-pingfm.zip

    Thanks,
    Plugin Dynamo
    http://plugindynamo.com

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic