The 1.8.x.x scripts have been deprecated and are no longer available. To bring a version this old up to date will take hours and may not be successful. The recommendation would be to migrate to a new clean install and keep it updated.
So easy, iterate updating your current machine (module admin) to FreePBX 2.11 (and a version of asterisk that supports it if necessary), make a backup, restore it to your new machine. For “Belt and braces” thinking, image your old machine first .
You really don’t know much about your system. You provided me the wrong information twice. You are not helping us to help you as you are providing the most minimal information possible. Who does that hurt in the end?
The number you provided twice (1.8.1.3-1) is the distro version which hasn’t been updated in years (as we are on 5.x now) so it’s baffling that you say “recent” updates. Furthermore we are all speculating that you are on FreePBX 2.10 but who knows you could be on 2.9 or 2.11? I have no idea. I am shooting in the dark here. Your assumption that there would be a patch for something that is clearly over a year old is also baffling and the fact that you can’t provide more information other than “1.8.1.3-1” just further frustrates all of us. What did you update? What broke it? You talk about running updates but you don’t mention if those updates are distro updates or gui updates? We don’t even know what version of FreePBX you are running to provide you with any sort of “files”. I digress.
Run this from the command line:
amportal a dbug
Go refresh the browser window. Post the errors here. Be through please.
Also run
amportal a ma list
That will give you all the version numbers of every module. post that here as well.
trying to run as user asterisk:
[FPBXDBUGDISABLE] already set to [0]
==> /var/log/asterisk/freepbx_dbug <==
2014-Jun-21 16:55:54 /var/lib/asterisk/agi-bin/enc/vmnotify-newvm.php:0
[WARNING]: License check failed!
2014-Jun-21 17:00:01 /var/www/html/admin/modules/qxact_reports/functions.inc/import_queue_data.php:0
[WARNING]: No license for this product ('PBXact') - make sure zend_optimizer.license_path is properly configured in php.ini!
2014-Jun-21 17:00:01 /var/www/html/admin/modules/qxact_reports/functions.inc/import_queue_data.php:0
[WARNING]: License check failed!
==> /var/log/httpd/error_log <==
[Fri Jun 20 13:16:44 2014] [error] [client 172.248.131.0] PHP Fatal error: Class 'CXPest_ClientError' not found in /var/www/html/admin/modules/cxpanel/lib/CXPest.php on line 0
[Fri Jun 20 13:16:48 2014] [error] [client 172.248.131.0] PHP Fatal error: Class 'CXPest_ClientError' not found in /var/www/html/admin/modules/cxpanel/lib/CXPest.php on line 0
[Fri Jun 20 13:16:50 2014] [error] [client 172.248.131.0] PHP Fatal error: Class 'CXPest_ClientError' not found in /var/www/html/admin/modules/cxpanel/lib/CXPest.php on line 0
[Fri Jun 20 13:26:10 2014] [error] [client 172.248.131.0] PHP Fatal error: Class 'CXPest_ClientError' not found in /var/www/html/admin/modules/cxpanel/lib/CXPest.php on line 0
[Fri Jun 20 15:51:26 2014] [error] [client 172.248.131.0] PHP Fatal error: Class 'CXPest_ClientError' not found in /var/www/html/admin/modules/cxpanel/lib/CXPest.php on line 0
[Fri Jun 20 16:17:17 2014] [error] [client 172.248.131.0] PHP Fatal error: Class 'CXPest_ClientError' not found in /var/www/html/admin/modules/cxpanel/lib/CXPest.php on line 0
[Fri Jun 20 16:17:20 2014] [error] [client 172.248.131.0] PHP Fatal error: Class 'CXPest_ClientError' not found in /var/www/html/admin/modules/cxpanel/lib/CXPest.php on line 0
[Fri Jun 20 16:17:21 2014] [error] [client 172.248.131.0] PHP Fatal error: Class 'CXPest_ClientError' not found in /var/www/html/admin/modules/cxpanel/lib/CXPest.php on line 0
[Fri Jun 20 16:17:22 2014] [error] [client 172.248.131.0] PHP Fatal error: Class 'CXPest_ClientError' not found in /var/www/html/admin/modules/cxpanel/lib/CXPest.php on line 0
[Fri Jun 20 16:17:23 2014] [error] [client 172.248.131.0] PHP Fatal error: Class 'CXPest_ClientError' not found in /var/www/html/admin/modules/cxpanel/lib/CXPest.php on line 0
==> /var/log/asterisk/freepbx_dbug <==
2014-Jun-21 17:05:01 /var/www/html/admin/modules/qxact_reports/functions.inc/import_queue_data.php:0
[WARNING]: No license for this product ('PBXact') - make sure zend_optimizer.license_path is properly configured in php.ini!
2014-Jun-21 17:05:01 /var/www/html/admin/modules/qxact_reports/functions.inc/import_queue_data.php:0
[WARNING]: License check failed!
Please wait...
trying to run as user asterisk:
[FPBXDBUGDISABLE] already set to [0]
==> /var/log/asterisk/freepbx_dbug <==
2014-Jun-21 16:55:54 /var/lib/asterisk/agi-bin/enc/vmnotify-newvm.php:0
[WARNING]: License check failed!
2014-Jun-21 17:00:01 /var/www/html/admin/modules/qxact_reports/functions.inc/import_queue_data.php:0
[WARNING]: No license for this product ('PBXact') - make sure zend_optimizer.license_path is properly configured in php.ini!
2014-Jun-21 17:00:01 /var/www/html/admin/modules/qxact_reports/functions.inc/import_queue_data.php:0
[WARNING]: License check failed!
==> /var/log/httpd/error_log <==
[Fri Jun 20 13:16:44 2014] [error] [client 172.248.131.0] PHP Fatal error: Class 'CXPest_ClientError' not found in /var/www/html/admin/modules/cxpanel/lib/CXPest.php on line 0
[Fri Jun 20 13:16:48 2014] [error] [client 172.248.131.0] PHP Fatal error: Class 'CXPest_ClientError' not found in /var/www/html/admin/modules/cxpanel/lib/CXPest.php on line 0
[Fri Jun 20 13:16:50 2014] [error] [client 172.248.131.0] PHP Fatal error: Class 'CXPest_ClientError' not found in /var/www/html/admin/modules/cxpanel/lib/CXPest.php on line 0
[Fri Jun 20 13:26:10 2014] [error] [client 172.248.131.0] PHP Fatal error: Class 'CXPest_ClientError' not found in /var/www/html/admin/modules/cxpanel/lib/CXPest.php on line 0
[Fri Jun 20 15:51:26 2014] [error] [client 172.248.131.0] PHP Fatal error: Class 'CXPest_ClientError' not found in /var/www/html/admin/modules/cxpanel/lib/CXPest.php on line 0
[Fri Jun 20 16:17:17 2014] [error] [client 172.248.131.0] PHP Fatal error: Class 'CXPest_ClientError' not found in /var/www/html/admin/modules/cxpanel/lib/CXPest.php on line 0
[Fri Jun 20 16:17:20 2014] [error] [client 172.248.131.0] PHP Fatal error: Class 'CXPest_ClientError' not found in /var/www/html/admin/modules/cxpanel/lib/CXPest.php on line 0
[Fri Jun 20 16:17:21 2014] [error] [client 172.248.131.0] PHP Fatal error: Class 'CXPest_ClientError' not found in /var/www/html/admin/modules/cxpanel/lib/CXPest.php on line 0
[Fri Jun 20 16:17:22 2014] [error] [client 172.248.131.0] PHP Fatal error: Class 'CXPest_ClientError' not found in /var/www/html/admin/modules/cxpanel/lib/CXPest.php on line 0
[Fri Jun 20 16:17:23 2014] [error] [client 172.248.131.0] PHP Fatal error: Class 'CXPest_ClientError' not found in /var/www/html/admin/modules/cxpanel/lib/CXPest.php on line 0
==> /var/log/asterisk/freepbx_dbug <==
2014-Jun-21 17:05:01 /var/www/html/admin/modules/qxact_reports/functions.inc/import_queue_data.php:0
[WARNING]: No license for this product ('PBXact') - make sure zend_optimizer.license_path is properly configured in php.ini!
2014-Jun-21 17:05:01 /var/www/html/admin/modules/qxact_reports/functions.inc/import_queue_data.php:0
[WARNING]: License check failed!
In an effort to not get flamed (again) for posting something, I figured I’d just throw something out here on the internet for anyone that happens to run by this.
Ran a FreePBX upgrade this morning that bricked my amportal. Was getting:
PHP Fatal error: Call to undefined function setup_userman() in /var/www/html/admin/modules/cxpanel/lib/PHPMailer/class.phpmailer.php on line 0
After running an strace on module admin I found this:
lstat("/var/www/html/admin/modules/cxpanel/lib/PHPMailer/class.phpmailer.php", {st_mode=S_IFREG|0664, st_size=117475, …}) = 0
So I went into cxpanel/functions.inc.php and deleted the userman check… (lines 45-63)
//Setup userman hooks
if(!function_exists(‘setup_userman’)){
global $amp_conf;
$um = module_getinfo(‘userman’, MODULE_STATUS_ENABLED);
if(file_exists($amp_conf[‘AMPWEBROOT’].’/admin/modules/userman/functions.inc.php’) && (isset($um[‘userman’][‘status’]) && $um[‘userman’][‘status’] === MODULE_STATUS_ENABLED)) {
include_once($amp_conf[‘AMPWEBROOT’].’/admin/modules/userman/functions.inc.php’);
} else {
//dont do anymore work, we need userman and it needs to be enabled
}
if(function_exists(‘setup_userman’)) {
try {
$userman = setup_userman();
$userman->registerHook(‘addUser’,‘cxpanel_userman_add’);
$userman->registerHook(‘updateUser’,‘cxpanel_userman_update’);
} catch(\Exception $e) {
//dont do anymore work, we need userman and it needs to be enabled
}
}
}
– Reran the upgrade script and it worked fine. Just an FYI for anyone that sees this.
Where did you get flamed? This has been posted many times but deleting the cxpanel directory and then re-downloading it through module admin will solve the issue as well