trying to get dynamic menu to appear in other ares of a site

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Post Reply
scotch33
Dev Team Member
Dev Team Member
Posts: 285
Joined: Tue Feb 14, 2006 9:56 pm

trying to get dynamic menu to appear in other ares of a site

Post by scotch33 »

Hi,

I am trying to get the main site menu to appear in some pages that are not part of the CMSMS system.

I have created a page in the system that contains just the menu, and in a template where there is literally just a surrounding div.

I have called it using an include from elsewhere. 

This works fine 70% of the time, but on occasion I am getting the following error.  Is there a better way to do this or perhaps a way of checking for its availablilty before calling it and if its not playing, replacing it with something else.

I am aware that this is partly a PHP question, but thought as it may be something others would occasionally need to do, it was worth asking about in the forum.

The error is ...

Warning: include() [function.include]: php_network_getaddresses: getaddrinfo failed: Name or service not known in /home/h/a/havebeengood/public_html/memberpages/login_process/login_process.php on line 46

Warning: include(http://www.havebeengood.com/index.php?page=menu) [function.include]: failed to open stream: Connection timed out in /home/h/a/havebeengood/public_html/memberpages/login_process/login_process.php on line 46

Warning: include() [function.include]: Failed opening 'http://www.havebeengood.com/index.php?page=menu' for inclusion (include_path='.:/usr/share/php:/usr/share/pear') in /home/h/a/havebeengood/public_html/memberpages/login_process/login_process.php on line 46
Post Reply

Return to “CMSMS Core”