As JCweb, I can not administrate Latest News block, I get a blank page and this issue with path is reported in debug mode :
Message(s): Use of undefined constant NW_MODULE_PATH - assumed 'NW_MODULE_PATH' dans le fichier /modules/xnews/blocks/news_latestnews.php - ligne 233
Avertissement(s): include_once(NW_MODULE_PATH/include/functions.php) [function.include-once]: failed to open stream: No such file or directory dans le fichier /modules/xnews/blocks/news_latestnews.php - ligne 233
Avertissement(s): include_once() [function.include]: Failed opening 'NW_MODULE_PATH/include/functions.php' for inclusion (include_path='.;C:/php5/pear') dans le fichier /modules/xnews/blocks/news_latestnews.php - ligne 233
Message(s): Use of undefined constant NW_MODULE_PATH - assumed 'NW_MODULE_PATH' dans le fichier /modules/xnews/blocks/news_latestnews.php - ligne 234
Avertissement(s): include_once(NW_MODULE_PATH/class/class.newstopic.php) [function.include-once]: failed to open stream: No such file or directory dans le fichier /modules/xnews/blocks/news_latestnews.php - ligne 234
Avertissement(s): include_once() [function.include]: Failed opening 'NW_MODULE_PATH/class/class.newstopic.php' for inclusion (include_path='.;C:/php5/pear') dans le fichier /modules/xnews/blocks/news_latestnews.php - ligne 234
Lines 233 and 234 in news_latestnews.php are :
include_once NW_MODULE_PATH . '/include/functions.php';
include_once NW_MODULE_PATH . '/class/class.newstopic.php';
... my website is in a sub-subfolder (C:/wamp/www/XOOPS245/MY-SITE/). May be the reason of this blank page ?
Edit : Top and Recent blocks display blank pages also, apparently for same reason
Debug :
Quote:
Message(s): Use of undefined constant NW_MODULE_PATH - assumed 'NW_MODULE_PATH' dans le fichier /modules/xnews/blocks/news_top.php - ligne 31
Avertissement(s): include_once(NW_MODULE_PATH/class/class.newsstory.php) [function.include-once]: failed to open stream: No such file or directory dans le fichier /modules/xnews/blocks/news_top.php - ligne 31
Avertissement(s): include_once() [function.include]: Failed opening 'NW_MODULE_PATH/class/class.newsstory.php' for inclusion (include_path='.;C:/php5/pear') dans le fichier /modules/xnews/blocks/news_top.php - ligne 31
Message(s): Use of undefined constant NW_MODULE_PATH - assumed 'NW_MODULE_PATH' dans le fichier /modules/xnews/blocks/news_top.php - ligne 32
Avertissement(s): include_once(NW_MODULE_PATH/class/class.newstopic.php) [function.include-once]: failed to open stream: No such file or directory dans le fichier /modules/xnews/blocks/news_top.php - ligne 32
Avertissement(s): include_once() [function.include]: Failed opening 'NW_MODULE_PATH/class/class.newstopic.php' for inclusion (include_path='.;C:/php5/pear') dans le fichier /modules/xnews/blocks/news_top.php - ligne 32