SOLVED No gui after installing Blacklist

Status
Not open for further replies.

turalo

Member
Joined
Oct 10, 2013
Messages
75
Reaction score
1
Hi guys, I need your help.

some number was calling one of our extension all the time, seemed some error at the carrier
so we wanted to block it and I installed the Black list module from the modules seciton.
after I got the Installed succesfully message on the screen, all piaf-freepbx screen became blanc/white.
I can only see the main menu, when I click on FreePBX administration, I see a blanc / white screen.
I have tried restarting amportal etc.. even manually uninstalling reinstalling disabling blacklist module via cli does not help. have tried it in all possible browsers same result.

Please help, any advice is much aprisciated.

in my http error log I see this :

this was not the issiu :

[Wed Jun 11 23:35:40 2014] [notice] Digest: done
[Wed Jun 11 23:35:40 2014] [notice] Apache/2.2.3 (CentOS) configured -- resuming normal operations
[Wed Jun 11 23:36:16 2014] [error] [client x.x.x.x] PHP Warning: simplexml_load_file() [<a href='function.simplexml-load-file'>function.simplexml-load-file</a>]: I/O warning : failed to load external entity &quot;&quot; in /var/www/html/index.php on line 263, referer: http://x.x.x.x:9080/_wrapper.htm
[Wed Jun 11 23:36:16 2014] [error] [client x.x.x.x] PHP Warning: Invalid argument supplied for foreach() in /var/www/html/index.php on line 264, referer: http://x.x.x.x:9080/_wrapper.htm
[Wed Jun 11 23:36:47 2014] [error] [client x.x.x.x] PHP Warning: simplexml_load_file() [<a href='function.simplexml-load-file'>function.simplexml-load-file</a>]: I/O warning : failed to load external entity &quot;&quot; in /var/www/html/index.php on line 263
[Wed Jun 11 23:36:47 2014] [error] [client x.x.x.x] PHP Warning: Invalid argument supplied for foreach() in /var/www/html/index.php on line 264
[Wed Jun 11 23:36:53 2014] [error] [client x.x.x.x] PHP Warning: simplexml_load_file() [<a href='function.simplexml-load-file'>function.simplexml-load-file</a>]: I/O warning : failed to load external entity &quot;&quot; in /var/www/html/index.php on line 263, referer: http://x.x.x.x:9080/
[Wed Jun 11 23:36:53 2014] [error] [client x.x.x.x] PHP Warning: Invalid argument supplied for foreach() in /var/www/html/index.php on line 264, referer: http://x.x.x.x:9080/





PBX in a Flash Version = 1.7.5.5 Running on *HARDWARE* │
│ FreePBX Version = 2.9.0.12 │
│ Running Asterisk Version = Asterisk 1.4.21.2 │
│ Asterisk Source Version = 1.4.21.2 │
│ Zaptel Source Version = 1.4.12.1 │
│ Libpri Source Version = 1.4.11.4 │
│ Addons Source Version = 1.4.12




solution was :

Solved

I had my Programmer friend look at it.


he found out that in the file :

/var/www/html/admin/modules/blacklist/functions.inc.php


rule : 21 was :

require('extensions.class.php');

had to be : require(dirname(__FILE__) . '/../../libraries/extensions.class.php');


so my server is working again.


thanks anyway.
 

turalo

Member
Joined
Oct 10, 2013
Messages
75
Reaction score
1
First, you are using a pretty old version of FreePBX and PIAF, you will find it difficult to get support.
Second, what happens when you browse directly to FreePBX using the URL: http://<<<serverip>>/admin ?
Third, the errors you posted have nothing to do with FreePBX, they refer to the main PIAF (kennonsoft) menu. You might try disabling the menu wrapper to see if that helps.



I'm using the old version for few reasons :
1. I dont like the very user unfriendly new menu layout of the freepbx
2. I have some configs on this server which would take a long time to transfer to the new version if installed, as we all know the backup functionality does not work, I have tried it many times but its not possible to import older backups in newer versions.

I was planning to do the move, but that menu is really major problem, and also I was still searching for something that can replace the custom context module, which is very important for me because I want that every extension uses it's own trunk.


so, when I go that link you wrote then it goes to : http://xxxxxx/admin/config.php

and shows empty page blanc / white nothing on it.

