Amazon Auto Links
[resolved] Could not locate admin.php. Please consult the administrator. (5 posts)

  1. fobiss
    Posted 3 years ago #


    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?


  2. fobiss
    Posted 3 years ago #

    It can recognize that the wp was installed into a subdirectory?
    the wordpress was installed here: ./subdirectory

    so now the admin.php is here:

  3. miunosoft
    Plugin Author

    Posted 3 years ago #

    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;

  4. miunosoft
    Plugin Author

    Posted 3 years ago #

    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.)

  5. rzayak
    Posted 2 years ago #


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

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Amazon Auto Links
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic