Solved

Vtiger 5.4 portal url error

Posted on 2014-01-16
6
316 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
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Deprecated and Headed for the Dustbin By now, you have probably heard that some PHP features, while convenient, can also cause PHP security problems.  This article discusses one of those, called register_globals.  It is a thing you do not want.  …
This article discusses how to create an extensible mechanism for linked drop downs.
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
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 …

756 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