PHP Fatal error - featurecode not found

Hi,
I’m having a problem installing some modules. It looks like it boils down to the feature code facility in FreePBX not working. Although the featurecode admin module is installed.
I see this error:-

PHP Fatal error: Class ‘featurecode’ not found in /var/www/vhosts/pbx.xxxxx.co.uk/httpdocs/admin/modules/callforward/install.php on line 4, referer: http://pbx.xxxxx.co.uk/admin/config.php?type=tool&display=modules

in the apache error_log. I see this when I try to add another module or access feature codes from the freepbx menu.

There are 6 modules I cannot install becasue of this, when I try to enable them I am just presented with the freepbx web page from my server with the menu down the left, the modules are :-

callforward
callwaiting
donotdisturb
infoservices
voicemail
recordings

I would very much welcome any pointers.

thanks
Mike

Hi,
yes it is PHP 5.something.
I have total control of the box but I dont want to alter too much of the plesk stuff if possible.
Since my last message I attempted to setup a simple meetme conf.
Everything looks ok in the freepbx gui but when I looked at the meetme.conf file nothing had been setup.
Its as though the files in /etc/asterisk are not being changed.
Permissions look ok and httpd is runnning as user asterisk.

Any more clues?

thanks
Mike

[quote=“bubba”]what ver php u got?

I do not know if you have total access to the box you have access the
fake root that plesk gives you.
I have only seen Asterisk work in true VPS setup where the host box was setup first.

there are some issue with php 5 that user have been reporting.

Today I had to unstall PHP on two system’s as they where getting PHP error the version they had install was done when they install FC I had to remove the version they had and installed a older version…
PHP errors are gone now and the system both work.

Now I am sure if I had taken the time that symbolic links would have cleared it up as well , the guy just wanted the boxes working as he had been a week messing with them and monday was his “Show and Tell” to his boss.

so just go by step by step and make the system think it is CENTOS / FC standard install.

Have you tested the conference calling???[/quote]

No it is not that Freepbx is not wqorking it is that you are installing to system with the “path” wrong as the Freepbx and ALL the other apps want to see it as.
u should have created links to fool the system into think it was installed a REAL box.

[quote=“bubba”]No it is not that Freepbx is not wqorking it is that you are installing to system with the “path” wrong as the Freepbx and ALL the other apps want to see it as.
u should have created links to fool the system into think it was installed a REAL box.[/quote]

Hi, thanks for reply.
Can you elaborate a little for me please?

many thanks
Mike

Ok most of the stuff in the builds are around centos / FC

the path is /var/www/html

your path is /var/www/vhosts/pbx.xxxxx.co.uk/httpdocs/admin/modules/callforward/install.php

so anywhere the scripts have hardcoded (or set a varible) the path /var/www/html it is not going to find what it wants in var/www/vhosts/pbx.xxxxx.co.uk/httpdocs

you would need to hand edit each file or create links to fool the system it into a thinking the pathing is correct.

But it looks to be you are installing on a SHARED WEB HOSTING box, not sure if you are going to pull that off.

when u ran the freepbx install did you correct the path at that time??

Hi Bubba,
yes you are spot on, this box I am installing on has Plesk on it, designed for hosting multiple sites.
I have full control of the box though.
I’m pretty sure I got the paths right when I did the install, most of it seems to work apart from these few modules, and it all seems to hinge around the featurecode module.

Thanks for any more ideas!
Mike

[quote=“bubba”]Ok most of the stuff in the builds are around centos / FC

the path is /var/www/html

your path is /var/www/vhosts/pbx.xxxxx.co.uk/httpdocs/admin/modules/callforward/install.php

so anywhere the scripts have hardcoded (or set a varible) the path /var/www/html it is not going to find what it wants in var/www/vhosts/pbx.xxxxx.co.uk/httpdocs

you would need to hand edit each file or create links to fool the system it into a thinking the pathing is correct.

But it looks to be you are installing on a SHARED WEB HOSTING box, not sure if you are going to pull that off.

when u ran the freepbx install did you correct the path at that time??[/quote]

what ver php u got?

I do not know if you have total access to the box you have access the
fake root that plesk gives you.
I have only seen Asterisk work in true VPS setup where the host box was setup first.

there are some issue with php 5 that user have been reporting.

Today I had to unstall PHP on two system’s as they where getting PHP error the version they had install was done when they install FC I had to remove the version they had and installed a older version…
PHP errors are gone now and the system both work.

Now I am sure if I had taken the time that symbolic links would have cleared it up as well , the guy just wanted the boxes working as he had been a week messing with them and monday was his “Show and Tell” to his boss.

so just go by step by step and make the system think it is CENTOS / FC standard install.

Have you tested the conference calling???