Jump to content

Help! outputclientarea() error when user not logged in


Andy Maycock

Recommended Posts

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

Link to comment
Share on other sites

  • 9 months later...

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