Looks like svn fucked up your index file, did you modify it yourself?
The hilighted lines are not in our code, they were added by a merge problem when you updated.
Tom
On 09/25/2013 05:51 PM, Andrew Hunstiger wrote:
Sorry if this is the wrong channel to send this to.
Not sure what happened, but after syncing to the latest version the web portal seems to be broken. Checking the logs the poller is still working, I just can't access the web page any more.
Checking the error logs the only two events that keep popping up when I try to load the page are:
[Wed Sep 25 09:29:53 2013] [error] [client xxx.xxx.xxx.xxx] PHP Parse error: syntax error, unexpected T_SL in /opt/observium/html/index.php on line 212
[Wed Sep 25 09:52:04 2013] [error] [client xxx.xxx.xxx.xxx] PHP Parse error: syntax error, unexpected T_SL in /opt/observium/html/index.php on line 215
Line 212 points to the start of what I pasted in below. The only part that stood out to me (I honestly have no idea what I am doing, just trying to troubleshoot) is what I highlighted below:
*{*
**
- // Warn about lack of mcrypt unless told not to.*
*<<<<<<< .mine*
*<<<<<<< .mine*
*<<<<<<< .mine*
- if($config['login_remember_me'] = FALSE &&
(!function_exists('mcrypt_decrypt') || !function_exists('mcrypt_encrypt')))*
*=======*
- if($config['login_remember_me'] == TRUE &&
(!function_exists('mcrypt_decrypt') || !function_exists('mcrypt_encrypt')))*
*=======*
- if($config['login_remember_me'] = TRUE &&
(!function_exists('mcrypt_decrypt') || !function_exists('mcrypt_encrypt')))*
*=======*
- if($config['login_remember_me'] == TRUE &&
(!function_exists('mcrypt_decrypt') || !function_exists('mcrypt_encrypt')))*
*>>>>>>> .r4532*
*>>>>>>> .r4471*
*>>>>>>> .r4532*
{*
print_error('Observium now requires mcrypt to be installed for
use by the "remember me" function. Please install the php5-mcrypt package on Ubuntu/Debian or the php-mcrypt package on RHEL/Centos. Alternatively, you can disable this $*
- }*
**
// Authenticated. Print a page.*
if (isset($vars['page']) && !strstr("..", $vars['page']) &&
is_file("pages/" . $vars['page'] . ".inc.php"))*
{*
include("pages/" . $vars['page'] . ".inc.php");*
} else {*
if (isset($config['front_page']) && is_file($config['front_page']))*
{*
include($config['front_page']);*
} else {*
*include("pages/front/default.php");*
}*
}*
}*
**
*}*
Once I commented those lines out, the page was able to load without any problems.
*//<<<<<<< .mine*
*//<<<<<<< .mine*
*//<<<<<<< .mine*
- if($config['login_remember_me'] = FALSE &&
(!function_exists('mcrypt_decrypt') || !function_exists('mcrypt_encrypt')))*
*//=======*
- if($config['login_remember_me'] == TRUE &&
(!function_exists('mcrypt_decrypt') || !function_exists('mcrypt_encrypt')))*
*//=======*
- if($config['login_remember_me'] = TRUE &&
(!function_exists('mcrypt_decrypt') || !function_exists('mcrypt_encrypt')))*
*//=======*
- if($config['login_remember_me'] == TRUE &&
(!function_exists('mcrypt_decrypt') || !function_exists('mcrypt_encrypt')))*
*//>>>>>>> .r4532*
*//>>>>>>> .r4471*
*//>>>>>>> .r4532*
Also, once I did the sync, there was an error (wish I wrote it down first) when running the "./discovery.php -h none" command. I had to follow the following article to fix the problem: http://stackoverflow.com/questions/16677558/startup-unable-to-load-dynamic-l...
Andrew
Description: Description: Description: email_web address
Andrew Hunstiger -- Network Administrator I
1500 N. Greenville Ave., Suite 500
Richardson, TX 75081
Phone: 972.866.3545
Fax: 972.866.3301
Email: Andrew.Hunstiger@argodata.com mailto:Andrew.Hunstiger@argodata.com
--------------------------------------------------- Confidentiality Notice: This electronic mail transmission is confidential, may be privileged and should be read or retained only by the intended recipient. If you have received this transmission in error, please immediately notify the sender and delete it from your system.
observium mailing list observium@observium.org http://postman.memetic.org/cgi-bin/mailman/listinfo/observium