also same happens if I disable wrapp menu, and click on administration it goes to same location.


thanks for your time and effort.
 

james

Guru
Joined
Oct 18, 2007
Messages
374
Reaction score
38
I dont like the very user unfriendly new menu layout of the freepbx
You can use freepbx_menu.conf to adjust menu's to your liking
I was still searching for something that can replace the custom context module, which is very important for me because I want that every extension uses it's own trunk.
Use http://schmoozecom.com/extension-routing.php (Free)

Also custom-destinations module can be used to address custom context.
customdest.png
 

turalo

Member
Joined
Oct 10, 2013
Messages
75
Reaction score
1
Ok,

after long tryouts I see that it would be almost inpossible to repair this install, so I going to install the newest version and try to import the info via phpmyadmin / db.

I have tried to do it by complete import, but with no luck. as soon as I import the old db, it brakes the new system.

So the question is :

is it possible to import it partially, for example if import specific tables, sothat the new system not get damaged and work properly ?
anybody tried this ?

any advise / ideas are welcome and much apriciated.


thanks in advance.
 

turalo

Member
Joined
Oct 10, 2013
Messages
75
Reaction score
1
I have imported the sip table and users table also the trunk and outbound routes table, I have the trunks showing completely, but extensions miss some fielsds, fields like secret. outbound routes are not showing any routes at all.
 

turalo

Member
Joined
Oct 10, 2013
Messages
75
Reaction score
1
You can use freepbx_menu.conf to adjust menu's to your liking

Use http://schmoozecom.com/extension-routing.php (Free)

Also custom-destinations module can be used to address custom context.
View attachment 1286




This is becoming a disaster :(

for a week now I have tried to move all to the newest version of PIAF, I have found out that there is some bug in the newest PIAF, bug with the CDR. after a fresh install CDR does not work, calls work fine but not saving in the CDR section.

also I have found out that this BUG is not on all servers, I have installed it on 3 servers. on one server it went completely ok, and worked fine on 2 others, CDR does not work. While I'm using the default procedure, step by step all same.




Now, I will have to find out, to restore / repair this old server somehow.

anybody any help, much aprisciated.
 

turalo

Member
Joined
Oct 10, 2013
Messages
75
Reaction score
1
Hi guys, I need your help.

[Wed Jun 11 23:35:40 2014] [notice] Digest: done
[Wed Jun 11 23:35:40 2014] [notice] Apache/2.2.3 (CentOS) configured -- resuming normal operations
[Wed Jun 11 23:36:16 2014] [error] [client x.x.x.x] PHP Warning: simplexml_load_file() [<a href='function.simplexml-load-file'>function.simplexml-load-file</a>]: I/O warning : failed to load external entity &quot;&quot; in /var/www/html/index.php on line 263, referer: http://x.x.x.x:9080/_wrapper.htm
[Wed Jun 11 23:36:16 2014] [error] [client x.x.x.x] PHP Warning: Invalid argument supplied for foreach() in /var/www/html/index.php on line 264, referer: http://x.x.x.x:9080/_wrapper.htm
[Wed Jun 11 23:36:47 2014] [error] [client x.x.x.x] PHP Warning: simplexml_load_file() [<a href='function.simplexml-load-file'>function.simplexml-load-file</a>]: I/O warning : failed to load external entity &quot;&quot; in /var/www/html/index.php on line 263
[Wed Jun 11 23:36:47 2014] [error] [client x.x.x.x] PHP Warning: Invalid argument supplied for foreach() in /var/www/html/index.php on line 264
[Wed Jun 11 23:36:53 2014] [error] [client x.x.x.x] PHP Warning: simplexml_load_file() [<a href='function.simplexml-load-file'>function.simplexml-load-file</a>]: I/O warning : failed to load external entity &quot;&quot; in /var/www/html/index.php on line 263, referer: http://x.x.x.x:9080/
[Wed Jun 11 23:36:53 2014] [error] [client x.x.x.x] PHP Warning: Invalid argument supplied for foreach() in /var/www/html/index.php on line 264, referer: http://x.x.x.x:9080/




This errors, had nothing to do with my problem, I have just commented out the lines in the index ( wich were RSS) and those errors doe s not appear, anymore, but now still do not know where to start / begin with.

I have checked many logs on the system, and I do not see any error regarding to the blanc page :( there is no error's at all.

anybody knows where can I find the log's for the problem ? or how can I debug it ?
 

turalo

Member
Joined
Oct 10, 2013
Messages
75
Reaction score
1
Solved

I had my Programmer friend look at it.


he found out that in the file :

/var/www/html/admin/modules/blacklist/functions.inc.php


rule : 21 was :

require('extensions.class.php');

had to be : require(dirname(__FILE__) . '/../../libraries/extensions.class.php');


so my server is working again.


thanks anyway.
 

tm1000

Schmoozecom INC/FreePBX
Joined
Dec 1, 2009
Messages
1,360
Reaction score
78
This is an excellent reason to keep up to date on module and FreePBX releases. The said code mentioned above was removed many moons ago therefore the problem itself has also been fixed in many versions (most-likely 2.10+)
 

turalo

Member
Joined
Oct 10, 2013
Messages
75
Reaction score
1
Well its verry easy to say for you, but i had this server uptodate untill some poit. Then there were some time that
We didnot update it because there were compatibility isues with never versions.
I have secured it and m using it without any problems untill this one.

While many of my partners lost really much time and also custommers
Cause they just tried to do what you say, just jump and update.

I have dound an bug i think in the verry ladt version, that installs fine but cdr does not work.
So for me was it not even possible to move to a new one.

So for now i will keep using the old one untill i have succesfully installed a newest version that works. Then i have to move all info manually one by one to the new server.
In my case its double dificult because i use the server as multitenant,
One piaf for many customers / businesses, and i use custom context module to make each extension dial own and only own trunk.

So its not so easy as you think.

As you might know backups also doe not work in 70% of all times.

At least thats my experiance with freepbx latest 7-8 years.

Not one time i had succes with backup restore, there is always some error while restoring.


So its not all so easy and reliable as you suggest :)) not in all cases.

