After latest upgrade, cannot get to FreePBX GUI - (Again)

Well, I got my framework back by simply do:

./module_admin download framework

Modify the framework module “install.php” and commenting

//if (!defined(‘FREEPBX_IS_AUTH’)) { die(‘No direct script access allowed’); }

Then, run

./module_admin install framework

From then, the "No direct … " did not appear anymore!

Great!

Good night

Beat

where is the module “install.php”? what is the directory? thanks

After upgrade from 2.9.0.4 to 2.10.0beta3 the Framework does not work well and I’m not able to continue the upgrade of all modules.
When I try to manage them from the menù “Module Admin” and I try to check online, the system propose me the login page and after that put me in the main page (that is not visible correctly).

From system, I have tried to manage the upgrade using:

./module_admin download framework
./module_admin upgrade framework

with the following output:
Downloading 2565759 of 2565759 (100%)

Untaring…Done
Module framework successfully downloaded
Module framework successfully installed

SETTING FILE PERMISSIONS
Permissions OK

Apparently all is fine but the Framework does not work.
Thank you

I have manually upgrade the system:
./module_admin upgradeall

after that I have also upgrade asterisk form 1.6 to 1.8:
yum update --enablerepo=asterisk-1.8

reboot the server.
The issue with framework was solved. It was related to permission in php session dir (/var/lib/php/session)
I have chowned the session dir to asterisk user and all is working fine now.

Regards

To get mine to work…

Login in to my server via SSH:

cd /usr/src/
wget http://mirror.freepbx.org/freepbx-2.10.0beta2.tar.gz
tar zxvf freepbx-2.10.0beta2.tar.gz
cd freepbx-2.10.0beta2
./start_asterisk start # for upgrades use: amportal start
./install_amp

Then was able to go to the web GUI, and perform the necessary upgrades… Rebooted machine and Voila! Sorted. Thanks Everyone for your help

zeane, thanks that got me back in to the gui…

I’ve had the same message (No direct script access allowed), ever since I attempted to perform an update to 2.10.
Asterisk phones are still fully operational, so it appears that only FreePBX Admin interface is affected.

When I’ve tried “./module_admin download framework”, my system comes back with “-Module not found in repository”.

I have downloaded FreePBX and ran /install_amp
Also performed install_amp, and module_admin upgrade all, and module_admin reload,
as well as a few complete system restarts.

Selected modules from ./module_admin list show:

Module Version Status


asterisk-cli 2.10.0.1 Enabled
asteriskinfo 2.9.0.3 Enabled
backup 2.9.0.4 Disabled; Pending upgrade to 2.10.0.14
broadcast Not Installed (Locally available)
core 2.10.0beta2.0 Enabled
customappsreg 2.10.0.0 Enabled
customcontexts 2.9.0.0 Enabled
customerdb 2.5.0.4 Enabled
dahdiconfig 2.9.0.1 Enabled
dashboard 2.10.0.1 Enabled
featurecodeadmin 2.10.0.0 Enabled
framework 2.10.0beta2.3 Enabled
fw_ari 2.10.0.beta1.0 Enabled
fw_fop 2.9.0.1 Enabled
infoservices 2.10.0.0 Enabled
music 2.10.0.0 Enabled
phpagiconf 2.9.0.2 Enabled
phpinfo 2.9.0.1 Enabled
versionupgrade 2.9.0.0 Enabled
voicemail 2.10.0.0 Enabled

 *      *     *

Any ideas of other things to try?

Eventually I did this:

  • Backed up config files.
  • Downloaded latest FreePBX
  • Used /var/lib/asterisk/moduleadmin to delete FreePBX
  • Installed FreePBX using standard directions.
  • edited /etc/yum.conf to exclude freepbx modules.

I now have full GUI access restored, except for the ability to update modules.

Only problem I have now is that within FreePBX GUI, s/w updates don’t work.

  • FreePBX doesn’t use ‘yum’ to update modules, does it?

I now get, "Warning: Cannot connect to online repository (http://mirror1.freepbx.org, http://mirror2.freepbx.org). Online modules are not available.

I have tested full Internet access. Wondering what other config files I should check?

I have the same problem. Here is what I get when I follow your instructions.

[root@linux01 bin]# ./module_admin download framework

Thu, 05 Apr 2012 17:38:24 -0600 - Got event… fullybooted
Thu, 05 Apr 2012 17:38:24 -0600 - No event handler for event ‘fullybooted’

Untaring…Done
Module framework successfully downloaded
[root@linux01 bin]# ./module_admin install framework

No direct script access allowed[root@linux01 bin]#

What next?

I am installed FreePBX 2.10.0 from tarball
When I try to http://xxx.xxx.xxx.xxx/admin/, its redirect to http://xxx.xxx.xxx.xxx/admin/config.php and says:
“No direct script access allowed”

php -v

PHP 5.3.11 with Suhosin-Patch (cli) (built: Apr 25 2012 18:06:36)

module_admin says:
framework 2.10.0.7 Enabled

I tried all variants which was wrote here - but have no success.

Error: Did not receive valid response from server

XHR response code: 200 XHR responseText: undefined jQuery status: parsererror

How i can solve this problem.