Page 1 of 1

fatal error on index.php

Posted: Wed Oct 27, 2004 6:28 pm
by Rick Pasotto
Fatal error: Failed opening required 'phplayers/lib/PHPLIB.php' (include_path='/usr/share/php/smarty/libs') in /var/www/net/niof/cmsmadesimple-0.7.1/plugins/function.dhtmlmenu.php on line 83

Why is it looking in /usr/share/php instead of the installation directory?

fatal error on index.php

Posted: Wed Oct 27, 2004 6:40 pm
by BamaRob
Did you update the config.php to fix the paths?

fatal error on index.php

Posted: Wed Oct 27, 2004 6:55 pm
by Anonymous
BamaRob wrote:Did you update the config.php to fix the paths?
Update what paths? The install script did its thing. I've changed nothing. '/usr/share' is not currently in config.php.

fatal error on index.php

Posted: Wed Oct 27, 2004 7:00 pm
by Ted
Looks like some kind of strange phplayers bug (the lib that drives dhtmlmenu). I've never seen it before, that doesn't mean anything.

Can you try going to the admin section (http://site/admin/login.php) and try something? Edit the Default template and change {dhtmlmenu to {bulletmenu. That should remove phplayers out of the picture and hopefully at least get it to display right.

I'm sure what the answer is for fixing it without doing some research though...

fatal error on index.php

Posted: Wed Oct 27, 2004 7:03 pm
by BamaRob
What does your "root_url" and "root_path" look like in config.php?

This may not be the problem at all, I just grasping at straws here...

BR

similar error

Posted: Fri Nov 12, 2004 4:52 am
by Anonymous
{nocache:fa5c536c11bb07990943390c48debd6d#0}
Warning: smarty_cms_function_dhtmlmenu(phplayers/lib/PHPLIB.php): failed to open stream: No such file or directory in c:\nusphere\apache\htdocs\cmsmadesimple\plugins\function.dhtmlmenu.php on line 83

Fatal error: smarty_cms_function_dhtmlmenu(): Failed opening required 'phplayers/lib/PHPLIB.php' (include_path='C:/NuSphere/apache/php/PEAR') in c:\nusphere\apache\htdocs\cmsmadesimple\plugins\function.dhtmlmenu.php on line 83

fatal error on index.php

Posted: Fri Nov 12, 2004 10:37 am
by Ted
If you don't mind, try a quick experiment for me.

Edit plugins/function.dhtml_menu.php go to line 83 and change:

Code: Select all

    require_once 'phplayers/lib/PHPLIB.php';
    require_once 'phplayers/lib/layersmenu-common.inc.php';
    require_once 'phplayers/lib/layersmenu.inc.php';
to

Code: Select all

    require_once dirname(dirname(__FILE__)).'phplayers/lib/PHPLIB.php';
    require_once dirname(dirname(__FILE__)).'phplayers/lib/layersmenu-common.inc.php';
    require_once dirname(dirname(__FILE__)).'phplayers/lib/layersmenu.inc.php';
I'm wondering if some systems are more picky about relative paths.

Thanks!

still getting the same error

Posted: Sat Nov 13, 2004 11:43 pm
by Anonymous
setup is winxp with the nusphere apacha/mysql install

error:
{nocache:fa5c536c11bb07990943390c48debd6d#0}
Warning: smarty_cms_function_dhtmlmenu(c:\nusphere\apache\htdocs\cmsmadesimplephplayers/lib/PHPLIB.php): failed to open stream: No such file or directory in c:\nusphere\apache\htdocs\cmsmadesimple\plugins\function.dhtmlmenu.php on line 83

Fatal error: smarty_cms_function_dhtmlmenu(): Failed opening required 'c:\nusphere\apache\htdocs\cmsmadesimplephplayers/lib/PHPLIB.php' (include_path='C:/NuSphere/apache/php/PEAR') in c:\nusphere\apache\htdocs\cmsmadesimple\plugins\function.dhtmlmenu.php on line 83

fatal error on index.php

Posted: Sun Nov 14, 2004 2:36 am
by Ted
Same thing. Try the fix above. I think windows is handling relative paths differently.

fatal error on index.php

Posted: Sun Nov 14, 2004 2:38 am
by Ted
lol. I'm slow sometimes...

There needs to be slashes in there like so:

Code: Select all

    require_once dirname(dirname(__FILE__)).'/phplayers/lib/PHPLIB.php'; 
    require_once dirname(dirname(__FILE__)).'/phplayers/lib/layersmenu-common.inc.php'; 
    require_once dirname(dirname(__FILE__)).'/phplayers/lib/layersmenu.inc.php';
See if that's any better.
Thanks!

that's it.

Posted: Sun Nov 14, 2004 4:26 am
by Anonymous
that did the trick.

fatal error on index.php

Posted: Sun Nov 14, 2004 2:10 pm
by Ted
Great! I'll add that to now.