WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. fobiss
    Member
    Posted 1 year ago #

    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/

  2. fobiss
    Member
    Posted 1 year 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:
    /subdirectory/wp-admin/admin.php

  3. miunosoft
    Member
    Plugin Author

    Posted 1 year 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
    Member
    Plugin Author

    Posted 1 year 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
    Member
    Posted 10 months ago #

    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???

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic