Jump to content
  • 0

My "pay Now (No Login Required)" Link Isn't Working (3.4): Workaround


Question

Posted

Hey All,

 

I was having a problem with the "Pay Now (No Login Required)" link being broken when using the default email templates.

 

While the documentation says to use the full filesystem path for the "Root Web Directory", that causes the URLs in my invoice emails to include the full file system path in the URLs.

See here: http://docs.blesta.com/display/user/System+%3E+General -> "Root Web Directory

The full server path to the web directory where Blesta is installed."

 

Other searches in the forum seemed to confirm the use of the full server path.

 

Am I alone in seeing this? If not, how has everyone else solved this? If so, any thoughts on what I might have done wrong? My Blesta setup is quite close to stock.

 

********************

 

After burning too much of a day on understanding what's going on and wrestling with mod_rewrite, I have a workaround. I'd still like to find a proper fix, but at least my clients won't be confused by being sent to my Blesta main page.

 

Posted here so others who encounter this can save some time and headache.

 

Add to .htaccess

# Fix broken Pay Now Links
RewriteCond %{Request_URI} ^<FILE SYSTEM PATH>/client/pay/method(.*)$
RewriteBase /
RewriteRule ^<FILESYSTEM PATH>/client/pay/method/(.*)  /client/pay/method/$1 [R=301,NC,L,NE]
 

 

3 answers to this question

Recommended Posts

  • 0
Posted

Not sure if this helps but I had what I think is a similar problem and Tyson put me right
 

 

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

 

I was using /home/user/public_html/services/ which was wrong

  • 0
Posted

The root web directory should be an absolute path, as tenaki mentioned. If you encounter this issue with emails sent via cron, but not when sending an invoice email to yourself manually, then the issue is most certainly the root web directory path.

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...