Jump to content
  • 0

Invoice Due (Copy) Email - Client Url Wrong


tenaki

Question

This is my fault I think as I previously changed the directory from client to services

 

I thought all the urls were ok except  I noticed today the url in the client email

 

This invoice has already been paid, so no payment is necessary for this one, but your account may have other balances. To login to your account, please visit http://mysiteetc.com/client/.

 

Should be http://mysiteetc.com/services. or /services/client/ maybe

 

Actually it should also be https?

 

Any ideas please, I have looked in config but couldn't see anything obvious

Edited by tenaki
Link to comment
Share on other sites

10 answers to this question

Recommended Posts

  • 0

Company hostname should just be "mydomain.com".

The Root Web Directory should be the full path to the web directory (not where Blesta is installed), e.g. "/home/user/public_html/"

 

If you email yourself a copy of a client's invoice, the email template should contain the concatenation of your company hostname, web directory (i.e. "services/"), and the location of the client interface from the routes (default "client/"), e.g. "mydomain.com/services/client/". Check your Invoice Due (Unpaid) email template URLs. If it still appears to be an incorrect URL, try navigating through pages in the client interface. The client interface uses the same URLs.

Link to comment
Share on other sites

  • 0

You should update the email templates to set https:// for your links where necessary.

 

Under Settings > System > General for "Root Web Directory", is this path correct?  If it's not, please correct it. It should be the full server path to your Blesta installation directory, ie /home/username/public_html/ -- wherever Blesta is installed.

Link to comment
Share on other sites

  • 0

The forward slash should indeed be included at the end. So the paths are all correct there, but the links have the wrong path?

 

Since those emails are likely being sent out via cron, I wonder if it can't detect the path via CLI. Try testing this out, via your browser. If you find an invoice on a clients profile page, click the check box and have it sent to yourself, does the correct URL appear or is it the same?

Link to comment
Share on other sites

  • 0

No its the same Paul

 

I did notice that Provision Paid Pending Services hasn't run, would that affect it?

 

It shouldn't no, though that may be a separate issue. Check if any are hung in Tools > Logs > Module Log.

 

You could put a PHP file in a sub-directory in the server with the following PHP code in it: <?php phpinfo(); ?> and then load up the file in your browser to see if it detected its location. That's effectively what Blesta does, is check the path and determine what the full URL ought to be.

 

Might need some feedback from Cody or Tyson on this, maybe they have an idea of what may be causing the issue. More details about your server environment would be helpful though. OS, Web Server, MySQL, PHP versions.

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
Answer this question...

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

Loading...
×
×
  • Create New...