Also the suggestion to use extension routes module from schmooz
Is not right, that module is unable to route call forwards and stupidly enables all routes for all extensions by default :)))

Its veryy good extension that is not built bu an experianced person. And even for me to find out that it cannot callforward they asked to buy support credits :)) shameles capitalists.
 

turalo

Member
Joined
Oct 10, 2013
Messages
75
Reaction score
1
I just got this in my inbox :


turalo, TBryant replied to a thread you are watching at PBX in a Flash Forum.
SOLVED - No gui after installing Blacklist




":)) shameles capitalists."

Said the guy using a free community supported platform to make money off of others.........


I copy pasted it here, because I dont see your reply here anymore, I gues something went wrong ?

Just to make sure you understand what I mean by that ...

I'm ready to pay for anything that I use, it does not matter i'm using it for business or not, I'm ready to pay for other peoples work, specially if i'm using it for business. But it's not there, there is no commercial extension that does this.

the problem is, all of them just have 1 anser, "you are using a pbx as a multi tennant system, it's not meant to use for many companies" blah blah blah blah, cheap technical excuse, it's a soft switch, you got brains and balls ? you program it in anyway you want, in this case I see that many companies are to lazy to give the solution to people like me. while we are willing to pay.

I cannot install a separate pbx for every group of 3-4 people/extension. I have a main system for wich we payed more then 100.000 euro. and we also pay a monthly support fee for it. it does most things we need. We are a telecom provider.

Asterisk we only use for pbxing, for few clients that need some extra futures. Just to make it easy, to make it as it should be in the normal world, we put many customers in 1 server, and use custom context module to route them to their own trunks
that's all, the only problem is its not doing the job for call forwards.

I called them shameles capitalists, because I asked them politely before I started, if it will do the job, they said yes, but for next questions you will have to buy support time.

so i lost a day, installing all preparing all, and testing their extension, and it didnot work, 1 it added all trunks to all extensions automaticaly 2 it didnot do callforward, it's same as custom context, only worse, custom context does not messup anything, you select what you want and when you want and it does it, this extension routing does things that it should not do.
So after a big beef with them, true email, they said yes, you are right it will not call forward to the right trunk, cause it's an internal function.
so they could write that in the description, and also tell me that when I asked them, but no, they thought they will make me buy their worthless support time and then tell me that it does not work :D :D :D not in my chicken :D


So please, do not judge other if you dont know them or their situation.

