“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!
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.
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.
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
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).
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
[[email protected] bin]# pwd
/var/lib/asterisk/bin
[[email protected] bin]# ./module_admin download framework
The following error(s) occured:
Module not found in repository
[[email protected] bin]# ./module_admin upgrade framework
The following error(s) occured:
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
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?