Solved

Vtiger 5.4 portal url error

Posted on 2014-01-16
6
311 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
Problems using Powershell and Active Directory?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

 
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

Problems using Powershell and Active Directory?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

Question has a verified solution.

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

Developers of all skill levels should learn to use current best practices when developing websites. However many developers, new and old, fall into the trap of using deprecated features because this is what so many tutorials and books tell them to u…
Part of the Global Positioning System A geocode (https://developers.google.com/maps/documentation/geocoding/) is the major subset of a GPS coordinate (http://en.wikipedia.org/wiki/Global_Positioning_System), the other parts being the altitude and t…
Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…
The viewer will learn how to count occurrences of each item in an array.

810 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