WordPress.org

Support

Support » Plugins and Hacks » Amazon Auto Links - Amazon Associates Affiliate Plugin » [Resolved] Could not locate admin.php. Please consult the administrator.

[Resolved] Could not locate admin.php. Please consult the administrator.

  • Hello,

    Just installed a new wordpress for my website, and I have found this plugin.
    I have installed it, and I have started to set it up.

    I am reciving the “Could not locate admin.php. Please consult the administrator.” error message immediately.

    Ipage hosting, blank wp install to a subdirectory (I own more domains).

    The admin.php is in the wp-admin folder.

    Can you please help me?

    http://wordpress.org/extend/plugins/amazon-auto-links/

Viewing 4 replies - 1 through 4 (of 4 total)
  • It can recognize that the wp was installed into a subdirectory?
    the wordpress was installed here: ./subdirectory

    so now the admin.php is here:
    /subdirectory/wp-admin/admin.php

    Plugin Author miunosoft

    @miunosoft

    As we discussed in E-mail, this problem occurred with a third party installer and could be solved by editing the line around #18 in \inc\amazonautolinks_selectcategory.php

    $file_admin = $abspath . 'wp-admin/admin.php' ;

    For anybody who encounter this similar issue, I’ll leave the note.

    • First, you need to find out the ABSPATH value defined in your WordPress. Embed the following line in functions.php in your theme.
      echo ABSPATH;
    • It will give something like /home/username/httpdoc/blog. Then assuming you got the path and change the above mentioned line to:
      $file_admin = '/home/username/httpdoc/blog';

    The assigned path must be yours which you find out with echo ABSPATH;

    Plugin Author miunosoft

    @miunosoft

    Ops, had a mistake there. (somehow I cannot edit the post, so I’m posting here)

    The edited line should be like,
    $file_admin = '/home/username/httpdoc/blog/wp-admin/admin.php';

    (the wp-admin/admin.php part was missing.)

    Hi,

    Just need to know the maximum number of units that we can add using this plugin that is without upgrading to the pro version???

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘[Resolved] Could not locate admin.php. Please consult the administrator.’ is closed to new replies.
Skip to toolbar