I'm using PIAF from the first day that I started using open source voip tools. it was like 7-8 years ago if I'm not mistaking. From that day, every day I'm thankfull to anybody that have put effort in making this possible.
and if tomorrow PIAF will change the way they work, and they will make the software not free, but ask money for it, I will be one of the first that will be willing to pay, Of course I would like to have some things work in a better way than they are now.
for example to have a more cleaner freepbx, then it's now on new install, all full with unwanted / unasked modules and stuffs
and that things like selection of permitted routes/trunks would be builtin, etc... just make it a grown up system.
but I'm willing to pay for it if it works and does the job why not ?
But I'm not willing to pay for air, those capitalists I call air sellers, they sell you a solution that does not work.

so Ward I'm sorry for such long reply to this person, I'm just trieng to make a point here, I'm not a parasite that wants all free. I"m just a perfectionist, I like when things are perfect or near perfect, and that's not what freepbx is even including PIAF version.
It's like a baby that needs much learning. shaping etc...

Specially after today, when my friend the programmer told me what kind of errors are there in the code, he letrally said "people that programmed this way must be caught, and slapped in the face and after that they must be punished by beating on their hands for their stupid way of coding things"
and the guy is a multilangual programmer from russia with 20 years of experiance.

So I'm sorry. but dont call me a parasite, cause i'm not.
 

tm1000

Schmoozecom INC/FreePBX
Joined
Dec 1, 2009
Messages
1,360
Reaction score
78
Specially after today, when my friend the programmer told me what kind of errors are there in the code, he letrally said "people that programmed this way must be caught, and slapped in the face and after that they must be punished by beating on their hands for their stupid way of coding things"
and the guy is a multilangual programmer from russia with 20 years of experiance.

Welcome to the Open Source Community where many people from all different walks of life code several parts of a project. None of them being consistent (As it stands there are 7 contributors to blacklist (https://github.com/FreePBX/blacklist/graphs/contributors)).

My point still stands, the more you upgrade the better it gets. Your programmer can talk smack all day long on the code in 2.9 that was released in 2011 that's fine, we are in 2014 now and in release 12. Things are different, things improving and getting better and the code doesn't look the same as it did back then. Are there bad areas, sure, there always will be, especially in the older code where we have to do a cost benefit analysis, as in, is it worth it to actually rewrite old parts of freepbx that work or just leave them because they work, usually it's "leave them because they work". In 12 we are attempting to slowly make everything more object orientated. Heck when FreePBX started people were still using PHP 4 as the go to. That means FreePBX at it's roots was written with PHP 4 in mind! Think about how old that version of PHP is and then think about how old that makes FreePBX. Then ask yourself would people rather see new features or the backend fixed..... I think we all know the answers there, especially if the backend does what it's suppose to do. If you honestly expected everyone here to be able to understand what was wrong in the 2.9 release in regards to your issue I think you are way off base, but it's a community and we all pass around the "helper" card (as in maybe someone is still using 2.9)

I realize we have a language barrier here and mistakes and misunderstands can be made but you've made some offensive remarks already and so have other people. But we don't need a back and forth in here and we don't need you blatantly ousting the bad code because you feel offended (where does that get us in the end?). We know it's bad, there's no reason for you to announce what your professional "Russian" coder said. What does that do for anyone? Including the community here?

Surprisingly the person you said "that is not built bu an experianced person" is the one person who has been maintaing FreePBX for the last 7-8 years of your use.

Also I think it's clear that the original post (to which the author deleted probably because he decided it was in bad form) never called you a parasite. But people will get defensive about the companies and products they work with and work for. You can't blame them for that, or perhaps you can. Because you did.

Heck I'm replying here because I'm honestly offended that you would post what your friend said about the project without knowing any context or history and I think it just needs to be cleared up at some point and everyone needs to take a step back. We might be capitalist, socialist, communist but in the end we are all humans and we all make mistakes and of course the language barrier makes things even more difficult and I can tell english is not your primary language.

I formally request this thread be locked. Closed or whatever. The author has made it clear that 1) He solved the problem 2) He wants to make his opinions known to the world (roger, got that) and really I think the thread is over and done and dead and if darmock were here he would post the dead horse image:beatdeadhorse5:

