Hi all,
Ive scoured the forum for an answer to this and banged my head against a wall for days trying allsorts to fix this to no avail.
When a customer who has not logged in to WHMCS goes to viewinvoice.php, such as from an invoice email, they get a blank page. I would expect them to be redirected to a login page which would then forward them to the invoice. if i get the client to log on in the client area first they can then get to the invoice without a problem. it seems the error happens because they are not logged in as a client. this only happend in viewinvoice.php - other pages that require a login do correctly show a login page if the client is not logged in.
i realise that WHMCS returns a blank page if there are errors so with error reporting on if i go to viewinvoice.php I get:
Fatal error: Call to undefined function outputclientarea() in /home/fusionsp/secure/login.php on line 0
However, if I log on to WHMCS as a WHMCS admin or a client area customer and i go to viewinvoice.php i can see the invoice perfectly
This happens no matter which template is set to be used - we have a customised template and the 2 defaults. It happens if i specify an invoice id in the querystring of the url or not although if theres no invoice id and im logged on i get the expected error:
"An Error Occurred. Please Try Again."
The WHMCS client area is on a secure area of our server but whether i use https or http i get the exact same results.
Im not sure what else to try. Any help would be much appreciated!
Andy