i am trying to install osticket. I have given my local webserver address but its not going further and indicating invalid URL.

i have installed easyphp in c:\program files\easyphp 1-8

my web files are in C:\Program Files\EasyPHP1-8\www

HelpDesk URL: http://localhost/osticket/upload(http://localhost/osticket/upload)

its not accepting this URL. Please let me know where i am doing wrong. i have tried to change url path to other than this directory which is also not working

This problem is due to the ./include/class.validator.org, in this file there is a functions is_url and this does not allow localhost. Off course you can work around this and edit this functions. I tested it and the system installs osTicket.

Unfortunately there are also problems after installation on localhosts (like XAMPP for example) and I haven't got solutions for this yet.

Class.validator.php

Hi,

I have the same problem. I installed it on localhost and in the Help Desk URL I have the same error : "URL required"

How can i change this function "IS_URL" in Class.validator.php? to be able localhost installation ?

I'm testing it under Drupal, and i hope that it can be run correctly

Thanks

As far as I can see now I think I finally solved all localhost issues. I got it up and running and now testing.

Since there are a few changes to made to code (in multiple files) I will have to see what's necessary. I will post more info later.

Ps. I changed the thread title so that it is more clear.

Ok, I did a few tests and as far as I can see now everything works fine. Please note that this is just a temporarely solution for those who can't wait for the next release.

To install osTicket on a localhost, do the following:

In class.validator.php change:

function is_url($url) {

return preg_match('/^(http|https|ftp):\/\/(*(?:\.*)+):?(\d+)?\/?/i',$url)?true;

}

into

function is_url($url) {

$urlregex = "^(https?)\:\/\/";

// USER AND PASS (optional)

$urlregex .= "(+(\:+)?@)?";

// HOSTNAME OR IP

$urlregex .= "+(\.+)*"; // http://x = allowed (ex. http://localhost, http://routerlogin)

//$urlregex .= "+(\.+)+"; // http://x.x = minimum

//$urlregex .= "(+\.)*{2,3}"; // http://x.xx(x) = minimum

//use only one of the above

// PORT (optional)

$urlregex .= "(\:{2,5})?";

// PATH (optional)

$urlregex .= "(\/(\.?)+)*\/?";

// GET Query (optional)

$urlregex .= "(\?*)?";

// ANCHOR (optional)

$urlregex .= "(#*)?\$";

return eregi($urlregex, $url)?true;

}

Now you should be able to install osTicket without any problems.

After installation (not before) you have to do something else.

In main.inc.php change:

require('config.php');

into

require('ostconfig.php');

and rename the file "config.php" to "ostconfig.php".

It's important to do this after installation, because the setup needs the config.php.

If this "fix" gives you any errors, just post it here. If you don't get any errors regarding this also let it know, because we need to know if it's suitable to put it in the next release.

5 days later

Dear friends,

I have resolved the issue days back but I could not share it due to internet problems.

During installation I just changed

http:\\localhost

to

http:\\127.0.0.1

and the problem solved.

Now i am using osticket and enjoying it. This is wonderful and comprehensive product. I was searching for task management software for months and finally got this I hope this will satisfy my company needs.

Thanks for writing reply 4ice and others i really appreciate time you spent finding and writing answers here.

4 days later

To fix http://www.osticket.com/forums/showthread.php?t=67:(http://www.osticket.com/forums/showthread.php?t=67:)

Fatal error: Cannot redeclare class Config in

myserver\upload\include\classs.config.php on line 18

Worked for me, renaming the fil config.php to ostconfig.php

very strange bug. you guys should really get the ROOT_PATH field from the config table instead of hardcoding it everywhere which is why it maybe a little dodgy.

I've tried a lot of other ticket systems they all take the ROOT_PATH from database never hard coded.

Thanks for quick fix.

Ah spoke too soon, now a different Fatal error: Cannnot redeclare class POP3 in ... include\\class.pop3.php line 24 referer scp/admin.php

I hope all the classes don't suffer from this problem? Anyway I guess I should wait for RC3 before testing this again.

During testing I experienced no problems with RC3 on a localhost server. All issues I had with RC2 are solved, at least on my configuration.

I had the "cannot redeclare" error as well with RC2, it was due to a conflict in names. When I renamed the file config.php this problem was solved.

But I think it's best to wait for RC3, I hope Peter will be able to release it very soon.

Write a Reply...