View Full Version : Main Page and Admin Panel Not Working
vegaslaptop
12-14-2007, 06:14 PM
The whole installation went through "supposedly" well but when I click on the Admin Panel link, I get a blank page.
Also the Main Page gives me the
Support Ticket System Offline
Thank you for your interest in contacting us.
Our helpdesk is offline at the moment, please check back at a later time.
My config.php is 644 and I did try the edit that Peter suggested for the main.inc.php lines after the installation. No change. Any suggestions?
Thanks
peter
12-14-2007, 09:46 PM
Note that error display is turned off in main.inc.php which could explain the blank page. Enable the error display as shown below.
ini_set('display_errors',1);
ini_set('display_startup_errors',1);
You can enable main page once you are able to login.
vegaslaptop
12-17-2007, 07:24 PM
Peter,
Thank you for your response! This is the error message I am getting:
Warning: main() [function.main]: open_basedir restriction in effect. File(/usr/lib/php/PEAR.php) is not within the allowed path(s): ('.:/proc/uptime:/tmp:/home:/usr/local/lib/php:/nfs/home:/usr/home:/usr/local/bin/') in /home/vsrin3/public_html/support/include/pear/Mail/mimeDecode.php on line 65
Warning: main(PEAR.php) [function.main]: failed to open stream: Operation not permitted in /home/vsrin3/public_html/support/include/pear/Mail/mimeDecode.php on line 65
Fatal error: main() [function.require]: Failed opening required 'PEAR.php' (include_path='.:/usr/lib/php:/usr/local/lib/php:/home/vsrin3/public_html/support/include/:/home/vsrin3/public_html/support/include/pear/') in /home/vsrin3/public_html/support/include/pear/Mail/mimeDecode.php on line 65
isaBERLIN
12-18-2007, 08:13 AM
That's a problem of your webserver's PHP configuration.
not caused by script.
Your PHP is set not to allow access to "/usr/lib/php/PEAR.php"
jessica
12-19-2007, 05:19 PM
Fatal error: Cannot redeclare class Config in C:\xampp\htdocs\xampp\osticket\upload\include\clas s.config.php on line 18
Any ideas how to fix this one? :confused:
vegaslaptop
01-03-2008, 01:41 AM
Where do I have to define the path for PEAR... Apparently my host is not using the standard path.
I read in some forum that I can possibly change the default PEAR path to my custom one?
Any input is appreciated.
Where do I have to define the path for PEAR... Apparently my host is not using the standard path.
I read in some forum that I can possibly change the default PEAR path to my custom one?
Any input is appreciated.
I am facing the same problem here. Like you mentioned a few posts up, I too have that error.
Although I haven't sorted it out yet, I think you can change this in the main.inc.php file. You find here (among others) some PEAR declarations.
define('PEAR_DIR',INCLUDE_DIR.'pear/');
....
//Set include paths. Mainly useful for pear packages..
ini_set('include_path', ini_get('include_path').PATH_SEPARATOR.INCLUDE_DIR .PATH_SEPARATOR.PEAR_DIR);
If you solved it, please let me know!
It seems that I have it sorted out...
I started debugging with
echo "ww";
exit;
Untill I came to the mimeDecode.php file. In this file you have the line require_once 'PEAR.php';
But in my case the PEAR.php file was in the directory above it. When I changed it to:
require_once '../PEAR.php';
Everything worked fine as far as I can see now.
vegaslaptop
01-03-2008, 11:37 PM
Dude,
Thanks a bunch! I had to actually specify the absolute path but as soon as I did that it worked like a charm. I have battled with this for a few hours. Well done and thanks again!
Dude,
Thanks a bunch! I had to actually specify the absolute path but as soon as I did that it worked like a charm. I have battled with this for a few hours. Well done and thanks again!
Cool, glad it worked for you as well! :)
antepli
01-04-2008, 01:26 PM
all thanks I'm problem untie :)
________________________________
ilan sitesi (http://www.cokilan.com)
ojobello
01-04-2008, 05:54 PM
Hi,
After setup, I get blank admin page. Then I enabled the error display in main.inc.php as adviced. The same errors (see below) was reported in the previous threads. Please advice how to resolve this. On my web server, my PEAR.php is in /usr/share/pear directory.
=====start of error message======
Warning: main(): open_basedir restriction in effect. File(/usr/share/pear/PEAR.php) is not within the allowed path(s): (/home/httpd/vhosts/vangage.net/httpdocs:/tmp) in /home/httpd/vhosts/vangage.net/httpdocs/support/include/pear/Mail/mimeDecode.php on line 65
Warning: main(PEAR.php): failed to open stream: Operation not permitted in /home/httpd/vhosts/vangage.net/httpdocs/support/include/pear/Mail/mimeDecode.php on line 65
Fatal error: main(): Failed opening required 'PEAR.php' (include_path='.:/usr/share/pear:/home/httpd/vhosts/vangage.net/httpdocs/support/include/:/home/httpd/vhosts/vangage.net/httpdocs/support/include/pear/') in /home/httpd/vhosts/vangage.net/httpdocs/support/include/pear/Mail/mimeDecode.php on line 65
=====end of error message======
I have been on this for days now.
Maybe it's better to use the PEAR.php file that is included in this project. Because in my case I had the PEAR.php file also somewhere on the server, but couldn't get it to work.
So please try to adjust the file mimeDecode.php and change
require_once 'PEAR.php';
in
require_once '../PEAR.php';
or perhaps you have to specify the absolute path like vegaslaptop.
Edit: I just read your other thread saying that you already tried this. Are you sure you did not set the path wrong?
ojobello
01-05-2008, 08:51 AM
The PEAR error seem resolved. The error I see now is a different one.
Parse error: parse error in /home/httpd/vhosts/vangage.net/httpdocs/support/include/pear/Mail/mimeDecode.php on line 91
On line 91, the entry there is: class Mail_mimeDecode extends PEAR
Can you post line 65 (the line with the require statement). Because if you have an error in that line my system also gives a parse error on line 91.
pgibson
01-06-2008, 12:33 AM
Dude,
Thanks a bunch! I had to actually specify the absolute path but as soon as I did that it worked like a charm. I have battled with this for a few hours. Well done and thanks again!
Hi, I have same issue and am now having issue specifying the absolute path! any hints on this?
vegaslaptop
01-07-2008, 11:01 PM
Hi, I have same issue and am now having issue specifying the absolute path! any hints on this?
Hi pgibson,
Once you enable the error reporting, pay attention to where it's looking for the pear.php
Then in the root directory of your upload, go to /include/pear/mail and open the mimeDecode.php in a text editor (I love Scite). After the first 64 lines (they all are just comments) you will see require_once 'PEAR.php';
There change the 'PEAR.php' to point to the exact full/absolute path of your directory structure which may look something like this
require_once '/home/pgibson/html/support/include/pear/PEAR.php';
instead of the above require_once 'PEAR.php';
This fixed my "pear" problem and all the credit goes to 4ice!
kkman
01-15-2008, 07:06 PM
Hi, again .. well everithing in the code provided here and the current one is allright but still blank "preferences" page .
:( damn..
Did you also try to enable error reporting and see what that gives you?
Hi, again .. well everithing in the code provided here and the current one is allright but still blank "preferences" page .
:( damn..
jonnymaeno
01-26-2008, 12:17 PM
Fatal error: Cannot redeclare class Config in C:\xampp\htdocs\xampp\osticket\upload\include\clas s.config.php on line 18
Any ideas how to fix this one? :confused:
I get this too, 4ice seemed to have missed your message.
It's very strange, everything should be require_once.
ah, it's been moved here:
http://www.osticket.com/forums/showthread.php?t=67