Solved

Vtiger 5.4 portal url error

Posted on 2014-01-16
6
307 Views
Last Modified: 2014-01-24
When we update our ticket status in vtiger, our users automatically get an e-mail saying their ticket has been updated. In the e-mail they receive they can click on a link that leads them to the portal website. When they click on this link it gives them a "The webpage cannot be found" error. This link used to work in the past, now for some unknown reason it doesn't anymore. The portal itself still works when browsing to it manually.

Some of the things we've noticed:

When clicking on the link we sometimes get https://websiteurl/PORTAL/INDEX.PHP and sometimes https://websiteurl/PORTAL/INDEX.PHP?MODULE=HELPDESK&ACTION=INDEX&TICKETID=1253&FUN=DETAIL in our browser with a "The webpage cannot be found" error" error.

Our webportal url is https://websiteurl/PORTAL/login.php, which works when surfing to it manually.

How can we fix this? Thanks!
0
Comment
Question by:ICTSYSTEMS
  • 3
  • 3
6 Comments
 
LVL 11

Assisted Solution

by:jausions
jausions earned 500 total points
ID: 39786795
Is the all CAPS normal, especially for the "INDEX.PHP" part?
Check your web server logs for the call that generates the "not found" response.
Is it a web server "Not found" (HTTP error 404), or an application error (i.e. "module HELPDESK" not found", with a HTTP 200 normal response code)?
0
 
LVL 1

Author Comment

by:ICTSYSTEMS
ID: 39787955
It's a error 404. We're checking the logs now. Might also want to add to my story that we use  URL rewrite in IIS7 on SBS 2011.

404 error while accessing the portal website from the link in a ticket e-mail.
0
 
LVL 11

Expert Comment

by:jausions
ID: 39788141
I would suggest you also use a HTTP header sniffer such as HTTPLiveHeaders add-on for Firefox, you will be able to spot redirect much more easily and most certainly give you the information that will lead to the resolution of your issue.
0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
LVL 1

Accepted Solution

by:
ICTSYSTEMS earned 0 total points
ID: 39788746
So suddenly we noticed there were 2 "//" in the URL before the index.php part when copying the URL link from outlook into notepad. When you clicked on the link the browsers always removed the extra "/"

We adjusted the HelpDeskHandler.php file located in /var/www/html/vtigercrm/modules/HelpDesk/.

At line 31 you have ".$PORTAL_URL."/index.php?module=HelpDesk&action=index&ticketid. We removed the "/" there.

But that's not all, we also had to make HelpDesk lowercase to helpdesk.

Very strange how something like that suddenly stopped working.
0
 
LVL 11

Expert Comment

by:jausions
ID: 39789203
Sometimes problems go unnoticed for a while, then between the time the typo was made and the time it's addressed some changes on the system could have occurred (new software version, server migration, configuration modifications, ...)

To me, the all caps you provided was already a red flag, so I'm not entirely surprised you had to modify that.
0
 
LVL 1

Author Closing Comment

by:ICTSYSTEMS
ID: 39806076
Found the problem by the hint jausions gave with the mentioning of CAPS.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Author Note: Since this E-E article was originally written, years ago, formal testing has come into common use in the world of PHP.  PHPUnit (http://en.wikipedia.org/wiki/PHPUnit) and similar technologies have enjoyed wide adoption, making it possib…
These days socially coordinated efforts have turned into a critical requirement for enterprises.
The viewer will learn how to dynamically set the form action using jQuery.
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

948 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now