Reload failed because retrieve_conf encountered an

I am running FreePBX 2.7.0.5 with Elastix 2.0 with latest yum updates. I can’t add valid extensions. They show up, but I can not access them. I think the last module upgrade did something. On FreePBX I get this message when I try to Apply Configuration Changes:

Reload failed because retrieve_conf encountered an error: 255

exit: 255
Checking for PEAR DB…OK
Checking for PEAR Console::Getopt…OK
Checking for /etc/amportal.conf …OK
Bootstrapping /etc/amportal.conf …OK
Parsing /etc/amportal.conf …OK
Parsing /etc/asterisk/asterisk.conf …OK
Connecting to database…OK
PHP Warning: Missing argument 1 for connectdirs::create(), called in /var/lib/asterisk/bin/retrieve_conf on line 436 and defined in /var/lib/asterisk/bin/retrieve_conf on line 13
Connecting to Asterisk manager interface…OK
Added to globals: ASTETCDIR = /etc/asterisk
Added to globals: ASTMODDIR = /usr/lib/asterisk/modules
Added to globals: ASTVARLIBDIR = /var/lib/asterisk
Added to globals: ASTAGIDIR = /var/lib/asterisk/agi-bin
Added to globals: ASTSPOOLDIR = /var/spool/asterisk
Added to globals: ASTRUNDIR = /var/run/asterisk
Added to globals: ASTLOGDIR = /var/log/asterisk
Added to globals: CWINUSEBUSY = true
Added to globals: AMPMGRUSER = admin
Added to globals: AMPMGRPASS = elastix456
Added to globals: AMPDBENGINE = mysql
Added to globals: AMPDBHOST = localhost
Added to globals: AMPDBNAME = asterisk
Added to globals: AMPDBUSER = asteriskuser
Added to globals: AMPDBPASS = rhino
PHP Fatal error: Call to a member function output() on a non-object in /var/www/html/admin/extensions.class.php on line 303

1 error(s) occurred, you should view the notification log on the dashboard or main screen to check for more details.

***I see this in /var/lib/asterisk/bin/retrieve_conf: $conn_dirs = connectdirs::create()

***Can anyone tell me what the missing argument is?

***My retrieve_conf file looks very different in 2.0 than 1.6. Is there a place where I can get a fresh retrieve_conf and replace the corrupted file?)

http://www.elastix.org/en/component/kunena/32-freepbx/62777-free-pbx-cant-update.html

AS per the above advice, I found that one of my inbound routes was NOT associated with a destination. Rectifying this allowed the reload to proceed

Keywords:
Checking for PEAR DB…OK
Checking for PEAR Console::Getopt…OK
Checking for /etc/amportal.conf …OK
Bootstrapping /etc/amportal.conf …OK
Parsing /etc/amportal.conf …OK
Parsing /etc/asterisk/asterisk.conf …OK
Connecting to database…OK
PHP Warning: Missing argument 1 for connectdirs::create(), called in /var/lib/asterisk/bin/retrieve_conf on line 436 and defined in /var/lib/asterisk/bin/retrieve_conf on line 13
Connecting to Asterisk manager interface…OK
Added to globals: ASTETCDIR = /etc/asterisk
Added to globals: ASTMODDIR = /usr/lib64/asterisk/modules
Added to globals: ASTVARLIBDIR = /var/lib/asterisk
Added to globals: ASTAGIDIR = /var/lib/asterisk/agi-bin
Added to globals: ASTSPOOLDIR = /var/spool/asterisk
Added to globals: ASTRUNDIR = /var/run/asterisk
Added to globals: ASTLOGDIR = /var/log/asterisk
Added to globals: CWINUSEBUSY = true
Added to globals: AMPMGRUSER = admin
Added to globals: AMPMGRPASS = elastix456
Added to globals: AMPDBENGINE = mysql
Added to globals: AMPDBHOST = localhost
Added to globals: AMPDBNAME = asterisk
Added to globals: AMPDBUSER = asteriskuser
Added to globals: AMPDBPASS = eLaStIx.asteriskuser.2oo7
PHP Fatal error: Call to a member function output() on a non-object in /var/www/html/admin/extensions.class.php on line 303