Jump to content

Incorrect image path


Recommended Posts

That is actually in the img src tag in the html.

                <a href="#" class="module-selector btn-tld-registrar" data-registrar="enom" data-registrar-name="Enom">
                    <img id="imgTldImportRegistrarEnom" src="/customadminfolder/\modules\registrars\enom\logo.png" alt="Enom">
                </a>

 

Link to comment
Share on other sites

  • WHMCS Support Manager

Hi @bendrop,

The image is located at /modules/registrars/enom/logo.png so the admin directory shouldn't be referenced at-all.

A couple of questions to help get to the bottom of this, if you please:

  1. Do you see the registrar logo images correctly displayed in the Addons > Apps & Integrations page?
  2. Is WHMCS installed on a Windows (IIS) server?
  3. What is the Setup > General Settings > System URL value?
  4. What is the $customadminpath value in the configuration.php file?
  5. Upload the attached test script to your WHMCS installation directory (not the admin) and visit in your browser. What output do you get?

script_name.php

Link to comment
Share on other sites

11 hours ago, WHMCS John said:

Hi @bendrop,

The image is located at /modules/registrars/enom/logo.png so the admin directory shouldn't be referenced at-all.

A couple of questions to help get to the bottom of this, if you please:

  1. Do you see the registrar logo images correctly displayed in the Addons > Apps & Integrations page?
  2. Is WHMCS installed on a Windows (IIS) server?
  3. What is the Setup > General Settings > System URL value?
  4. What is the $customadminpath value in the configuration.php file?
  5. Upload the attached test script to your WHMCS installation directory (not the admin) and visit in your browser. What output do you get?

script_name.php

1. Yes
2. Yes
3. https://my.domain.com/
4. $customadminpath = 'customadminfolder';
5. /script_name.php

I've just noticed too that in the img src, the path is using backslashes..

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated