BUG Missing Kennonsoft Menu after Upgrade

miguel

Member
Joined
May 22, 2013
Messages
276
Reaction score
8
Can anyone please tell me how to get back the kennosoft menu because I just can get to the freepbx menu and no fax or open fire menu no nothing just directly to the freepbx web gui this happened after the framework upgrade via module admin, here is my config please help me!
 

Attachments

  • Screen Shot 2014-04-03 at 12.29.55 AM.png
    Screen Shot 2014-04-03 at 12.29.55 AM.png
    41.8 KB · Views: 30
  • Screen Shot 2014-04-03 at 12.29.55 AM.png
    Screen Shot 2014-04-03 at 12.29.55 AM.png
    41.8 KB · Views: 25

tm1000

Schmoozecom INC/FreePBX
Joined
Dec 1, 2009
Messages
1,360
Reaction score
78
You say "shame" but I disagree. We had this conversation in a thread over a year ago with all the important people involved in PBX in a flash and it was stated that the index.php flag fix would be temporary and that PIAF should use index_custom.php. Are we suppose to backup every file that we over write? It's been over a year now since we made the custom_index.php changes which work fine and furthermore the index_custom.php fix was written specifically for PIAF and it's surprising that it is still not used in PIAF.

FIXED.

One of the updates (dunno which) overwrites the file /var/www/html/index.php without backing up the old version (SHAME!). This new version of index.php checks for the existence of the file index.custom.php first before redirecting to /admin. The following will fix:

Code:
cd /var/www/html/
wget https://gist.githubusercontent.com/lgaetz/9954119/raw/index_custom.php
chown asterisk:asterisk index_custom.php

Takeaway:
If you want a custom /var/www/html/index.php it MUST be named index_custom.php to prevent FreePBX updates from overwriting.
 

tm1000

Schmoozecom INC/FreePBX
Joined
Dec 1, 2009
Messages
1,360
Reaction score
78
The thing that was removed was the piaf.flag reference code that told FreePBX to leave the index.php file alone, that was a temporary fix (as was stated in the comment) and was removed as specific distro changes cause messy code (imagine if we had fixes for AsteriskNow, Elastix, PIAF, FreePBX distro). At the time it was agreed that PIAF would start to write to both index.php and index_custom.php at the same time so as when the time came to remove the aversion code there would be seamless changes. I am sorry that it didn't work out this way and unfortunately the thread that had all of this discussion was lost in the data crash of last year so I have no proof as to the conversation. We really try to have a system that works the same for everyone but that can be customized at the same time.

We did think about looking at the index.php file and if it's there then move it to index_custom.php, but what happens if index.php is our file? Now we have just moved index.php to index_custom.php and any changes to index.php would be ignored in favor of index_custom.php

Mea culpa. Since this only hit me today, I assumed the issue was new. The 'proper' fix really is simple, using update-fixes, test for the non-existence of the file /var/www/html/index_custom.php then upload the Kennonsoft index.php file as index_custom.php.
 

wardmundy

Nerd Uno
Joined
Oct 12, 2007
Messages
19,168
Reaction score
5,199
Thanks for the heads up. I remember the PIAF flag agreement, tm1000. The rest is new news at least to me. Doesn't mean someone else didn't know about it.

Simple solution for current PIAF users is to protect index.php and index.html from being overwritten:

Code:
chattr +i /var/www/html/index.*

Latest Incredible PBX 11 already has the fix built in.

Here is a fix for anyone who already has lost the files:
Code:
cd /var/www/html
rm index*
wget http://pbxinaflash.com/piaf-index.tar.gz
# alternate site
# wget http://nerdvittles.dreamhosters.com/pbxinaflash/source/kennonsoft/piaf-index.tar.gz
tar zxvf piaf-index.tar.gz
# for absolute protection, uncomment the next line
# chattr +i index*

Keep the tarball to avoid any future issues.

We will push this out in update-fixes ASAP.
 

wardmundy

Nerd Uno
Joined
Oct 12, 2007
Messages
19,168
Reaction score
5,199
Like I said, I thought we had an understanding, but I appreciate tm1000's point as well. For the time being (until Asterisk 12), index.html and index.php are crucial PIAF files because they include our security alert RSS Feed which FreePBX does not (yet) support.

We originally pushed this out last year but changed it back once we had an understanding on protecting those files for PIAF users. Something changed somewhere. And it's no big deal. We'll put the fix back for current users.
 

wardmundy

Nerd Uno
Joined
Oct 12, 2007
Messages
19,168
Reaction score
5,199
Duly noted. Patch has been pushed out to all Incredible PBX systems running on CentOS/Scientific Linux/PIAF OS platforms. Raspberry Pi and BeagleBone Black versions were not affected since they use the traditional FreePBX menu system.
 

jvangent100

Member
Joined
Jan 21, 2008
Messages
47
Reaction score
1
Thanks people, I had the same problem, was thrown into admin straight away, instead of having the kennosoft menu.

Just out of interest, why are the FreePBX modules updated so often ? I mean, the system I have running now (2 weeks or so) at least had two or three updates to the core engine.

A bit much if you ask me.
 

Hyksos

Guru
Joined
May 28, 2011
Messages
474
Reaction score
70
You either need a priest to chase ghosts that are applying updates in your back or you need to look in the mirror and ask the guy in there why he's applying all those updates while finding it a bit much at the same time.
You could always use your left hand to slap your right hand?
:leaving:
 

james

Guru
Joined
Oct 18, 2007
Messages
374
Reaction score
38
FreePBX started out as a garage project of one guy and took off like a rocket. For years there was a couple of guys that without much praise or backing managed to keep it alive while working their day jobs and families. These guys were given the opportunity to make this their day job and were surrounded by a strong team over the last year or so. FreePBX went from a back burner passion that took time away from these guys families to a project that now helps them feed their family. The result of this partnership can be seen. I have been married over 10 years and can tell you when something goes from a hobby to paying your bills you get fired up. The leap from 2.09 to 2.10 and 2.11 have been incredible and with FreePBX 12 on the horizon it just gets better.

We are working on taking FreePBX to the next level while still taking care of other things. We are actively clearing out back logs of bugs and feature requests from before Schmooze stepped up. We are constantly and actively improving things. It may seem like a bit much but there is a lot of money being dropped in to FreePBX and these updates are the result of that investment. I am happy to see this direction as apposed to the alternative of a stagnant project that simply dies.
 

jvangent100

Member
Joined
Jan 21, 2008
Messages
47
Reaction score
1
No need for any priests, nor is there a need to slap any hands. Obviously I merely asked the question, which at least has been answered by James.
 

gordon

Member
Joined
Jun 7, 2013
Messages
96
Reaction score
7
I got bit by this testing out the ec2 piaf image. I am trying to get the menu back. I've tried using both update-my-pbx and update-programs/update-fixes.

Here is what happens with the manual fix posted above:
Code:
[root@*** html]# wget http://pbxinaflash.com/piaf-index.tar.gz
--2014-04-12 02:42:10--  http://pbxinaflash.com/piaf-index.tar.gz
Resolving pbxinaflash.com... 74.86.213.25
Connecting to pbxinaflash.com|74.86.213.25|:80... connected.
HTTP request sent, awaiting response... 403 Forbidden
2014-04-12 02:42:10 ERROR 403: Forbidden.
 

wardmundy

Nerd Uno
Joined
Oct 12, 2007
Messages
19,168
Reaction score
5,199
Sorry you're having trouble, gordon. We can't reproduce the problem. Works fine for us.
Code:
wget http://pbxinaflash.com/piaf-index.tar.gz
--2014-04-12 05:47:13--  http://pbxinaflash.com/piaf-index.tar.gz
Resolving pbxinaflash.com... 74.86.213.25
Connecting to pbxinaflash.com|74.86.213.25|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 5551 (5.4K) [application/x-gzip]
Saving to: “piaf-index.tar.gz”
 
100%[===================================================================>] 5,551      --.-K/s  in 0s     
 
2014-04-12 05:47:13 (27.7 MB/s) - “piaf-index.tar.gz” saved [5551/5551]

Try from here:
Code:
wget http://nerdvittles.dreamhosters.com/pbxinaflash/source/kennonsoft/piaf-index.tar.gz
 

gordon

Member
Joined
Jun 7, 2013
Messages
96
Reaction score
7
Thanks Ward. I was just able to download the file on my local computer, so I guess it was a temporary issue or something to do with my security group settings on ec2. I was going to just start a new image but I'll give this one more shot first.
 

ostridge

Guru
Joined
Jan 22, 2015
Messages
1,618
Reaction score
517
FIXED.

One of the updates (dunno which) overwrites the file /var/www/html/index.php without backing up the old version (SHAME!). This new version of index.php checks for the existence of the file index.custom.php first before redirecting to /admin. The following will fix:

Code:
steps removed, official fix below

Takeaway:
If you want a custom /var/www/html/index.php it MUST be named index_custom.php to prevent FreePBX updates from overwriting.

For what its worth my custom... is called /var/www/html/index_custom2.php ; seems ok version follows.
 

Members online

Forum statistics

Threads
25,778
Messages
167,504
Members
19,198
Latest member
serhii
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