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

Returns an error..... In the browser window...
"no direct script access allowed" <<< referred from...
Using latest beta version, did FreePBX Module Update >> 28th Dec 2011 >> Rebooted, now cannot get into GUI. Returning web browser error - although the system appears to function - Just no GUI!
Any assistance would be appreciated. Thanks...
ZEANE - email@zeane.com
__________________
~ ZEANE ~
~ email@zeane.com ~
~ Cape Town - South Africa ~



Same problem here
I just installed the freepbx distro but I can not login to the PBX administrator option. Same message, "no direct script access allowed". In the address bar it shows http://myipaddress/admin/config.php
I checked some system logs but no useful messages.
Any help is more than welcome.
Best Regards
This was a bug that with an
This was a bug that with an older version of the FreePBX 2.10beta and was fixed in a new framework we pushed out yesterday. If you have ssh access to your boxes, go to /var/lib/asterisk/bin/ and run ./module_admin download framework and ./module_admin install framework.
If you still have issues please let me know.
Bryan Walters
Schmooze Com, Inc.
FreePBX Developer
no direct script access allowed (after 2.10 fw upgrade)
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: +
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?
No direct script access allowed
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?
Solved for me....
Thank you very much - managed to get back into the GUI and upgraded modules - Solved - AWESOME!!!!!
~ ZEANE ~
~ email@zeane.com ~
~ Cape Town - South Africa ~
Happy new year to
Happy new year to everybody-
I tested GameGamer43 suggestion but still no luck, I am still receiving the same message:
No direct script access allowed
I have not been able to login to the "pbx administrator" screen since I installed the freepbx distro.
Any help is greatly appreciated.
Best Regards
Something must wrong I
Something must wrong I received the email message that there some updates available:
UPDATE NOTICE: There are 2 modules available for online upgrades
framework 2.10.0beta3.2 (current: 2.10.0beta2.3)
Is it possible that I am downloading and installing the same framework over and over?
Best Regards
Module Admin from command line
Just to be sure perform the upgrade from the command line, this is what the GUI is doing behind the scenes.
You can see all the module_admin commands with ./module_admin --help
SkykingOH: Thank you very
SkykingOH:
Thank you very much for your suggestion.
This is what I did:
./module_admin list | more
Showed:
framework 2.10.0beta2.3 Disabled;
Then
./module_admin enable framework
Once again:
./module_admin list | more
framework 2.10.0beta2.3 Disabled; Pending upgrade to 2.10.0beta3.2
./module_admin upgrade framework
And that last command solved the problem. I was able to login to the GUI.
Once again, thank you very much for your support.
Best Regards
same issue , however i think my problem is bigger
when I check my list
configedit 1.0 Enabled
core 2.10.0beta3.0 Disabled; Pending upgrade to 2.8.0.1
customappsreg 2.10.0.0 Disabled; Pending upgrade to 2.8.0.0
customcontexts 2.10.0.0 Enabled
customerdb 2.5.0.4 Enabled
dahdiconfig 2.10.0.0 Enabled
dashboard 2.10.0.1 Disabled; Pending upgrade to 2.8.0.1
daynight 2.10.0.0 Enabled
dictate 2.10.0.0 Enabled
directory 2.10.0.2 Enabled
disa 2.10.0.0 Enabled
donotdisturb 2.10.0.0 Enabled
dundicheck 2.10.0.0 Enabled
endpointman 2.10.1.3 Enabled
enumplus 0.2.3 Enabled
extensionsettings 2.10.0.1 Enabled
fax 2.10.0.1 Enabled
featurecodeadmin 2.10.0.1 Disabled; Pending upgrade to 2.8.0.0
findmefollow 2.10.0.1 Enabled
additionally
root@pbx:/var/lib/asterisk/bin $ ./module_admin enable framework
returns
No direct script access allowedroot@pbx:/var/lib/asterisk/bin $
Thanks for any suggestions
Issue with framework upgrade
After a fail upgrade from the GUI
I did Upgrading to the 2.10 Beta/RC http://www.freepbx.org/support/documentation/installation/upgrading-your...
Which restores part of the GUI...
But still fail to upgrade the framework
[root@pbx bin]# ./module_admin upgrade framework
Downloading 2564592 of 2564592 (100%)
Untaring..Done
Module framework successfully downloaded
installing files to /var/www/html..done
installing files to /var/lib/asterisk/bin..done
installing files to /var/lib/asterisk/agi-bin..done
Checking for upgrades..1 found
Upgrading to 2.10.0beta3..
-> Running PHP script /var/www/html/admin/modules/framework/upgrades//2.10.0beta3/migration.php
Trying to remove dir /var/www/html/admin/cdr..Not Required
PHP Fatal error: Call to undefined method DB_Error::getRow() in /var/www/html/admin/modules/framework/upgrades/2.10.0beta3/migration.php on line 49
Thanks for your help.
looks like I didn't make
looks like I didn't make sure that the resulting db handled was a proper handle. However if that failed then your CDR db will not have been migrated but everything else should have been done right.
It uses the creds out of cdr_mysql.conf to open that up so you may want to check if that is right.
There's a new framework but that migration will not be run again unless you either your install_amp with force-version or manually go into the db and tell FreePBX you are on an older version of FreePBX so the migration is run again. (The former is much easier).
Philippe Lindheimer - FreePBX Project Leader
FreePBX Training Opportunities - Click Here
Get Official Paid Support - Click Here
Thanks!
The new framework version worked great!
I did not need any of the old CDR so no worries there!
Thanks!
when I force an instal
root@pbx:/usr/src/freepbx $ ./install_amp -f
Checking for PEAR DB..OK
Checking for PEAR Console::Getopt..OK
Console_Getopt: unrecognized option -- f
root@pbx:/usr/src/freepbx $
any other suggestions
core 2.10.0beta3.0 Disabled; Pending upgrade to 2.8.0.1
core 2.10.0beta3.0 Disabled; Pending upgrade to 2.8.0.1
and I get No direct script access allowed
on the website,,,
I am also getting the "No
I am also getting the "No direct script access aloowed" error in the admin panel. I tried to follow the framework download/upgrade and got following message. Any help in this regard is greatly appreciated.
I am running latest beta versionn
[root@voip bin]# pwd
/var/lib/asterisk/bin
[root@voip bin]# ./module_admin download framework
The following error(s) occured:
- Module not found in repository
[root@voip bin]# ./module_admin upgrade framework
The following error(s) occured:
- Module not found in repository
[root@voip bin]#
i cant get to my system again after upgrading
i an receiving error that says i need help please i need to get operational
my email is jvaldez@caribnetgroup.com
when i loging to the gui i see this message bellow
areminder 2.10.1.4 Copyright 2011 by Schmoozecom, Inc., All rights reserved By installing, copying, downloading, distributing, inspecting or using the materials provided herewith, you agree to all of the terms of use as outlined in our End User Agreement which can be found and reviewed at www.schmoozecom.com/cmeula built Tue, 22 Nov 2011 20:07:16 +0000 (1321992436) @r15170
just like that
./module_admin install framework
gives the following error
root@pbx:/var/lib/asterisk/bin $ ./module_admin install framework
No direct script access allowedroot@pbx:/var/lib/asterisk/bin $
as always any help appreciated
jvaldez: can you please
jvaldez: can you please provide more information, such as any errors, versions, any upgrades run?
rwilliams: what version are you using? Also have you attempted to download framework before running install?
Bryan Walters
Schmooze Com, Inc.
FreePBX Developer
Same issue here as RWilliams
Hi
I did a >mistake< during upgrade, as I was not able to upgrade Asterisk 1.6 to 1.8 (Upgrade issues of yum).
So I decided to do:
remove asterisk16 asterisk16-core
ts run
and
install asterisk18-core asterisk18
ts run
which was not really smart, as it removed freepbx all together
Before, I upgraded all the modules of FreePBX to 2.10 (latest) (was 2.9 before)
Well, this message appears in many PHP files though ...
What I found while accessing the conifg.php, is that the error happens somewhere in "// add module sections to $fpbx_menu" section of the code ...
There, the last module I see to get parsed is "backup".
If I "disable" that module by renaming the "functinos.inc.php", I end up in fw_fop ...
If I "disable" that one, I get to the screen, but it looks the old way. So I guess my problem is not related to anything here then, but due to my "freepbx" package added through yum (old) but the db believes it is at 2.10 ...
So, next, I try to remove and re-install modules through module_admin
But not now, something for tomorrow
BTW: will remove module also remove the DB config?
Best regards
Beat
Could not stop trying ...
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
Could not stop trying ...
where is the module "install.php"? what is the directory? thanks
module admin not work after upgrade to 2.10.0beta3
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
module admin not work after upgrade to 2.10.0beta3 - SOLVED
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
Had to do one more step...
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 ~
~ email@zeane.com ~
~ Cape Town - South Africa ~
Worked for me..
zeane, thanks that got me back in to the gui..
No direct script access allowed
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.