fatal error on index.php

Help with getting the CMS CORE package up and running. This does not include 3rd party modules, PHP scripts, anything downloaded via module manager or from any external source.
Locked
Rick Pasotto

fatal error on index.php

Post 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?
BamaRob

fatal error on index.php

Post by BamaRob »

Did you update the config.php to fix the paths?
Anonymous

fatal error on index.php

Post 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.
Ted
Power Poster
Power Poster
Posts: 3329
Joined: Fri Jun 11, 2004 6:58 pm

fatal error on index.php

Post 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...
BamaRob

fatal error on index.php

Post 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
Anonymous

similar error

Post 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
Ted
Power Poster
Power Poster
Posts: 3329
Joined: Fri Jun 11, 2004 6:58 pm

fatal error on index.php

Post 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!
Anonymous

still getting the same error

Post 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
Ted
Power Poster
Power Poster
Posts: 3329
Joined: Fri Jun 11, 2004 6:58 pm

fatal error on index.php

Post by Ted »

Same thing. Try the fix above. I think windows is handling relative paths differently.
Ted
Power Poster
Power Poster
Posts: 3329
Joined: Fri Jun 11, 2004 6:58 pm

fatal error on index.php

Post 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!
Anonymous

that's it.

Post by Anonymous »

that did the trick.
Ted
Power Poster
Power Poster
Posts: 3329
Joined: Fri Jun 11, 2004 6:58 pm

fatal error on index.php

Post by Ted »

Great! I'll add that to now.
Locked

Return to “[locked] Installation, Setup and Upgrade”