And I don't think we need to say anymore do we? We've all made our points clear. Let's all go back to work now and enjoy ourselves.
 

james

Guru
Joined
Oct 18, 2007
Messages
374
Reaction score
38
The code is being consistently refined. You will notice we are not on release 1 any longer. If the code was perfect then we would have no need to make any further releases we would just call it a day.
If your friend sees anything he would like to fix he may fork the project on github and have at it. We welcome contributions.

FreePBX is a PBX and NOT a softswitch
Wikipedia: PBX
A private branch exchange (PBX) is a telephone exchange or switching system that serves a private organization and performs concentration of central office lines or trunks and provides intercommunication between a large number of telephone stations in the organization.[3] The central office lines provide connections to the public switched telephone networkand the concentration aspect of a PBX permits the shared use of these lines between all stations in the organization. The intercommunication aspect allows two or more stations to establish telephone or conferencing calls between them without using the central office equipment.
Wikipedia softswitch
A softswitch, short for software switch, is a central device in a telecommunications network which connects telephone calls from one phone line to another, across a telecommunication network or the public Internet, entirely by means of software running on a general-purpose computer system. Most landline calls are routed by purpose-built electronic hardware; however, soft switches using general purpose servers and VoIP technology are becoming more popular.[1]
Many telecommunications networks now make use of combinations of softswitches and more traditional purpose-built hardware.

There are soft switches out there.
FreeSwitch when configured as such
Kamailio
Asterisk when configured as such

It is not the goal of FreePBX to be a soft switch it is the goal to be a PBX.

In general you should not use a hammer as a screw driver. Sure that may be a "cheap technical excuse" because you can definitely hammer in a screw it doesn't make it a correct application of the tool.

If you use the code as intended it will generally work as intended. You are free to use it in any fashion you wish but you either need to have the skill set to do such or pay someone who does. There are folks who will help you for free. That pool of folks may reduce based on the work involved or the use case. Some folks will not help you on commercial items unless you have a track record of contributing.

If you are generally unhappy with the webUI your friend may wish to write one for you with the feature set required to use asterisk as a soft switch.
 

turalo

Member
Joined
Oct 10, 2013
Messages
75
Reaction score
1
Well, again this not this and not that. I get it...
And yes maybe i went little more over then i wanted and thereby offended some of you wich waa not my intentions.
I do not like to be called a parasite or even been shown as one...

As i said im very thankfull to all people that worked hard for it.
Its just offends me when people say thinks like it cannot do this it cannot do that.
Im doing it, i only mis one little thing amd even that will be solved soon.
Some people are working on it, as soon as i will test it and it works, ill will put it online for free.

Its jist much better if you say : oh well its not there yet maybe in future, but no
Because of the lasyness some people like to stick all the wiki stuff into my eyes :))

Com on guys.

Im so frustrated, not even 1 post of myne was yet ansered and solved untill now.

All i get is the finger that shows me a wiki or tells me that im user of free soft
Or even worse tells me whats not possibel, guys tell me what is possible.

I know what is not :)) thats why i knok on your door.

Sometimes its good to go back to basics an see what the little guy has to say too :)

Anyway, thanks anyway, please dont be offended, and sorry for my language, im using 6 languages daily so its taking its toll :))
 

darmock

PIAF Developer
Joined
Oct 18, 2007
Messages
2,892
Reaction score
98
Trualo

Sorry for your problems. Unfortunately perhaps none of our volunteer gurus have the answer you are looking for. You are using older software which the PIAF team has not looked at in a very long time. I would suggest you look at installing a virtual instance of green at the moment and experiment with it to see if you can make it sit up and bark. Asterisk 12 (PIAF-Black) is almost ready for primetime here at PIAF. It has some new features however another rewrite of the GUI has happened with freepbx 12 so you might not be too happy.

This thread has gotten off topic and I have moved it to PM.


Tom
 
Status
Not open for further replies.

Members online

Forum statistics

Threads
25,825
Messages
167,861
Members
19,250
Latest member
mark-curtis
Get 3CX - Absolutely Free!

Link up your team and customers Phone System Live Chat Video Conferencing

Hosted or Self-managed. Up to 10 users free forever. No credit card. Try risk free.

3CX
A 3CX Account with that email already exists. You will be redirected to the Customer Portal to sign in or reset your password if you've forgotten it.
Top